diff --git a/docs/samples/client/csharp/SampleService/main.tsp b/docs/samples/client/csharp/SampleService/main.tsp index c2b189ecb0a..800c79de892 100644 --- a/docs/samples/client/csharp/SampleService/main.tsp +++ b/docs/samples/client/csharp/SampleService/main.tsp @@ -466,6 +466,20 @@ model XmlModelWithNamespace { foo: string; } +model Wrapper { + @doc("header parameter") + @header + p1: string; + + @doc("body parameter") + @body + action: RoundTripModel; + + @doc("path parameter") + @path + p2: string; +} + union DaysOfWeekExtensibleEnum { string, Monday: "Monday", @@ -500,13 +514,16 @@ op helloAgain( @route("/noContentType") @doc("Return hi again") @get -@convenientAPI(false) op noContentType( @header p1: string, @body action: RoundTripModel, @path p2: string, ): RoundTripModel; +op noContentTypeOverride(info: Wrapper): RoundTripModel; + +@@override(noContentType, noContentTypeOverride); + @route("/demoHi") @doc("Return hi in demo2") @get diff --git a/packages/http-client-csharp/emitter/src/lib/client-converter.ts b/packages/http-client-csharp/emitter/src/lib/client-converter.ts index 0099b5331ae..c37171e0137 100644 --- a/packages/http-client-csharp/emitter/src/lib/client-converter.ts +++ b/packages/http-client-csharp/emitter/src/lib/client-converter.ts @@ -21,6 +21,7 @@ import { import { fromMethodParameter, fromSdkServiceMethod, + getMethodParameterSegments, getParameterDefaultValue, } from "./operation-converter.js"; import { fromSdkType } from "./type-converter.js"; @@ -182,6 +183,7 @@ function fromSdkClient( skipUrlEncoding: false, readOnly: isReadOnly(parameter), crossLanguageDefinitionId: parameter.crossLanguageDefinitionId, + methodParameterSegments: getMethodParameterSegments(sdkContext, parameter), }); } return parameters; diff --git a/packages/http-client-csharp/emitter/src/lib/operation-converter.ts b/packages/http-client-csharp/emitter/src/lib/operation-converter.ts index 766c2b2866a..e4ea3b64461 100644 --- a/packages/http-client-csharp/emitter/src/lib/operation-converter.ts +++ b/packages/http-client-csharp/emitter/src/lib/operation-converter.ts @@ -449,6 +449,7 @@ function fromQueryParameter( decorators: p.decorators, crossLanguageDefinitionId: p.crossLanguageDefinitionId, readOnly: isReadOnly(p), + methodParameterSegments: getMethodParameterSegments(sdkContext, p), }; sdkContext.__typeCache.updateSdkOperationParameterReferences(p, retVar); @@ -480,6 +481,7 @@ function fromPathParameter( decorators: p.decorators, readOnly: isReadOnly(p), crossLanguageDefinitionId: p.crossLanguageDefinitionId, + methodParameterSegments: getMethodParameterSegments(sdkContext, p), }; sdkContext.__typeCache.updateSdkOperationParameterReferences(p, retVar); @@ -510,6 +512,7 @@ function fromHeaderParameter( readOnly: isReadOnly(p), decorators: p.decorators, crossLanguageDefinitionId: p.crossLanguageDefinitionId, + methodParameterSegments: getMethodParameterSegments(sdkContext, p), }; sdkContext.__typeCache.updateSdkOperationParameterReferences(p, retVar); @@ -538,6 +541,7 @@ function fromBodyParameter( decorators: p.decorators, readOnly: isReadOnly(p), crossLanguageDefinitionId: p.crossLanguageDefinitionId, + methodParameterSegments: getMethodParameterSegments(sdkContext, p), }; sdkContext.__typeCache.updateSdkOperationParameterReferences(p, retVar); @@ -928,6 +932,37 @@ function getArraySerializationDelimiter( return format ? collectionFormatToDelimMap[format] : undefined; } +export function getMethodParameterSegments( + sdkContext: CSharpEmitterContext, + p: SdkHttpParameter | SdkModelPropertyType, +): InputMethodParameter[] | undefined { + // methodParameterSegments is a 2D array where each segment array represents a path to a method parameter + // For spread body cases, there could be multiple paths, but we simplify by taking the first element + // We need the complete segment path (e.g., ['Params', 'foo'] for accessing params.foo) + const methodParameterSegments = (p as any).methodParameterSegments; + if (!methodParameterSegments || methodParameterSegments.length === 0) { + return undefined; + } + + // Take the first segment path (simplification - no spector scenario for multiple paths yet) + const firstSegmentPath = methodParameterSegments[0]; + if (!firstSegmentPath || firstSegmentPath.length === 0) { + return undefined; + } + + const namespace = getClientNamespaceString(sdkContext) ?? ""; + const methodParams: InputMethodParameter[] = []; + + // Convert each element in the segment path to an InputMethodParameter + // This preserves the full path information (e.g., ['Params', 'foo']) + for (const segment of firstSegmentPath) { + const methodParam = segment as SdkMethodParameter; + methodParams.push(fromMethodParameter(sdkContext, methodParam, namespace)); + } + + return methodParams.length > 0 ? methodParams : undefined; +} + function getResponseType( sdkContext: CSharpEmitterContext, type: SdkType | undefined, diff --git a/packages/http-client-csharp/emitter/src/type/input-type.ts b/packages/http-client-csharp/emitter/src/type/input-type.ts index 922aa4a8063..e21af3e4b86 100644 --- a/packages/http-client-csharp/emitter/src/type/input-type.ts +++ b/packages/http-client-csharp/emitter/src/type/input-type.ts @@ -208,6 +208,7 @@ export interface InputQueryParameter extends InputPropertyTypeBase { explode: boolean; scope: InputParameterScope; serializedName: string; + methodParameterSegments?: InputMethodParameter[]; } export interface InputPathParameter extends InputPropertyTypeBase { @@ -219,6 +220,7 @@ export interface InputPathParameter extends InputPropertyTypeBase { serverUrlTemplate?: string; scope: InputParameterScope; serializedName: string; + methodParameterSegments?: InputMethodParameter[]; } export interface InputHeaderParameter extends InputPropertyTypeBase { @@ -228,6 +230,7 @@ export interface InputHeaderParameter extends InputPropertyTypeBase { isContentType: boolean; scope: InputParameterScope; serializedName: string; + methodParameterSegments?: InputMethodParameter[]; } export interface InputBodyParameter extends InputPropertyTypeBase { @@ -236,6 +239,7 @@ export interface InputBodyParameter extends InputPropertyTypeBase { defaultContentType: string; scope: InputParameterScope; serializedName: string; + methodParameterSegments?: InputMethodParameter[]; } export interface InputEndpointParameter extends InputPropertyTypeBase { @@ -245,6 +249,7 @@ export interface InputEndpointParameter extends InputPropertyTypeBase { scope: InputParameterScope; serializedName: string; isEndpoint: boolean; + methodParameterSegments?: InputMethodParameter[]; } export interface InputEnumType extends InputTypeBase { diff --git a/packages/http-client-csharp/emitter/test/Unit/method-parameter-segments.test.ts b/packages/http-client-csharp/emitter/test/Unit/method-parameter-segments.test.ts new file mode 100644 index 00000000000..de2920346e3 --- /dev/null +++ b/packages/http-client-csharp/emitter/test/Unit/method-parameter-segments.test.ts @@ -0,0 +1,329 @@ +import { TestHost } from "@typespec/compiler/testing"; +import { ok, strictEqual } from "assert"; +import { beforeEach, describe, it } from "vitest"; +import { createModel } from "../../src/index.js"; +import { InputServiceMethod } from "../../src/type/input-service-method.js"; +import { InputHttpParameter, InputParameter } from "../../src/type/input-type.js"; +import { + createCSharpSdkContext, + createEmitterContext, + createEmitterTestHost, + typeSpecCompile, +} from "./utils/test-util.js"; + +describe("MethodParameterSegments", () => { + let runner: TestHost; + + beforeEach(async () => { + runner = await createEmitterTestHost(); + }); + + describe("override decorator with model parameter", () => { + it("should flow methodParameterSegments for path parameters", async () => { + const tsp = ` + model Params { + @path p1: string; + @path p2: string; + } + + @route("/test/{p1}/{p2}") + @get op testOp(@path p1: string, @path p2: string): void; + + @get op testOpCustomization(params: Azure.Csharp.Testing.Params): void; + + @@override(Azure.Csharp.Testing.testOp, Azure.Csharp.Testing.testOpCustomization); + `; + + const program = await typeSpecCompile(tsp, runner, { IsTCGCNeeded: true }); + + const context = createEmitterContext(program); + const sdkContext = await createCSharpSdkContext(context); + const root = createModel(sdkContext); + ok(root, "Output model should be generated"); + const clients = root.clients; + ok(clients && clients.length > 0, "Should have at least one client"); + + const methods = clients[0].methods; + ok(methods && methods.length > 0, "Should have methods"); + + const testMethod = methods.find((method: InputServiceMethod) => method.name === "testOp"); + ok(testMethod, "Should find testOp operation"); + + const pathParams = testMethod.operation.parameters.filter( + (p: InputParameter) => p.kind === "path", + ); + strictEqual(pathParams.length, 2, "Should have 2 path parameters"); + + for (const param of pathParams) { + ok( + param.methodParameterSegments, + `Parameter ${param.name} should have MethodParameterSegments`, + ); + strictEqual( + param.methodParameterSegments.length, + 2, + `Parameter ${param.name} should have 2 segments in path`, + ); + strictEqual( + param.methodParameterSegments[0].name, + "params", + "First segment should be 'params'", + ); + strictEqual( + param.methodParameterSegments[1].name, + param.name, + `Second segment should be '${param.name}'`, + ); + } + }); + + it("should flow methodParameterSegments for body parameter", async () => { + const tsp = ` + model RequestBody { + prop1: string; + prop2: string; + } + + model Params { + body: RequestBody; + } + + @route("/test") + @post op testOp(@body body: RequestBody): void; + + @post op testOpCustomization(params: Azure.Csharp.Testing.Params): void; + + @@override(Azure.Csharp.Testing.testOp, Azure.Csharp.Testing.testOpCustomization); + `; + + const program = await typeSpecCompile(tsp, runner, { IsTCGCNeeded: true }); + + const context = createEmitterContext(program); + const sdkContext = await createCSharpSdkContext(context); + const root = createModel(sdkContext); + ok(root, "Output model should be generated"); + const clients = root.clients; + ok(clients && clients.length > 0, "Should have at least one client"); + + const methods = clients[0].methods; + ok(methods && methods.length > 0, "Should have methods"); + + const testMethod = methods.find((op: InputServiceMethod) => op.name === "testOp"); + ok(testMethod, "Should find testOp operation"); + + const bodyParam = testMethod.operation.parameters.find((p) => p.kind === "body"); + ok(bodyParam, "Should have body parameter"); + ok(bodyParam.methodParameterSegments, "Body parameter should have MethodParameterSegments"); + strictEqual(bodyParam.methodParameterSegments.length, 2, "Should have 2 segments in path"); + strictEqual( + bodyParam.methodParameterSegments[0].name, + "params", + "First segment should be 'params'", + ); + strictEqual( + bodyParam.methodParameterSegments[1].name, + "body", + "Second segment should be 'body'", + ); + }); + + it("should flow methodParameterSegments for mixed parameter types", async () => { + const tsp = ` + model Params { + @path pathParam: string; + @query queryParam: string; + @header headerParam: string; + bodyParam: string; + } + + @route("/test/{pathParam}") + @post op testOp( + @path pathParam: string, + @query queryParam: string, + @header headerParam: string, + @body bodyParam: string + ): void; + + @post op testOpCustomization(params: Azure.Csharp.Testing.Params): void; + + @@override(Azure.Csharp.Testing.testOp, Azure.Csharp.Testing.testOpCustomization); + `; + + const program = await typeSpecCompile(tsp, runner, { IsTCGCNeeded: true }); + + const context = createEmitterContext(program); + const sdkContext = await createCSharpSdkContext(context); + const root = createModel(sdkContext); + ok(root, "Output model should be generated"); + const clients = root.clients; + ok(clients && clients.length > 0, "Should have at least one client"); + + const methods = clients[0].methods; + ok(methods && methods.length > 0, "Should have methods"); + + const testMethod = methods.find((op: InputServiceMethod) => op.name === "testOp"); + ok(testMethod, "Should find testOp operation"); + + const locations = ["Path", "Query", "Header", "Body"]; + for (const location of locations) { + const param: InputHttpParameter | undefined = testMethod.operation.parameters.find( + (p) => p.kind === location.toLowerCase(), + ); + ok(param, `Should have ${location} parameter`); + ok( + param.methodParameterSegments, + `${location} parameter should have MethodParameterSegments`, + ); + strictEqual( + param.methodParameterSegments.length, + 2, + `${location} parameter should have 2 segments`, + ); + strictEqual( + param.methodParameterSegments[0].name, + "params", + `${location} parameter first segment should be 'params'`, + ); + } + }); + + it("should handle nested property access in methodParameterSegments", async () => { + const tsp = ` + model InnerModel { + prop: string; + } + + model Params { + nested: InnerModel; + } + + @route("/test") + @post op testOp(@body nested: InnerModel): void; + + @post op testOpCustomization(params: Azure.Csharp.Testing.Params): void; + + @@override(Azure.Csharp.Testing.testOp, Azure.Csharp.Testing.testOpCustomization); + `; + + const program = await typeSpecCompile(tsp, runner, { IsTCGCNeeded: true }); + + const context = createEmitterContext(program); + const sdkContext = await createCSharpSdkContext(context); + const root = createModel(sdkContext); + ok(root, "Output model should be generated"); + const clients = root.clients; + ok(clients && clients.length > 0, "Should have at least one client"); + + const methods = clients[0].methods; + ok(methods && methods.length > 0, "Should have methods"); + + const testMethod = methods.find((op: InputServiceMethod) => op.name === "testOp"); + ok(testMethod, "Should find testOp operation"); + + const bodyParam = testMethod.operation.parameters.find((p) => p.kind === "body"); + ok(bodyParam, "Should have body parameter"); + ok(bodyParam.methodParameterSegments, "Body parameter should have MethodParameterSegments"); + strictEqual(bodyParam.methodParameterSegments.length, 2, "Should have 2 segments in path"); + strictEqual( + bodyParam.methodParameterSegments[0].name, + "params", + "First segment should be 'params'", + ); + strictEqual( + bodyParam.methodParameterSegments[1].name, + "nested", + "Second segment should be 'nested'", + ); + }); + }); + + describe("operations without override decorator", () => { + it("should have methodParameterSegments", async () => { + const tsp = ` + @route("/test/{pathParam}") + @get op testOp(@path pathParam: string, @query queryParam: string): void; + `; + + const program = await typeSpecCompile(tsp, runner, { IsTCGCNeeded: true }); + const context = createEmitterContext(program); + const sdkContext = await createCSharpSdkContext(context); + const root = createModel(sdkContext); + + ok(root, "Output model should be generated"); + const clients = root.clients; + ok(clients && clients.length > 0, "Should have at least one client"); + + const methods = clients[0].methods; + ok(methods && methods.length > 0, "Should have methods"); + + const testMethod = methods.find((op: InputServiceMethod) => op.name === "testOp"); + ok(testMethod, "Should find testOp operation"); + + for (const param of testMethod.operation.parameters) { + strictEqual( + param.methodParameterSegments?.length, + 1, + `Parameter ${param.name} should have 1 MethodParameterSegment without override`, + ); + strictEqual( + param.methodParameterSegments?.[0].name, + param.name, + `MethodParameterSegment name should be the same as parameter name without override`, + ); + } + }); + }); + + describe("spread parameters with override", () => { + it("should flow methodParameterSegments for spread body properties", async () => { + const tsp = ` + model SpreadModel { + prop1: string; + prop2: string; + } + + @route("/test") + @post op testOp(...SpreadModel): void; + + @post op testOpCustomization(params: Azure.Csharp.Testing.SpreadModel): void; + + @@override(Azure.Csharp.Testing.testOp, Azure.Csharp.Testing.testOpCustomization); + `; + + const program = await typeSpecCompile(tsp, runner, { IsTCGCNeeded: true }); + const context = createEmitterContext(program); + const sdkContext = await createCSharpSdkContext(context); + const root = createModel(sdkContext); + + ok(root, "Output model should be generated"); + const clients = root.clients; + ok(clients && clients.length > 0, "Should have at least one client"); + + const methods = clients[0].methods; + ok(methods && methods.length > 0, "Should have methods"); + + const testMethod = methods.find((op: InputServiceMethod) => op.name === "testOp"); + ok(testMethod, "Should find testOp operation"); + + const bodyParams = testMethod.operation.parameters.filter( + (p: InputParameter) => p.kind === "body", + ); + ok(bodyParams.length > 0, "Should have body parameters from spread"); + + for (const param of bodyParams) { + if (param.methodParameterSegments) { + strictEqual( + param.methodParameterSegments.length, + 1, + `Spread parameter ${param.name} should have 1 segment`, + ); + strictEqual( + param.methodParameterSegments[0].name, + "params", + `Spread parameter ${param.name} segment should be 'params'`, + ); + } + } + }); + }); +}); diff --git a/packages/http-client-csharp/eng/scripts/Generate.ps1 b/packages/http-client-csharp/eng/scripts/Generate.ps1 index a047b8aa7f3..23787c2a542 100644 --- a/packages/http-client-csharp/eng/scripts/Generate.ps1 +++ b/packages/http-client-csharp/eng/scripts/Generate.ps1 @@ -29,22 +29,22 @@ if (-not $LaunchOnly) { Invoke "npm install --force" $sampleDir - Write-Host "Generating SampleTypeSpec using plugins" -ForegroundColor Cyan - - Invoke "npx tsp compile . --trace @typespec/http-client-csharp --option @typespec/http-client-csharp.new-project=true" $sampleDir - - # exit if the generation failed - if ($LASTEXITCODE -ne 0) { - exit $LASTEXITCODE - } - - Write-Host "Building SampleTypeSpec plugin library" -ForegroundColor Cyan - Invoke "dotnet build $sampleDir/SampleClient/src/SampleTypeSpec.csproj" - - # exit if the generation failed - if ($LASTEXITCODE -ne 0) { - exit $LASTEXITCODE - } +# Write-Host "Generating SampleTypeSpec using plugins" -ForegroundColor Cyan +# +# Invoke "npx tsp compile . --trace @typespec/http-client-csharp --option @typespec/http-client-csharp.new-project=true" $sampleDir +# +# # exit if the generation failed +# if ($LASTEXITCODE -ne 0) { +# exit $LASTEXITCODE +# } + +# Write-Host "Building SampleTypeSpec plugin library" -ForegroundColor Cyan +# Invoke "dotnet build $sampleDir/SampleClient/src/SampleTypeSpec.csproj" +# +# # exit if the generation failed +# if ($LASTEXITCODE -ne 0) { +# exit $LASTEXITCODE +# } Write-Host "Generating SampleTypeSpec" -ForegroundColor Cyan $testProjectsLocalDir = Join-Path $packageRoot 'generator' 'TestProjects' 'Local' diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Primitives/ScmKnownParameters.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Primitives/ScmKnownParameters.cs index 9ff28ed9363..e07006acf43 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Primitives/ScmKnownParameters.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Primitives/ScmKnownParameters.cs @@ -41,28 +41,17 @@ public static ParameterProvider ClientOptions(CSharpType clientOptionsType) private static readonly FormattableString RequestContentDescription = $"The content to send as the body of the request."; private const string RequestContentParameterName = "content"; - public static readonly ParameterProvider RequestContent = new( + public static ParameterProvider CreateRequestContent(InputParameter? parameter = null, bool optional = false, bool nullable = false) => new( RequestContentParameterName, RequestContentDescription, ScmCodeModelGenerator.Instance.TypeFactory.RequestContentApi.RequestContentType, - location: ParameterLocation.Body) + location: ParameterLocation.Body, + defaultValue: optional ? Null : null, + inputParameter: parameter) { - Validation = ParameterValidationType.AssertNotNull + Validation = nullable ? ParameterValidationType.None : ParameterValidationType.AssertNotNull, }; - public static readonly ParameterProvider NullableRequiredRequestContent = new( - RequestContentParameterName, - RequestContentDescription, - ScmCodeModelGenerator.Instance.TypeFactory.RequestContentApi.RequestContentType, - location: ParameterLocation.Body); - - public static readonly ParameterProvider OptionalRequestContent = new( - RequestContentParameterName, - RequestContentDescription, - ScmCodeModelGenerator.Instance.TypeFactory.RequestContentApi.RequestContentType, - location: ParameterLocation.Body, - defaultValue: Null); - // Known header parameters public static readonly ParameterProvider RepeatabilityRequestId = new("repeatabilityRequestId", FormattableStringHelpers.Empty, typeof(Guid)) { diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/RestClientProvider.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/RestClientProvider.cs index a86611a7aef..443620e97a0 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/RestClientProvider.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/RestClientProvider.cs @@ -326,7 +326,7 @@ private Dictionary GetReinjectedParametersMap( private IReadOnlyList GetSetContent(HttpRequestApi request, IReadOnlyList parameters) { var contentParam = parameters.FirstOrDefault( - p => ReferenceEquals(p, ScmKnownParameters.RequestContent) || ReferenceEquals(p, ScmKnownParameters.OptionalRequestContent)); + p => p.Location == ParameterLocation.Body); return contentParam is null ? [] : [request.Content().Assign(contentParam).Terminate()]; } @@ -1041,13 +1041,12 @@ internal static List GetMethodParameters( { if (methodType == ScmMethodKind.CreateRequest) { - parameter = ScmKnownParameters.RequestContent; + parameter = ScmKnownParameters.CreateRequestContent(inputParam); } else { - parameter = parameter.DefaultValue == null - ? ScmKnownParameters.RequestContent - : ScmKnownParameters.OptionalRequestContent; + parameter = ScmKnownParameters.CreateRequestContent(inputParam, + optional: parameter.DefaultValue != null); } } else diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ScmMethodProviderCollection.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ScmMethodProviderCollection.cs index 98d59f4448f..8c423aa81e7 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ScmMethodProviderCollection.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ScmMethodProviderCollection.cs @@ -583,73 +583,125 @@ private IReadOnlyList GetProtocolMethodArguments(Dictionary p.Name, p => p, StringComparer.OrdinalIgnoreCase); + + // Iterate through protocol parameters to maintain correct argument order + foreach (var protocolParam in ProtocolMethodParameters) { - // handle spread - if (param.SpreadSource is not null) + // Skip RequestOptions parameter as it's added at the end + if (protocolParam.Type.Equals(ScmCodeModelGenerator.Instance.TypeFactory.HttpRequestOptionsApi.HttpRequestOptionsType)) + { + continue; + } + + // Try to find the corresponding convenience parameter using MethodParameterSegments + if (protocolParam.InputParameter?.MethodParameterSegments is { Count: > 1 }) { - if (!addedSpreadSource && declarations.TryGetValue("spread", out ValueExpression? spread)) + // The MethodParameterSegments represents a path (e.g., ['Params', 'foo'] means params.foo) + var rootParameterName = protocolParam.InputParameter.MethodParameterSegments[0].Name; + if (!convenienceParamsMap.TryGetValue(rootParameterName, out var convenienceParam) || + // Body parameters are handled separately + convenienceParam.Location == ParameterLocation.Body) + { + continue; + } + + // Navigate through the property path + var propertySegments = protocolParam.InputParameter.MethodParameterSegments + .Skip(1) + .Select(p => p.Name) + .ToList(); + + if (ScmCodeModelGenerator.Instance.TypeFactory.CSharpTypeMap.TryGetValue(convenienceParam.Type, out var typeProvider) && + typeProvider is ModelProvider paramModel) { - conversions.Add(spread); - addedSpreadSource = true; + conversions.Add(paramModel.GetPropertyExpression(convenienceParam, propertySegments)); } } - else if (param.Location == ParameterLocation.Body) + else { - // Add any non-body parameters that may have been declared within the request body model - List? requiredParameters = null; - List? optionalParameters = null; - - if (param.Type.Equals(bodyModel?.Type) == true) + if (!convenienceParamsMap.TryGetValue(protocolParam.Name, out var convenienceParam)) { - var parameterConversions = GetNonBodyModelPropertiesConversions(param, bodyModel); - if (parameterConversions != null) + if (protocolParam.IsContentParameter) { - requiredParameters = parameterConversions.Value.RequiredParameters; - optionalParameters = parameterConversions.Value.OptionalParameters; + convenienceParam = ConvenienceMethodParameters.FirstOrDefault(p => p.Location == ParameterLocation.Body); } } - // Add required non-body parameters - if (requiredParameters != null) + if (convenienceParam == null) { - conversions.AddRange(requiredParameters); + continue; } - if (param.Type.IsReadOnlyMemory || param.Type.IsList) + // Handle spread + if (convenienceParam.SpreadSource is not null) { - conversions.Add(declarations["content"]); - } - else if (param.Type.IsEnum) - { - conversions.Add(RequestContentApiSnippets.Create(BinaryDataSnippets.FromObjectAsJson(param.Type.ToSerial(param)))); + if (!addedSpreadSource && declarations.TryGetValue("spread", out ValueExpression? spread)) + { + conversions.Add(spread); + addedSpreadSource = true; + } } - else if (param.Type.Equals(typeof(BinaryData))) + else if (convenienceParam.Location == ParameterLocation.Body) { - conversions.Add(RequestContentApiSnippets.Create(param)); + // Add any non-body parameters that may have been declared within the request body model + List? requiredParameters = null; + List? optionalParameters = null; + + if (convenienceParam.Type.Equals(bodyModel?.Type)) + { + var parameterConversions = + GetNonBodyModelPropertiesConversions(convenienceParam, bodyModel); + if (parameterConversions != null) + { + requiredParameters = parameterConversions.Value.RequiredParameters; + optionalParameters = parameterConversions.Value.OptionalParameters; + } + } + + // Add required non-body parameters + if (requiredParameters != null) + { + conversions.AddRange(requiredParameters); + } + + if (convenienceParam.Type.IsReadOnlyMemory || convenienceParam.Type.IsList) + { + conversions.Add(declarations["content"]); + } + else if (convenienceParam.Type.IsEnum) + { + conversions.Add(RequestContentApiSnippets.Create( + BinaryDataSnippets.FromObjectAsJson(convenienceParam.Type.ToSerial(convenienceParam)))); + } + else if (convenienceParam.Type.Equals(typeof(BinaryData))) + { + conversions.Add(RequestContentApiSnippets.Create(convenienceParam)); + } + else if (convenienceParam.Type.IsFrameworkType) + { + conversions.Add(declarations["content"]); + } + else + { + conversions.Add(convenienceParam); + } + + // Add optional non-body parameters + if (optionalParameters != null) + { + conversions.AddRange(optionalParameters); + } } - else if (param.Type.IsFrameworkType) + else if (convenienceParam.Type.IsEnum) { - conversions.Add(declarations["content"]); + conversions.Add(convenienceParam.Type.ToSerial(convenienceParam)); } else { - conversions.Add(param); + conversions.Add(convenienceParam); } - - // Add optional non-body parameters - if (optionalParameters != null) - { - conversions.AddRange(optionalParameters); - } - } - else if (param.Type.IsEnum) - { - conversions.Add(param.Type.ToSerial(param)); - } - else - { - conversions.Add(param); } } @@ -800,7 +852,7 @@ private ParameterProvider ProcessOptionalParameters( // If we need to make parameters required, make only the first optional parameter nullable required. // This is to prevent ambiguous callsites with the RequestOptions parameter while avoiding overly aggressive required parameter conversion. bool hasOptionalRequestContent = - optionalParameters.Any(p => p.Equals(ScmKnownParameters.OptionalRequestContent)); + optionalParameters.Any(p => p.IsContentParameter); // If there is an optional request content parameter, we need to make all parameters required up to and including the request content parameter if (hasOptionalRequestContent) @@ -808,13 +860,15 @@ private ParameterProvider ProcessOptionalParameters( int parametersMadeRequired = 0; foreach (var optionalParameter in optionalParameters) { - if (optionalParameter.Equals(ScmKnownParameters.OptionalRequestContent)) + if (optionalParameter.IsContentParameter) { - requiredParameters.Add(ScmKnownParameters.NullableRequiredRequestContent); + var nullableRequiredContent = + ScmKnownParameters.CreateRequestContent(optionalParameter.InputParameter, nullable: true); + requiredParameters.Add(nullableRequiredContent); // Update the body param in the underlying collection var bodyParamIndex = ProtocolMethodParameters.IndexOf(optionalParameter); ProtocolMethodParameters[bodyParamIndex] = - ScmKnownParameters.NullableRequiredRequestContent; + nullableRequiredContent; parametersMadeRequired++; break; } @@ -832,7 +886,7 @@ private ParameterProvider ProcessOptionalParameters( { // If there is a required request content, then we don't need to make the optional parameters required bool hasRequiredRequestContent = - requiredParameters.Any(p => p.Equals(ScmKnownParameters.RequestContent)); + requiredParameters.Any(p => p.IsContentParameter); if (hasRequiredRequestContent) { diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ScmMethodProviderCollectionTests.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ScmMethodProviderCollectionTests.cs index 8f270779b58..8928b488ca5 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ScmMethodProviderCollectionTests.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ScmMethodProviderCollectionTests.cs @@ -1378,5 +1378,240 @@ public void DictionaryOfValueTypeUsesJsonDoc(Type valueType) Assert.AreEqual(Helpers.GetExpectedFromFile(valueType.Name), actualCode); } + #region MethodParameterSegments Tests + + [Test] + public async Task MethodParameterSegments_ExtractsPropertyValues() + { + // Test scenario: Verify MethodParameterSegments correctly maps convenience params to protocol params + var wrapperModel = InputFactory.Model( + "Wrapper", + properties: + [ + InputFactory.Property("p1", InputPrimitiveType.String, isRequired: true), + InputFactory.Property("p2", InputPrimitiveType.String, isRequired: true), + ]); + + var p1Param = InputFactory.PathParameter("p1", InputPrimitiveType.String, isRequired: true); + p1Param.Update(methodParameterSegments: [ + InputFactory.MethodParameter("wrapper", wrapperModel, isRequired: true), + InputFactory.MethodParameter("p1", InputPrimitiveType.String, isRequired: true) + ]); + + var p2Param = InputFactory.PathParameter("p2", InputPrimitiveType.String, isRequired: true); + p2Param.Update(methodParameterSegments: [ + InputFactory.MethodParameter("wrapper", wrapperModel, isRequired: true), + InputFactory.MethodParameter("p2", InputPrimitiveType.String, isRequired: true) + ]); + + var serviceMethod = InputFactory.BasicServiceMethod( + "testOp", + InputFactory.Operation( + "testOp", + parameters: [p1Param, p2Param]), + parameters: [InputFactory.MethodParameter("wrapper", wrapperModel, isRequired: true)]); + + var inputClient = InputFactory.Client("TestClient", methods: [serviceMethod]); + await MockHelpers.LoadMockGeneratorAsync(clients: () => [inputClient]); + + var client = ScmCodeModelGenerator.Instance.TypeFactory.CreateClient(inputClient); + Assert.IsNotNull(client); + + var methodCollection = new ScmMethodProviderCollection(serviceMethod, client!); + Assert.IsNotNull(methodCollection); + + // Verify that MethodParameterSegments are correctly set on the input parameters + Assert.AreEqual(2, p1Param.MethodParameterSegments!.Count, "p1 should have 2 segments"); + Assert.AreEqual("wrapper", p1Param.MethodParameterSegments[0].Name); + Assert.AreEqual("p1", p1Param.MethodParameterSegments[1].Name); + + Assert.AreEqual(2, p2Param.MethodParameterSegments!.Count, "p2 should have 2 segments"); + Assert.AreEqual("wrapper", p2Param.MethodParameterSegments[0].Name); + Assert.AreEqual("p2", p2Param.MethodParameterSegments[1].Name); + } + + [Test] + public async Task MethodParameterSegments_BodyParameterSerialization() + { + // Test scenario: Body parameter with MethodParameterSegments should be serialized + var wrapperModel = InputFactory.Model( + "Wrapper", + properties: + [ + InputFactory.Property("action", InputPrimitiveType.String, isRequired: true), + ]); + + var bodyParam = InputFactory.BodyParameter("action", InputPrimitiveType.String, isRequired: true); + bodyParam.Update(methodParameterSegments: [ + InputFactory.MethodParameter("wrapper", wrapperModel, isRequired: true), + InputFactory.MethodParameter("action", InputPrimitiveType.String, isRequired: true) + ]); + + var serviceMethod = InputFactory.BasicServiceMethod( + "testOp", + InputFactory.Operation( + "testOp", + parameters: [bodyParam]), + parameters: [InputFactory.MethodParameter("wrapper", wrapperModel, isRequired: true)]); + + var inputClient = InputFactory.Client("TestClient", methods: [serviceMethod]); + await MockHelpers.LoadMockGeneratorAsync(clients: () => [inputClient]); + + var client = ScmCodeModelGenerator.Instance.TypeFactory.CreateClient(inputClient); + Assert.IsNotNull(client); + + var methodCollection = new ScmMethodProviderCollection(serviceMethod, client!); + Assert.IsNotNull(methodCollection); + + // Verify MethodParameterSegments are set correctly + Assert.IsNotNull(bodyParam.MethodParameterSegments); + Assert.AreEqual(2, bodyParam.MethodParameterSegments!.Count); + Assert.AreEqual("wrapper", bodyParam.MethodParameterSegments[0].Name); + Assert.AreEqual("action", bodyParam.MethodParameterSegments[1].Name); + } + + [Test] + public async Task MethodParameterSegments_MultipleSegments() + { + // Test scenario: Nested property access with 3+ segments + var innerModel = InputFactory.Model( + "Inner", + properties: + [ + InputFactory.Property("data", InputPrimitiveType.String, isRequired: true), + ]); + + var wrapperModel = InputFactory.Model( + "Wrapper", + properties: + [ + InputFactory.Property("inner", innerModel, isRequired: true), + ]); + + var bodyParam = InputFactory.BodyParameter("data", InputPrimitiveType.String, isRequired: true); + bodyParam.Update(methodParameterSegments: [ + InputFactory.MethodParameter("wrapper", wrapperModel, isRequired: true), + InputFactory.MethodParameter("inner", innerModel, isRequired: true), + InputFactory.MethodParameter("data", InputPrimitiveType.String, isRequired: true) + ]); + + var serviceMethod = InputFactory.BasicServiceMethod( + "testOp", + InputFactory.Operation( + "testOp", + parameters: [bodyParam]), + parameters: [InputFactory.MethodParameter("wrapper", wrapperModel, isRequired: true)]); + + var inputClient = InputFactory.Client("TestClient", methods: [serviceMethod]); + await MockHelpers.LoadMockGeneratorAsync(clients: () => [inputClient]); + + var client = ScmCodeModelGenerator.Instance.TypeFactory.CreateClient(inputClient); + Assert.IsNotNull(client); + + var methodCollection = new ScmMethodProviderCollection(serviceMethod, client!); + Assert.IsNotNull(methodCollection); + + // Verify 3-level nesting in MethodParameterSegments + Assert.IsNotNull(bodyParam.MethodParameterSegments); + Assert.AreEqual(3, bodyParam.MethodParameterSegments!.Count, "Should have 3 segments for nested property"); + Assert.AreEqual("wrapper", bodyParam.MethodParameterSegments[0].Name); + Assert.AreEqual("inner", bodyParam.MethodParameterSegments[1].Name); + Assert.AreEqual("data", bodyParam.MethodParameterSegments[2].Name); + } + + [Test] + public async Task MethodParameterSegments_MixedParameterLocations() + { + // Test scenario: Mix of path, query, header, and body parameters + var paramsModel = InputFactory.Model( + "Params", + properties: + [ + InputFactory.Property("pathParam", InputPrimitiveType.String, isRequired: true), + InputFactory.Property("queryParam", InputPrimitiveType.String, isRequired: true), + InputFactory.Property("headerParam", InputPrimitiveType.String, isRequired: true), + InputFactory.Property("bodyParam", InputPrimitiveType.String, isRequired: true), + ]); + + var pathParam = InputFactory.PathParameter("pathParam", InputPrimitiveType.String, isRequired: true); + pathParam.Update(methodParameterSegments: [ + InputFactory.MethodParameter("params", paramsModel, isRequired: true), + InputFactory.MethodParameter("pathParam", InputPrimitiveType.String, isRequired: true) + ]); + + var queryParam = InputFactory.QueryParameter("queryParam", InputPrimitiveType.String, isRequired: true); + queryParam.Update(methodParameterSegments: [ + InputFactory.MethodParameter("params", paramsModel, isRequired: true), + InputFactory.MethodParameter("queryParam", InputPrimitiveType.String, isRequired: true) + ]); + + var headerParam = InputFactory.HeaderParameter("headerParam", InputPrimitiveType.String, isRequired: true); + headerParam.Update(methodParameterSegments: [ + InputFactory.MethodParameter("params", paramsModel, isRequired: true), + InputFactory.MethodParameter("headerParam", InputPrimitiveType.String, isRequired: true) + ]); + + var bodyParam = InputFactory.BodyParameter("bodyParam", InputPrimitiveType.String, isRequired: true); + bodyParam.Update(methodParameterSegments: [ + InputFactory.MethodParameter("params", paramsModel, isRequired: true), + InputFactory.MethodParameter("bodyParam", InputPrimitiveType.String, isRequired: true) + ]); + + var serviceMethod = InputFactory.BasicServiceMethod( + "testOp", + InputFactory.Operation( + "testOp", + parameters: [pathParam, queryParam, headerParam, bodyParam]), + parameters: [InputFactory.MethodParameter("params", paramsModel, isRequired: true)]); + + var inputClient = InputFactory.Client("TestClient", methods: [serviceMethod]); + await MockHelpers.LoadMockGeneratorAsync(clients: () => [inputClient]); + + var client = ScmCodeModelGenerator.Instance.TypeFactory.CreateClient(inputClient); + Assert.IsNotNull(client); + + var methodCollection = new ScmMethodProviderCollection(serviceMethod, client!); + Assert.IsNotNull(methodCollection); + + // Verify all parameter types have MethodParameterSegments + Assert.IsNotNull(pathParam.MethodParameterSegments); + Assert.AreEqual(2, pathParam.MethodParameterSegments!.Count); + + Assert.IsNotNull(queryParam.MethodParameterSegments); + Assert.AreEqual(2, queryParam.MethodParameterSegments!.Count); + + Assert.IsNotNull(headerParam.MethodParameterSegments); + Assert.AreEqual(2, headerParam.MethodParameterSegments!.Count); + + Assert.IsNotNull(bodyParam.MethodParameterSegments); + Assert.AreEqual(2, bodyParam.MethodParameterSegments!.Count); + } + + [Test] + public async Task MethodParameterSegments_UpdateMethod_SetsSegments() + { + // Test the InputParameter.Update method correctly sets MethodParameterSegments + var model = InputFactory.Model("TestModel"); + var param = InputFactory.PathParameter("test", InputPrimitiveType.String, isRequired: true); + + // Initially should be null or empty + Assert.IsTrue(param.MethodParameterSegments == null || param.MethodParameterSegments.Count == 0); + + // Update with segments + var segments = new List + { + InputFactory.MethodParameter("param1", model, isRequired: true), + InputFactory.MethodParameter("param2", InputPrimitiveType.String, isRequired: true) + }; + param.Update(methodParameterSegments: segments); + + // Verify segments are set + Assert.IsNotNull(param.MethodParameterSegments); + Assert.AreEqual(2, param.MethodParameterSegments!.Count); + Assert.AreEqual("param1", param.MethodParameterSegments[0].Name); + Assert.AreEqual("param2", param.MethodParameterSegments[1].Name); + } + + #endregion } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/ScmKnownParametersTests.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/ScmKnownParametersTests.cs index e96bfd1b498..40e7c9e92bd 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/ScmKnownParametersTests.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/ScmKnownParametersTests.cs @@ -21,7 +21,7 @@ public void Setup() [Test] public void BinaryDataParameterHasValidation() { - var parameter = ScmKnownParameters.RequestContent; + var parameter = ScmKnownParameters.CreateRequestContent(); Assert.AreEqual(ParameterValidationType.AssertNotNull, parameter.Validation); } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputParameter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputParameter.cs index 1dfd9e14a5c..a19b88ecd90 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputParameter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputParameter.cs @@ -2,6 +2,7 @@ // Licensed under the MIT License. using System; +using System.Collections.Generic; using System.Text.Json; namespace Microsoft.TypeSpec.Generator.Input @@ -26,13 +27,15 @@ protected InputParameter( } public InputParameterScope Scope { get; internal set; } + public IReadOnlyList? MethodParameterSegments { get; internal set; } /// /// Update the instance with given parameters. /// /// The scope of the /// The name of the - public void Update(InputParameterScope? scope = null, string? name = null) + /// The method parameter segments for override scenarios + public void Update(InputParameterScope? scope = null, string? name = null, IReadOnlyList? methodParameterSegments = null) { if (scope.HasValue) { @@ -42,6 +45,10 @@ public void Update(InputParameterScope? scope = null, string? name = null) { Name = name; } + if (methodParameterSegments != null) + { + MethodParameterSegments = methodParameterSegments; + } } public static InputParameterScope ParseScope(InputType type, string name, string? scope) diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputBodyParameterConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputBodyParameterConverter.cs index f2eae76bd38..1e9330c069d 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputBodyParameterConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputBodyParameterConverter.cs @@ -62,6 +62,7 @@ internal static InputBodyParameter ReadInputBodyParameter(ref Utf8JsonReader rea IReadOnlyList? contentTypes = null; string? defaultContentType = null; IReadOnlyList? decorators = null; + IReadOnlyList? methodParameterSegments = null; while (reader.TokenType != JsonTokenType.EndObject) { @@ -79,7 +80,8 @@ internal static InputBodyParameter ReadInputBodyParameter(ref Utf8JsonReader rea || reader.TryReadString("scope", ref scope) || reader.TryReadComplexType("contentTypes",options, ref contentTypes) || reader.TryReadComplexType("defaultContentType", options, ref defaultContentType) - || reader.TryReadComplexType("decorators", options, ref decorators); + || reader.TryReadComplexType("decorators", options, ref decorators) + || reader.TryReadComplexType("methodParameterSegments", options, ref methodParameterSegments); if (!isKnownProperty) { @@ -101,6 +103,7 @@ internal static InputBodyParameter ReadInputBodyParameter(ref Utf8JsonReader rea parameter.Scope = InputParameter.ParseScope(type, name, scope); parameter.ContentTypes = contentTypes ?? throw new JsonException($"{nameof(InputBodyParameter)} must have a contentTypes."); parameter.DefaultContentType = defaultContentType ?? throw new JsonException($"{nameof(InputBodyParameter)} must have a defaultContentType."); + parameter.MethodParameterSegments = methodParameterSegments; return parameter; } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputEndpointParameterConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputEndpointParameterConverter.cs index 7fdbf820a88..f77af62a9fa 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputEndpointParameterConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputEndpointParameterConverter.cs @@ -64,6 +64,7 @@ internal static InputEndpointParameter ReadInputEndpointParameter(ref Utf8JsonRe string? serverUrlTemplate = null; bool isEndpoint = false; IReadOnlyList? decorators = null; + IReadOnlyList? methodParameterSegments = null; while (reader.TokenType != JsonTokenType.EndObject) { @@ -82,7 +83,8 @@ internal static InputEndpointParameter ReadInputEndpointParameter(ref Utf8JsonRe || reader.TryReadString("scope", ref scope) || reader.TryReadBoolean("skipUrlEncoding", ref skipUrlEncoding) || reader.TryReadBoolean("isEndpoint", ref isEndpoint) - || reader.TryReadComplexType("decorators", options, ref decorators); + || reader.TryReadComplexType("decorators", options, ref decorators) + || reader.TryReadComplexType("methodParameterSegments", options, ref methodParameterSegments); if (!isKnownProperty) { @@ -103,8 +105,9 @@ internal static InputEndpointParameter ReadInputEndpointParameter(ref Utf8JsonRe parameter.IsApiVersion = isApiVersion; parameter.DefaultValue = defaultValue; parameter.IsEndpoint = isEndpoint; - parameter.Scope = InputParameter.ParseScope(type, name, scope);; + parameter.Scope = InputParameter.ParseScope(type, name, scope); parameter.SkipUrlEncoding = skipUrlEncoding; + parameter.MethodParameterSegments = methodParameterSegments; return parameter; } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputHeaderParameterConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputHeaderParameterConverter.cs index cbd522550e8..0d3f6bb889c 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputHeaderParameterConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputHeaderParameterConverter.cs @@ -64,6 +64,7 @@ internal static InputHeaderParameter ReadInputHeaderParameter(ref Utf8JsonReader string? access = null; string? collectionFormat = null; IReadOnlyList? decorators = null; + IReadOnlyList? methodParameterSegments = null; while (reader.TokenType != JsonTokenType.EndObject) { @@ -82,7 +83,8 @@ internal static InputHeaderParameter ReadInputHeaderParameter(ref Utf8JsonReader || reader.TryReadString("scope", ref scope) || reader.TryReadString("arraySerializationDelimiter", ref arraySerializationDelimiter) || reader.TryReadBoolean("isContentType", ref isContentType) - || reader.TryReadComplexType("decorators", options, ref decorators); + || reader.TryReadComplexType("decorators", options, ref decorators) + || reader.TryReadComplexType("methodParameterSegments", options, ref methodParameterSegments); if (!isKnownProperty) { @@ -102,9 +104,10 @@ internal static InputHeaderParameter ReadInputHeaderParameter(ref Utf8JsonReader parameter.SerializedName = serializedName ?? throw new JsonException($"{nameof(InputHeaderParameter)} must have a serializedName."); parameter.IsApiVersion = isApiVersion; parameter.DefaultValue = defaultValue; - parameter.Scope = InputParameter.ParseScope(type, name, scope);; + parameter.Scope = InputParameter.ParseScope(type, name, scope); parameter.ArraySerializationDelimiter = arraySerializationDelimiter; parameter.IsContentType = isContentType; + parameter.MethodParameterSegments = methodParameterSegments; return parameter; } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPathParameterConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPathParameterConverter.cs index 185466eaf56..28b58bb7bd8 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPathParameterConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputPathParameterConverter.cs @@ -66,6 +66,7 @@ internal static InputPathParameter ReadInputPathParameter(ref Utf8JsonReader rea string? serverUrlTemplate = null; bool allowReserved = false; IReadOnlyList? decorators = null; + IReadOnlyList? methodParameterSegments = null; while (reader.TokenType != JsonTokenType.EndObject) { @@ -85,7 +86,8 @@ internal static InputPathParameter ReadInputPathParameter(ref Utf8JsonReader rea || reader.TryReadString("scope", ref scope) || reader.TryReadBoolean("explode", ref explode) || reader.TryReadBoolean("skipUrlEncoding", ref skipUrlEncoding) - || reader.TryReadComplexType("decorators", options, ref decorators); + || reader.TryReadComplexType("decorators", options, ref decorators) + || reader.TryReadComplexType("methodParameterSegments", options, ref methodParameterSegments); if (!isKnownProperty) { @@ -106,9 +108,10 @@ internal static InputPathParameter ReadInputPathParameter(ref Utf8JsonReader rea parameter.SerializedName = serializedName ?? throw new JsonException($"{nameof(InputPathParameter)} must have a serializedName."); parameter.IsApiVersion = isApiVersion; parameter.DefaultValue = defaultValue; - parameter.Scope = InputParameter.ParseScope(type, name, scope);; + parameter.Scope = InputParameter.ParseScope(type, name, scope); parameter.Explode = explode; parameter.SkipUrlEncoding = skipUrlEncoding; + parameter.MethodParameterSegments = methodParameterSegments; return parameter; } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputQueryParameterConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputQueryParameterConverter.cs index 066e9469e6c..a05f70408f5 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputQueryParameterConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/InputQueryParameterConverter.cs @@ -64,6 +64,7 @@ internal static InputQueryParameter ReadInputQueryParameter(ref Utf8JsonReader r string? collectionFormat = null; bool explode = false; IReadOnlyList? decorators = null; + IReadOnlyList? methodParameterSegments = null; while (reader.TokenType != JsonTokenType.EndObject) { @@ -82,7 +83,8 @@ internal static InputQueryParameter ReadInputQueryParameter(ref Utf8JsonReader r || reader.TryReadString("scope", ref scope) || reader.TryReadString("arraySerializationDelimiter", ref arraySerializationDelimiter) || reader.TryReadBoolean("explode", ref explode) - || reader.TryReadComplexType("decorators", options, ref decorators); + || reader.TryReadComplexType("decorators", options, ref decorators) + || reader.TryReadComplexType("methodParameterSegments", options, ref methodParameterSegments); if (!isKnownProperty) { @@ -103,8 +105,9 @@ internal static InputQueryParameter ReadInputQueryParameter(ref Utf8JsonReader r parameter.SerializedName = serializedName ?? throw new JsonException($"{nameof(InputQueryParameter)} must have a serializedName."); parameter.IsApiVersion = isApiVersion; parameter.DefaultValue = defaultValue; - parameter.Scope = InputParameter.ParseScope(type, name, scope);; + parameter.Scope = InputParameter.ParseScope(type, name, scope); parameter.ArraySerializationDelimiter = arraySerializationDelimiter; + parameter.MethodParameterSegments = methodParameterSegments; return parameter; } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/src/Providers/ParameterProvider.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/src/Providers/ParameterProvider.cs index 7d844e45a8a..21e6f9c1adf 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/src/Providers/ParameterProvider.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/src/Providers/ParameterProvider.cs @@ -34,6 +34,8 @@ public sealed class ParameterProvider : IEquatable public bool IsOut { get; private set; } public bool IsParams { get; private set; } + public bool IsContentParameter => Name == "content" && Location == ParameterLocation.Body; + public IReadOnlyList Attributes { get; private set; } public WireInformation WireInfo { get; private set; } public ParameterLocation Location { get; private set; } @@ -48,12 +50,19 @@ public sealed class ParameterProvider : IEquatable /// public FieldProvider? Field { get; set; } + /// + /// This property stores the InputParameter that this ParameterProvider was created from. + /// Used to access metadata like MethodParameterSegments for override scenarios. + /// + public InputParameter? InputParameter { get; private set; } + /// /// Creates a from an . /// /// The to convert. public ParameterProvider(InputParameter inputParameter) { + InputParameter = inputParameter; Name = inputParameter.Name; Description = DocHelpers.GetFormattableDescription(inputParameter.Summary, inputParameter.Doc) ?? FormattableStringHelpers.Empty; var type = CodeModelGenerator.Instance.TypeFactory.CreateCSharpType(inputParameter.Type) ?? throw new InvalidOperationException($"Failed to create CSharpType for {inputParameter.Type}"); @@ -88,7 +97,8 @@ public ParameterProvider( ValueExpression? initializationValue = null, ParameterLocation? location = null, WireInformation? wireInfo = null, - ParameterValidationType? validation = null) + ParameterValidationType? validation = null, + InputParameter? inputParameter = null) { Debug.Assert(!(property is not null && field is not null), "A parameter cannot be both a property and a field"); @@ -107,6 +117,7 @@ public ParameterProvider( InitializationValue = initializationValue; WireInfo = wireInfo ?? new WireInformation(SerializationFormat.Default, name); Location = location ?? ParameterLocation.Unknown; + InputParameter = inputParameter; } private ParameterProvider? _inputParameter; @@ -136,7 +147,8 @@ private ParameterProvider BuildInputVariant() validation: Validation) { _asVariable = _asVariable, - SpreadSource = SpreadSource + SpreadSource = SpreadSource, + InputParameter = InputParameter }; } diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/Models/SampleTypeSpecContext.cs b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/Models/SampleTypeSpecContext.cs index 2442bc81805..bdeaf475d0a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/Models/SampleTypeSpecContext.cs +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/Models/SampleTypeSpecContext.cs @@ -37,6 +37,7 @@ namespace SampleTypeSpec [ModelReaderWriterBuildable(typeof(UnknownAnimal))] [ModelReaderWriterBuildable(typeof(UnknownPet))] [ModelReaderWriterBuildable(typeof(UnknownPlant))] + [ModelReaderWriterBuildable(typeof(Wrapper))] [ModelReaderWriterBuildable(typeof(XmlAdvancedModel))] [ModelReaderWriterBuildable(typeof(XmlItem))] [ModelReaderWriterBuildable(typeof(XmlModelWithNamespace))] diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/Models/Wrapper.Serialization.cs b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/Models/Wrapper.Serialization.cs new file mode 100644 index 00000000000..ce9b123415e --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/Models/Wrapper.Serialization.cs @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; + +namespace SampleTypeSpec +{ + /// The Wrapper. + public partial class Wrapper : IJsonModel + { + /// Initializes a new instance of for deserialization. + internal Wrapper() + { + } + + /// The data to parse. + /// The client options for reading and writing models. + protected virtual Wrapper PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions)) + { + return DeserializeWrapper(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(Wrapper)} does not support reading '{options.Format}' format."); + } + } + + /// The JSON writer. + /// The client options for reading and writing models. + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(Wrapper)} does not support writing '{format}' format."); + } + writer.WritePropertyName("action"u8); + writer.WriteObjectValue(Action, options); + if (options.Format != "W" && _additionalBinaryDataProperties != null) + { + foreach (var item in _additionalBinaryDataProperties) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + /// The JSON reader. + /// The client options for reading and writing models. + Wrapper IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options); + + /// The JSON reader. + /// The client options for reading and writing models. + protected virtual Wrapper JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(Wrapper)} does not support reading '{format}' format."); + } + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeWrapper(document.RootElement, options); + } + + /// The JSON element to deserialize. + /// The client options for reading and writing models. + internal static Wrapper DeserializeWrapper(JsonElement element, ModelReaderWriterOptions options) + { + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string p1 = default; + RoundTripModel action = default; + string p2 = default; + IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary(); + foreach (var prop in element.EnumerateObject()) + { + if (prop.NameEquals("action"u8)) + { + action = RoundTripModel.DeserializeRoundTripModel(prop.Value, options); + continue; + } + if (options.Format != "W") + { + additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText())); + } + } + return new Wrapper(p1, action, p2, additionalBinaryDataProperties); + } + + /// The client options for reading and writing models. + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options); + + /// The client options for reading and writing models. + protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) + { + string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, SampleTypeSpecContext.Default); + default: + throw new FormatException($"The model {nameof(Wrapper)} does not support writing '{options.Format}' format."); + } + } + + /// The data to parse. + /// The client options for reading and writing models. + Wrapper IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options); + + /// The client options for reading and writing models. + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/Models/Wrapper.cs b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/Models/Wrapper.cs new file mode 100644 index 00000000000..4899c3770e7 --- /dev/null +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/Models/Wrapper.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace SampleTypeSpec +{ + /// The Wrapper. + public partial class Wrapper + { + /// Keeps track of any properties unknown to the library. + private protected readonly IDictionary _additionalBinaryDataProperties; + + /// Initializes a new instance of . + /// header parameter. + /// body parameter. + /// path parameter. + /// , or is null. + public Wrapper(string p1, RoundTripModel action, string p2) + { + Argument.AssertNotNull(p1, nameof(p1)); + Argument.AssertNotNull(action, nameof(action)); + Argument.AssertNotNull(p2, nameof(p2)); + + P1 = p1; + Action = action; + P2 = p2; + } + + /// Initializes a new instance of . + /// header parameter. + /// body parameter. + /// path parameter. + /// Keeps track of any properties unknown to the library. + internal Wrapper(string p1, RoundTripModel action, string p2, IDictionary additionalBinaryDataProperties) + { + P1 = p1; + Action = action; + P2 = p2; + _additionalBinaryDataProperties = additionalBinaryDataProperties; + } + + /// header parameter. + public string P1 { get; } + + /// body parameter. + public RoundTripModel Action { get; } + + /// path parameter. + public string P2 { get; } + } +} diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/SampleTypeSpecClient.cs b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/SampleTypeSpecClient.cs index ee2db0406fc..a20628f3528 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/SampleTypeSpecClient.cs +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/SampleTypeSpecClient.cs @@ -318,6 +318,32 @@ public virtual async Task NoContentTypeAsync(string p2, string p1, return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false)); } + /// Return hi again. + /// + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual ClientResult NoContentType(Wrapper info, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(info, nameof(info)); + + ClientResult result = NoContentType(info.P2, info.P1, info.Action, cancellationToken.ToRequestOptions()); + return ClientResult.FromValue((RoundTripModel)result, result.GetRawResponse()); + } + + /// Return hi again. + /// + /// The cancellation token that can be used to cancel the operation. + /// is null. + /// Service returned a non-success status code. + public virtual async Task> NoContentTypeAsync(Wrapper info, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(info, nameof(info)); + + ClientResult result = await NoContentTypeAsync(info.P2, info.P1, info.Action, cancellationToken.ToRequestOptions()).ConfigureAwait(false); + return ClientResult.FromValue((RoundTripModel)result, result.GetRawResponse()); + } + /// /// [Protocol Method] Return hi in demo2 /// diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/SampleTypeSpecModelFactory.cs b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/SampleTypeSpecModelFactory.cs index 5a3ec6dc225..c7bbe423d35 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/SampleTypeSpecModelFactory.cs +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/src/Generated/SampleTypeSpecModelFactory.cs @@ -136,6 +136,16 @@ public static ModelWithRequiredNullableProperties ModelWithRequiredNullablePrope return new ModelWithRequiredNullableProperties(requiredNullablePrimitive, requiredExtensibleEnum, requiredFixedEnum, additionalBinaryDataProperties: null); } + /// The Wrapper. + /// header parameter. + /// body parameter. + /// path parameter. + /// A new instance for mocking. + public static Wrapper Wrapper(string p1 = default, RoundTripModel action = default, string p2 = default) + { + return new Wrapper(p1, action, p2, additionalBinaryDataProperties: null); + } + /// this is not a friendly model but with a friendly name. /// name of the NotFriend. /// A new instance for mocking. diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json index 6ed47ccf3f4..a7e1519244a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Sample-TypeSpec/tspCodeModel.json @@ -959,7 +959,7 @@ { "$id": "90", "kind": "constant", - "name": "helloAgainContentType", + "name": "HelloAgainRequestContentType1", "namespace": "", "usage": "None", "valueType": { @@ -969,13 +969,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "text/plain", "decorators": [] }, { "$id": "92", "kind": "constant", - "name": "HelloAgainRequestContentType1", + "name": "helloAgainContentType", "namespace": "", "usage": "None", "valueType": { @@ -985,7 +985,7 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "text/plain", + "value": "application/json", "decorators": [] }, { @@ -1087,97 +1087,97 @@ { "$id": "106", "kind": "constant", - "name": "ThingRequiredLiteralInt1", + "name": "HelloLiteralRequestP11", "namespace": "", "usage": "None", "valueType": { "$id": "107", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": 123, + "value": "test", "decorators": [] }, { "$id": "108", "kind": "constant", - "name": "ThingOptionalLiteralBool1", + "name": "ThingRequiredLiteralInt1", "namespace": "", "usage": "None", "valueType": { "$id": "109", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", "decorators": [] }, - "value": true, + "value": 123, "decorators": [] }, { "$id": "110", "kind": "constant", - "name": "helloLiteralContentType", + "name": "ThingRequiredLiteralInt2", "namespace": "", "usage": "None", "valueType": { "$id": "111", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", "decorators": [] }, - "value": "application/json", + "value": 123, "decorators": [] }, { "$id": "112", "kind": "constant", - "name": "HelloLiteralRequestP11", + "name": "ThingOptionalLiteralBool1", "namespace": "", "usage": "None", "valueType": { "$id": "113", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", "decorators": [] }, - "value": "test", + "value": true, "decorators": [] }, { "$id": "114", "kind": "constant", - "name": "ThingRequiredLiteralInt2", + "name": "ThingOptionalLiteralBool2", "namespace": "", "usage": "None", "valueType": { "$id": "115", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", "decorators": [] }, - "value": 123, + "value": true, "decorators": [] }, { "$id": "116", "kind": "constant", - "name": "ThingOptionalLiteralBool2", + "name": "helloLiteralContentType", "namespace": "", "usage": "None", "valueType": { "$id": "117", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": true, + "value": "application/json", "decorators": [] }, { @@ -1263,7 +1263,7 @@ { "$id": "128", "kind": "constant", - "name": "AnonymousBodyRequestRequiredHeader", + "name": "AnonymousBodyRequestRequiredQueryParam1", "namespace": "", "usage": "None", "valueType": { @@ -1273,13 +1273,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "someRequiredLiteralHeader", + "value": "someRequiredLiteralQueryParam", "decorators": [] }, { "$id": "130", "kind": "constant", - "name": "anonymousBodyContentType", + "name": "AnonymousBodyRequestRequiredHeader", "namespace": "", "usage": "None", "valueType": { @@ -1289,13 +1289,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "someRequiredLiteralHeader", "decorators": [] }, { "$id": "132", "kind": "constant", - "name": "anonymousBodyContentType1", + "name": "AnonymousBodyRequestRequiredHeader1", "namespace": "", "usage": "None", "valueType": { @@ -1305,13 +1305,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "someRequiredLiteralHeader", "decorators": [] }, { "$id": "134", "kind": "constant", - "name": "ThingRequiredLiteralString1", + "name": "anonymousBodyContentType", "namespace": "", "usage": "None", "valueType": { @@ -1321,103 +1321,103 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "accept", + "value": "application/json", "decorators": [] }, { "$id": "136", "kind": "constant", - "name": "ThingRequiredLiteralInt3", + "name": "anonymousBodyContentType1", "namespace": "", "usage": "None", "valueType": { "$id": "137", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": 123, + "value": "application/json", "decorators": [] }, { "$id": "138", "kind": "constant", - "name": "ThingRequiredLiteralFloat1", + "name": "ThingRequiredLiteralString1", "namespace": "", "usage": "None", "valueType": { "$id": "139", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": 1.23, + "value": "accept", "decorators": [] }, { "$id": "140", "kind": "constant", - "name": "ThingRequiredLiteralBool1", + "name": "ThingRequiredLiteralInt3", "namespace": "", "usage": "None", "valueType": { "$id": "141", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", "decorators": [] }, - "value": false, + "value": 123, "decorators": [] }, { "$id": "142", "kind": "constant", - "name": "ThingOptionalLiteralBool3", + "name": "ThingRequiredLiteralFloat1", "namespace": "", "usage": "None", "valueType": { "$id": "143", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", "decorators": [] }, - "value": true, + "value": 1.23, "decorators": [] }, { "$id": "144", "kind": "constant", - "name": "AnonymousBodyRequestRequiredQueryParam1", + "name": "ThingRequiredLiteralBool1", "namespace": "", "usage": "None", "valueType": { "$id": "145", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", "decorators": [] }, - "value": "someRequiredLiteralQueryParam", + "value": false, "decorators": [] }, { "$id": "146", "kind": "constant", - "name": "AnonymousBodyRequestRequiredHeader1", + "name": "ThingOptionalLiteralBool3", "namespace": "", "usage": "None", "valueType": { "$id": "147", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", "decorators": [] }, - "value": "someRequiredLiteralHeader", + "value": true, "decorators": [] }, { @@ -3102,6 +3102,77 @@ { "$id": "289", "kind": "model", + "name": "Wrapper", + "namespace": "SampleTypeSpec", + "crossLanguageDefinitionId": "SampleTypeSpec.Wrapper", + "usage": "Input", + "decorators": [], + "serializationOptions": {}, + "properties": [ + { + "$id": "290", + "kind": "property", + "name": "p1", + "doc": "header parameter", + "type": { + "$id": "291", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Wrapper.p1", + "serializationOptions": {}, + "isHttpMetadata": true + }, + { + "$id": "292", + "kind": "property", + "name": "action", + "doc": "body parameter", + "type": { + "$ref": "241" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Wrapper.action", + "serializationOptions": {}, + "isHttpMetadata": false + }, + { + "$id": "293", + "kind": "property", + "name": "p2", + "doc": "path parameter", + "type": { + "$id": "294", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "SampleTypeSpec.Wrapper.p2", + "serializationOptions": {}, + "isHttpMetadata": true + } + ] + }, + { + "$id": "295", + "kind": "model", "name": "Friend", "namespace": "SampleTypeSpec", "crossLanguageDefinitionId": "SampleTypeSpec.NotFriend", @@ -3115,13 +3186,13 @@ }, "properties": [ { - "$id": "290", + "$id": "296", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the NotFriend", "type": { - "$id": "291", + "$id": "297", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3143,7 +3214,7 @@ ] }, { - "$id": "292", + "$id": "298", "kind": "model", "name": "RenamedModel", "namespace": "SampleTypeSpec", @@ -3158,13 +3229,13 @@ }, "properties": [ { - "$id": "293", + "$id": "299", "kind": "property", "name": "otherName", "serializedName": "otherName", "doc": "name of the ModelWithClientName", "type": { - "$id": "294", + "$id": "300", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3186,7 +3257,7 @@ ] }, { - "$id": "295", + "$id": "301", "kind": "model", "name": "ReturnsAnonymousModelResponse", "namespace": "SampleTypeSpec", @@ -3201,7 +3272,7 @@ "properties": [] }, { - "$id": "296", + "$id": "302", "kind": "model", "name": "ListWithNextLinkResponse", "namespace": "SampleTypeSpec", @@ -3215,12 +3286,12 @@ }, "properties": [ { - "$id": "297", + "$id": "303", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$id": "298", + "$id": "304", "kind": "array", "name": "ArrayThing", "valueType": { @@ -3243,12 +3314,12 @@ "isHttpMetadata": false }, { - "$id": "299", + "$id": "305", "kind": "property", "name": "next", "serializedName": "next", "type": { - "$id": "300", + "$id": "306", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -3270,7 +3341,7 @@ ] }, { - "$id": "301", + "$id": "307", "kind": "model", "name": "ListWithStringNextLinkResponse", "namespace": "SampleTypeSpec", @@ -3284,12 +3355,12 @@ }, "properties": [ { - "$id": "302", + "$id": "308", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$ref": "298" + "$ref": "304" }, "optional": false, "readOnly": false, @@ -3305,12 +3376,12 @@ "isHttpMetadata": false }, { - "$id": "303", + "$id": "309", "kind": "property", "name": "next", "serializedName": "next", "type": { - "$id": "304", + "$id": "310", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3332,7 +3403,7 @@ ] }, { - "$id": "305", + "$id": "311", "kind": "model", "name": "ListWithContinuationTokenResponse", "namespace": "SampleTypeSpec", @@ -3346,12 +3417,12 @@ }, "properties": [ { - "$id": "306", + "$id": "312", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$ref": "298" + "$ref": "304" }, "optional": false, "readOnly": false, @@ -3367,12 +3438,12 @@ "isHttpMetadata": false }, { - "$id": "307", + "$id": "313", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "308", + "$id": "314", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3394,7 +3465,7 @@ ] }, { - "$id": "309", + "$id": "315", "kind": "model", "name": "ListWithContinuationTokenHeaderResponseResponse", "namespace": "", @@ -3408,12 +3479,12 @@ }, "properties": [ { - "$id": "310", + "$id": "316", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$ref": "298" + "$ref": "304" }, "optional": false, "readOnly": false, @@ -3431,7 +3502,7 @@ ] }, { - "$id": "311", + "$id": "317", "kind": "model", "name": "PageThing", "namespace": "SampleTypeSpec", @@ -3445,12 +3516,12 @@ }, "properties": [ { - "$id": "312", + "$id": "318", "kind": "property", "name": "items", "serializedName": "items", "type": { - "$ref": "298" + "$ref": "304" }, "optional": false, "readOnly": false, @@ -3468,7 +3539,7 @@ ] }, { - "$id": "313", + "$id": "319", "kind": "model", "name": "ModelWithEmbeddedNonBodyParameters", "namespace": "SampleTypeSpec", @@ -3482,13 +3553,13 @@ }, "properties": [ { - "$id": "314", + "$id": "320", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the ModelWithEmbeddedNonBodyParameters", "type": { - "$id": "315", + "$id": "321", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3508,13 +3579,13 @@ "isHttpMetadata": false }, { - "$id": "316", + "$id": "322", "kind": "property", "name": "requiredHeader", "serializedName": "requiredHeader", "doc": "required header parameter", "type": { - "$id": "317", + "$id": "323", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3534,13 +3605,13 @@ "isHttpMetadata": true }, { - "$id": "318", + "$id": "324", "kind": "property", "name": "optionalHeader", "serializedName": "optionalHeader", "doc": "optional header parameter", "type": { - "$id": "319", + "$id": "325", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3560,13 +3631,13 @@ "isHttpMetadata": true }, { - "$id": "320", + "$id": "326", "kind": "property", "name": "requiredQuery", "serializedName": "requiredQuery", "doc": "required query parameter", "type": { - "$id": "321", + "$id": "327", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3586,13 +3657,13 @@ "isHttpMetadata": true }, { - "$id": "322", + "$id": "328", "kind": "property", "name": "optionalQuery", "serializedName": "optionalQuery", "doc": "optional query parameter", "type": { - "$id": "323", + "$id": "329", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3614,7 +3685,7 @@ ] }, { - "$id": "324", + "$id": "330", "kind": "model", "name": "DynamicModel", "namespace": "SampleTypeSpec", @@ -3634,12 +3705,12 @@ }, "properties": [ { - "$id": "325", + "$id": "331", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "326", + "$id": "332", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3659,12 +3730,12 @@ "isHttpMetadata": false }, { - "$id": "327", + "$id": "333", "kind": "property", "name": "optionalUnknown", "serializedName": "optionalUnknown", "type": { - "$id": "328", + "$id": "334", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -3684,12 +3755,12 @@ "isHttpMetadata": false }, { - "$id": "329", + "$id": "335", "kind": "property", "name": "optionalInt", "serializedName": "optionalInt", "type": { - "$id": "330", + "$id": "336", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3709,12 +3780,12 @@ "isHttpMetadata": false }, { - "$id": "331", + "$id": "337", "kind": "property", "name": "optionalNullableList", "serializedName": "optionalNullableList", "type": { - "$id": "332", + "$id": "338", "kind": "nullable", "type": { "$ref": "235" @@ -3735,12 +3806,12 @@ "isHttpMetadata": false }, { - "$id": "333", + "$id": "339", "kind": "property", "name": "requiredNullableList", "serializedName": "requiredNullableList", "type": { - "$id": "334", + "$id": "340", "kind": "nullable", "type": { "$ref": "235" @@ -3761,25 +3832,25 @@ "isHttpMetadata": false }, { - "$id": "335", + "$id": "341", "kind": "property", "name": "optionalNullableDictionary", "serializedName": "optionalNullableDictionary", "type": { - "$id": "336", + "$id": "342", "kind": "nullable", "type": { - "$id": "337", + "$id": "343", "kind": "dict", "keyType": { - "$id": "338", + "$id": "344", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "339", + "$id": "345", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3803,15 +3874,15 @@ "isHttpMetadata": false }, { - "$id": "340", + "$id": "346", "kind": "property", "name": "requiredNullableDictionary", "serializedName": "requiredNullableDictionary", "type": { - "$id": "341", + "$id": "347", "kind": "nullable", "type": { - "$ref": "337" + "$ref": "343" }, "namespace": "SampleTypeSpec" }, @@ -3829,12 +3900,12 @@ "isHttpMetadata": false }, { - "$id": "342", + "$id": "348", "kind": "property", "name": "primitiveDictionary", "serializedName": "primitiveDictionary", "type": { - "$ref": "337" + "$ref": "343" }, "optional": false, "readOnly": false, @@ -3850,12 +3921,12 @@ "isHttpMetadata": false }, { - "$id": "343", + "$id": "349", "kind": "property", "name": "foo", "serializedName": "foo", "type": { - "$id": "344", + "$id": "350", "kind": "model", "name": "AnotherDynamicModel", "namespace": "SampleTypeSpec", @@ -3875,12 +3946,12 @@ }, "properties": [ { - "$id": "345", + "$id": "351", "kind": "property", "name": "bar", "serializedName": "bar", "type": { - "$id": "346", + "$id": "352", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3915,16 +3986,16 @@ "isHttpMetadata": false }, { - "$id": "347", + "$id": "353", "kind": "property", "name": "listFoo", "serializedName": "listFoo", "type": { - "$id": "348", + "$id": "354", "kind": "array", "name": "ArrayAnotherDynamicModel", "valueType": { - "$ref": "344" + "$ref": "350" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -3943,16 +4014,16 @@ "isHttpMetadata": false }, { - "$id": "349", + "$id": "355", "kind": "property", "name": "listOfListFoo", "serializedName": "listOfListFoo", "type": { - "$id": "350", + "$id": "356", "kind": "array", "name": "ArrayArray", "valueType": { - "$ref": "348" + "$ref": "354" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -3971,22 +4042,22 @@ "isHttpMetadata": false }, { - "$id": "351", + "$id": "357", "kind": "property", "name": "dictionaryFoo", "serializedName": "dictionaryFoo", "type": { - "$id": "352", + "$id": "358", "kind": "dict", "keyType": { - "$id": "353", + "$id": "359", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$ref": "344" + "$ref": "350" }, "decorators": [] }, @@ -4004,22 +4075,22 @@ "isHttpMetadata": false }, { - "$id": "354", + "$id": "360", "kind": "property", "name": "dictionaryOfDictionaryFoo", "serializedName": "dictionaryOfDictionaryFoo", "type": { - "$id": "355", + "$id": "361", "kind": "dict", "keyType": { - "$id": "356", + "$id": "362", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$ref": "352" + "$ref": "358" }, "decorators": [] }, @@ -4037,22 +4108,22 @@ "isHttpMetadata": false }, { - "$id": "357", + "$id": "363", "kind": "property", "name": "dictionaryListFoo", "serializedName": "dictionaryListFoo", "type": { - "$id": "358", + "$id": "364", "kind": "dict", "keyType": { - "$id": "359", + "$id": "365", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$ref": "348" + "$ref": "354" }, "decorators": [] }, @@ -4070,16 +4141,16 @@ "isHttpMetadata": false }, { - "$id": "360", + "$id": "366", "kind": "property", "name": "listOfDictionaryFoo", "serializedName": "listOfDictionaryFoo", "type": { - "$id": "361", + "$id": "367", "kind": "array", "name": "ArrayRecord", "valueType": { - "$ref": "352" + "$ref": "358" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -4100,10 +4171,10 @@ ] }, { - "$ref": "344" + "$ref": "350" }, { - "$id": "362", + "$id": "368", "kind": "model", "name": "XmlAdvancedModel", "namespace": "SampleTypeSpec", @@ -4127,13 +4198,13 @@ }, "properties": [ { - "$id": "363", + "$id": "369", "kind": "property", "name": "name", "serializedName": "name", "doc": "A simple string property", "type": { - "$id": "364", + "$id": "370", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4155,13 +4226,13 @@ "isHttpMetadata": false }, { - "$id": "365", + "$id": "371", "kind": "property", "name": "age", "serializedName": "age", "doc": "An integer property", "type": { - "$id": "366", + "$id": "372", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -4183,13 +4254,13 @@ "isHttpMetadata": false }, { - "$id": "367", + "$id": "373", "kind": "property", "name": "enabled", "serializedName": "enabled", "doc": "A boolean property", "type": { - "$id": "368", + "$id": "374", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -4211,13 +4282,13 @@ "isHttpMetadata": false }, { - "$id": "369", + "$id": "375", "kind": "property", "name": "score", "serializedName": "score", "doc": "A float property", "type": { - "$id": "370", + "$id": "376", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -4239,13 +4310,13 @@ "isHttpMetadata": false }, { - "$id": "371", + "$id": "377", "kind": "property", "name": "optionalString", "serializedName": "optionalString", "doc": "An optional string", "type": { - "$id": "372", + "$id": "378", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4267,13 +4338,13 @@ "isHttpMetadata": false }, { - "$id": "373", + "$id": "379", "kind": "property", "name": "optionalInt", "serializedName": "optionalInt", "doc": "An optional integer", "type": { - "$id": "374", + "$id": "380", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -4295,16 +4366,16 @@ "isHttpMetadata": false }, { - "$id": "375", + "$id": "381", "kind": "property", "name": "nullableString", "serializedName": "nullableString", "doc": "A nullable string", "type": { - "$id": "376", + "$id": "382", "kind": "nullable", "type": { - "$id": "377", + "$id": "383", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4328,13 +4399,13 @@ "isHttpMetadata": false }, { - "$id": "378", + "$id": "384", "kind": "property", "name": "id", "serializedName": "id", "doc": "A string as XML attribute", "type": { - "$id": "379", + "$id": "385", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4361,13 +4432,13 @@ "isHttpMetadata": false }, { - "$id": "380", + "$id": "386", "kind": "property", "name": "version", "serializedName": "version", "doc": "An integer as XML attribute", "type": { - "$id": "381", + "$id": "387", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -4394,13 +4465,13 @@ "isHttpMetadata": false }, { - "$id": "382", + "$id": "388", "kind": "property", "name": "isActive", "serializedName": "isActive", "doc": "A boolean as XML attribute", "type": { - "$id": "383", + "$id": "389", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -4427,13 +4498,13 @@ "isHttpMetadata": false }, { - "$id": "384", + "$id": "390", "kind": "property", "name": "originalName", "serializedName": "RenamedProperty", "doc": "A property with a custom XML element name", "type": { - "$id": "385", + "$id": "391", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4462,13 +4533,13 @@ "isHttpMetadata": false }, { - "$id": "386", + "$id": "392", "kind": "property", "name": "xmlIdentifier", "serializedName": "xml-id", "doc": "An attribute with a custom XML name", "type": { - "$id": "387", + "$id": "393", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4501,13 +4572,13 @@ "isHttpMetadata": false }, { - "$id": "388", + "$id": "394", "kind": "property", "name": "content", "serializedName": "content", "doc": "Text content in the element (unwrapped string)", "type": { - "$id": "389", + "$id": "395", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4534,7 +4605,7 @@ "isHttpMetadata": false }, { - "$id": "390", + "$id": "396", "kind": "property", "name": "unwrappedStrings", "serializedName": "unwrappedStrings", @@ -4564,7 +4635,7 @@ "isHttpMetadata": false }, { - "$id": "391", + "$id": "397", "kind": "property", "name": "unwrappedCounts", "serializedName": "unwrappedCounts", @@ -4594,17 +4665,17 @@ "isHttpMetadata": false }, { - "$id": "392", + "$id": "398", "kind": "property", "name": "unwrappedItems", "serializedName": "unwrappedItems", "doc": "An unwrapped array of models", "type": { - "$id": "393", + "$id": "399", "kind": "array", "name": "ArrayXmlItem", "valueType": { - "$id": "394", + "$id": "400", "kind": "model", "name": "XmlItem", "namespace": "SampleTypeSpec", @@ -4628,13 +4699,13 @@ }, "properties": [ { - "$id": "395", + "$id": "401", "kind": "property", "name": "itemName", "serializedName": "itemName", "doc": "The item name", "type": { - "$id": "396", + "$id": "402", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4656,13 +4727,13 @@ "isHttpMetadata": false }, { - "$id": "397", + "$id": "403", "kind": "property", "name": "itemValue", "serializedName": "itemValue", "doc": "The item value", "type": { - "$id": "398", + "$id": "404", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -4684,13 +4755,13 @@ "isHttpMetadata": false }, { - "$id": "399", + "$id": "405", "kind": "property", "name": "itemId", "serializedName": "itemId", "doc": "Item ID as attribute", "type": { - "$id": "400", + "$id": "406", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4743,7 +4814,7 @@ "isHttpMetadata": false }, { - "$id": "401", + "$id": "407", "kind": "property", "name": "wrappedColors", "serializedName": "wrappedColors", @@ -4768,13 +4839,13 @@ "isHttpMetadata": false }, { - "$id": "402", + "$id": "408", "kind": "property", "name": "items", "serializedName": "ItemCollection", "doc": "A wrapped array with custom wrapper name", "type": { - "$ref": "393" + "$ref": "399" }, "optional": false, "readOnly": false, @@ -4800,13 +4871,13 @@ "isHttpMetadata": false }, { - "$id": "403", + "$id": "409", "kind": "property", "name": "nestedModel", "serializedName": "nestedModel", "doc": "A nested model property", "type": { - "$id": "404", + "$id": "410", "kind": "model", "name": "XmlNestedModel", "namespace": "SampleTypeSpec", @@ -4823,13 +4894,13 @@ }, "properties": [ { - "$id": "405", + "$id": "411", "kind": "property", "name": "value", "serializedName": "value", "doc": "The value of the nested model", "type": { - "$id": "406", + "$id": "412", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4851,13 +4922,13 @@ "isHttpMetadata": false }, { - "$id": "407", + "$id": "413", "kind": "property", "name": "nestedId", "serializedName": "nestedId", "doc": "An attribute on the nested model", "type": { - "$id": "408", + "$id": "414", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -4901,13 +4972,13 @@ "isHttpMetadata": false }, { - "$id": "409", + "$id": "415", "kind": "property", "name": "optionalNestedModel", "serializedName": "optionalNestedModel", "doc": "An optional nested model", "type": { - "$ref": "404" + "$ref": "410" }, "optional": true, "readOnly": false, @@ -4925,23 +4996,23 @@ "isHttpMetadata": false }, { - "$id": "410", + "$id": "416", "kind": "property", "name": "metadata", "serializedName": "metadata", "doc": "A dictionary property", "type": { - "$id": "411", + "$id": "417", "kind": "dict", "keyType": { - "$id": "412", + "$id": "418", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "413", + "$id": "419", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4965,18 +5036,18 @@ "isHttpMetadata": false }, { - "$id": "414", + "$id": "420", "kind": "property", "name": "createdAt", "serializedName": "createdAt", "doc": "A date-time property", "type": { - "$id": "415", + "$id": "421", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "416", + "$id": "422", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5001,18 +5072,18 @@ "isHttpMetadata": false }, { - "$id": "417", + "$id": "423", "kind": "property", "name": "duration", "serializedName": "duration", "doc": "A duration property", "type": { - "$id": "418", + "$id": "424", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "419", + "$id": "425", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5037,13 +5108,13 @@ "isHttpMetadata": false }, { - "$id": "420", + "$id": "426", "kind": "property", "name": "data", "serializedName": "data", "doc": "A bytes property", "type": { - "$id": "421", + "$id": "427", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -5066,7 +5137,7 @@ "isHttpMetadata": false }, { - "$id": "422", + "$id": "428", "kind": "property", "name": "optionalRecordUnknown", "serializedName": "optionalRecordUnknown", @@ -5090,7 +5161,7 @@ "isHttpMetadata": false }, { - "$id": "423", + "$id": "429", "kind": "property", "name": "fixedEnum", "serializedName": "fixedEnum", @@ -5114,7 +5185,7 @@ "isHttpMetadata": false }, { - "$id": "424", + "$id": "430", "kind": "property", "name": "extensibleEnum", "serializedName": "extensibleEnum", @@ -5138,7 +5209,7 @@ "isHttpMetadata": false }, { - "$id": "425", + "$id": "431", "kind": "property", "name": "optionalFixedEnum", "serializedName": "optionalFixedEnum", @@ -5162,7 +5233,7 @@ "isHttpMetadata": false }, { - "$id": "426", + "$id": "432", "kind": "property", "name": "optionalExtensibleEnum", "serializedName": "optionalExtensibleEnum", @@ -5186,12 +5257,12 @@ "isHttpMetadata": false }, { - "$id": "427", + "$id": "433", "kind": "property", "name": "label", "serializedName": "label", "type": { - "$id": "428", + "$id": "434", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5206,13 +5277,13 @@ "name": "TypeSpec.Xml.@ns", "arguments": { "ns": { - "$id": "429", + "$id": "435", "kind": "enumvalue", "decorators": [], "name": "ns1", "value": "https://example.com/ns1", "enumType": { - "$id": "430", + "$id": "436", "kind": "enum", "decorators": [ { @@ -5224,7 +5295,7 @@ "isGeneratedName": false, "namespace": "SampleTypeSpec", "valueType": { - "$id": "431", + "$id": "437", "kind": "string", "decorators": [], "doc": "A sequence of textual characters.", @@ -5233,29 +5304,29 @@ }, "values": [ { - "$id": "432", + "$id": "438", "kind": "enumvalue", "decorators": [], "name": "ns1", "value": "https://example.com/ns1", "enumType": { - "$ref": "430" + "$ref": "436" }, "valueType": { - "$ref": "431" + "$ref": "437" } }, { - "$id": "433", + "$id": "439", "kind": "enumvalue", "decorators": [], "name": "ns2", "value": "https://example.com/ns2", "enumType": { - "$ref": "430" + "$ref": "436" }, "valueType": { - "$ref": "431" + "$ref": "437" } } ], @@ -5272,7 +5343,7 @@ "__accessSet": true }, "valueType": { - "$ref": "431" + "$ref": "437" } } } @@ -5297,12 +5368,12 @@ "isHttpMetadata": false }, { - "$id": "434", + "$id": "440", "kind": "property", "name": "daysUsed", "serializedName": "daysUsed", "type": { - "$id": "435", + "$id": "441", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -5317,16 +5388,16 @@ "name": "TypeSpec.Xml.@ns", "arguments": { "ns": { - "$id": "436", + "$id": "442", "kind": "enumvalue", "decorators": [], "name": "ns2", "value": "https://example.com/ns2", "enumType": { - "$ref": "430" + "$ref": "436" }, "valueType": { - "$ref": "431" + "$ref": "437" } } } @@ -5347,7 +5418,7 @@ "isHttpMetadata": false }, { - "$id": "437", + "$id": "443", "kind": "property", "name": "fooItems", "serializedName": "fooItems", @@ -5383,12 +5454,12 @@ "isHttpMetadata": false }, { - "$id": "438", + "$id": "444", "kind": "property", "name": "anotherModel", "serializedName": "anotherModel", "type": { - "$ref": "404" + "$ref": "410" }, "optional": false, "readOnly": false, @@ -5418,16 +5489,16 @@ "isHttpMetadata": false }, { - "$id": "439", + "$id": "445", "kind": "property", "name": "modelsWithNamespaces", "serializedName": "modelsWithNamespaces", "type": { - "$id": "440", + "$id": "446", "kind": "array", "name": "ArrayXmlModelWithNamespace", "valueType": { - "$id": "441", + "$id": "447", "kind": "model", "name": "XmlModelWithNamespace", "namespace": "SampleTypeSpec", @@ -5455,12 +5526,12 @@ }, "properties": [ { - "$id": "442", + "$id": "448", "kind": "property", "name": "foo", "serializedName": "foo", "type": { - "$id": "443", + "$id": "449", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5507,12 +5578,12 @@ "isHttpMetadata": false }, { - "$id": "444", + "$id": "450", "kind": "property", "name": "unwrappedModelsWithNamespaces", "serializedName": "unwrappedModelsWithNamespaces", "type": { - "$ref": "440" + "$ref": "446" }, "optional": false, "readOnly": false, @@ -5538,16 +5609,16 @@ ] }, { - "$ref": "394" + "$ref": "400" }, { - "$ref": "404" + "$ref": "410" }, { - "$ref": "441" + "$ref": "447" }, { - "$id": "445", + "$id": "451", "kind": "model", "name": "Animal", "namespace": "SampleTypeSpec", @@ -5561,13 +5632,13 @@ } }, "discriminatorProperty": { - "$id": "446", + "$id": "452", "kind": "property", "name": "kind", "serializedName": "kind", "doc": "The kind of animal", "type": { - "$id": "447", + "$id": "453", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5588,16 +5659,16 @@ }, "properties": [ { - "$ref": "446" + "$ref": "452" }, { - "$id": "448", + "$id": "454", "kind": "property", "name": "name", "serializedName": "name", "doc": "Name of the animal", "type": { - "$id": "449", + "$id": "455", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5619,7 +5690,7 @@ ], "discriminatedSubtypes": { "pet": { - "$id": "450", + "$id": "456", "kind": "model", "name": "Pet", "namespace": "SampleTypeSpec", @@ -5634,7 +5705,7 @@ } }, "discriminatorProperty": { - "$id": "451", + "$id": "457", "kind": "property", "name": "kind", "serializedName": "kind", @@ -5655,20 +5726,20 @@ "isHttpMetadata": false }, "baseModel": { - "$ref": "445" + "$ref": "451" }, "properties": [ { - "$ref": "451" + "$ref": "457" }, { - "$id": "452", + "$id": "458", "kind": "property", "name": "trained", "serializedName": "trained", "doc": "Whether the pet is trained", "type": { - "$id": "453", + "$id": "459", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -5690,7 +5761,7 @@ ], "discriminatedSubtypes": { "dog": { - "$id": "454", + "$id": "460", "kind": "model", "name": "Dog", "namespace": "SampleTypeSpec", @@ -5705,11 +5776,11 @@ } }, "baseModel": { - "$ref": "450" + "$ref": "456" }, "properties": [ { - "$id": "455", + "$id": "461", "kind": "property", "name": "kind", "serializedName": "kind", @@ -5730,13 +5801,13 @@ "isHttpMetadata": false }, { - "$id": "456", + "$id": "462", "kind": "property", "name": "breed", "serializedName": "breed", "doc": "The breed of the dog", "type": { - "$id": "457", + "$id": "463", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5760,18 +5831,18 @@ } }, "dog": { - "$ref": "454" + "$ref": "460" } } }, { - "$ref": "450" + "$ref": "456" }, { - "$ref": "454" + "$ref": "460" }, { - "$id": "458", + "$id": "464", "kind": "model", "name": "Tree", "namespace": "SampleTypeSpec", @@ -5791,7 +5862,7 @@ } }, "baseModel": { - "$id": "459", + "$id": "465", "kind": "model", "name": "Plant", "namespace": "SampleTypeSpec", @@ -5810,13 +5881,13 @@ } }, "discriminatorProperty": { - "$id": "460", + "$id": "466", "kind": "property", "name": "species", "serializedName": "species", "doc": "The species of plant", "type": { - "$id": "461", + "$id": "467", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5842,16 +5913,16 @@ }, "properties": [ { - "$ref": "460" + "$ref": "466" }, { - "$id": "462", + "$id": "468", "kind": "property", "name": "id", "serializedName": "id", "doc": "The unique identifier of the plant", "type": { - "$id": "463", + "$id": "469", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5876,13 +5947,13 @@ "isHttpMetadata": false }, { - "$id": "464", + "$id": "470", "kind": "property", "name": "height", "serializedName": "height", "doc": "The height of the plant in centimeters", "type": { - "$id": "465", + "$id": "471", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -5909,13 +5980,13 @@ ], "discriminatedSubtypes": { "tree": { - "$ref": "458" + "$ref": "464" } } }, "properties": [ { - "$id": "466", + "$id": "472", "kind": "property", "name": "species", "serializedName": "species", @@ -5941,13 +6012,13 @@ "isHttpMetadata": false }, { - "$id": "467", + "$id": "473", "kind": "property", "name": "age", "serializedName": "age", "doc": "The age of the tree in years", "type": { - "$id": "468", + "$id": "474", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -5974,10 +6045,10 @@ ] }, { - "$ref": "459" + "$ref": "465" }, { - "$id": "469", + "$id": "475", "kind": "model", "name": "GetWidgetMetricsResponse", "namespace": "SampleTypeSpec", @@ -5991,12 +6062,12 @@ }, "properties": [ { - "$id": "470", + "$id": "476", "kind": "property", "name": "numSold", "serializedName": "numSold", "type": { - "$id": "471", + "$id": "477", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -6016,12 +6087,12 @@ "isHttpMetadata": false }, { - "$id": "472", + "$id": "478", "kind": "property", "name": "averagePrice", "serializedName": "averagePrice", "type": { - "$id": "473", + "$id": "479", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -6045,14 +6116,14 @@ ], "clients": [ { - "$id": "474", + "$id": "480", "kind": "client", "name": "SampleTypeSpecClient", "namespace": "SampleTypeSpec", "doc": "This is a sample typespec project.", "methods": [ { - "$id": "475", + "$id": "481", "kind": "basic", "name": "sayHi", "accessibility": "public", @@ -6062,19 +6133,19 @@ ], "doc": "Return hi", "operation": { - "$id": "476", + "$id": "482", "name": "sayHi", "resourceName": "SampleTypeSpec", "doc": "Return hi", "accessibility": "public", "parameters": [ { - "$id": "477", + "$id": "483", "kind": "header", "name": "headParameter", "serializedName": "head-parameter", "type": { - "$id": "478", + "$id": "484", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6086,15 +6157,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.headParameter" + "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.headParameter", + "methodParameterSegments": [ + { + "$id": "485", + "kind": "method", + "name": "headParameter", + "serializedName": "head-parameter", + "type": { + "$id": "486", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.headParameter", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "479", + "$id": "487", "kind": "query", "name": "queryParameter", "serializedName": "queryParameter", "type": { - "$id": "480", + "$id": "488", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6106,15 +6200,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.queryParameter", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "489", + "kind": "method", + "name": "queryParameter", + "serializedName": "queryParameter", + "type": { + "$id": "490", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.queryParameter", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "481", + "$id": "491", "kind": "query", "name": "optionalQuery", "serializedName": "optionalQuery", "type": { - "$id": "482", + "$id": "492", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6126,10 +6243,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.optionalQuery", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "493", + "kind": "method", + "name": "optionalQuery", + "serializedName": "optionalQuery", + "type": { + "$id": "494", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.optionalQuery", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "483", + "$id": "495", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -6142,7 +6282,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.accept", + "methodParameterSegments": [ + { + "$id": "496", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "86" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6172,84 +6331,16 @@ }, "parameters": [ { - "$id": "484", - "kind": "method", - "name": "headParameter", - "serializedName": "head-parameter", - "type": { - "$id": "485", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.headParameter", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "485" }, { - "$id": "486", - "kind": "method", - "name": "queryParameter", - "serializedName": "queryParameter", - "type": { - "$id": "487", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.queryParameter", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "489" }, { - "$id": "488", - "kind": "method", - "name": "optionalQuery", - "serializedName": "optionalQuery", - "type": { - "$id": "489", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.optionalQuery", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "493" }, { - "$id": "490", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "86" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.sayHi.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "496" } ], "response": { @@ -6263,7 +6354,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.sayHi" }, { - "$id": "491", + "$id": "497", "kind": "basic", "name": "helloAgain", "accessibility": "public", @@ -6273,19 +6364,19 @@ ], "doc": "Return hi again", "operation": { - "$id": "492", + "$id": "498", "name": "helloAgain", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "493", + "$id": "499", "kind": "header", "name": "p1", "serializedName": "p1", "type": { - "$id": "494", + "$id": "500", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6297,10 +6388,33 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.p1" + "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.p1", + "methodParameterSegments": [ + { + "$id": "501", + "kind": "method", + "name": "p1", + "serializedName": "p1", + "type": { + "$id": "502", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.p1", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "495", + "$id": "503", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6313,15 +6427,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.contentType", + "methodParameterSegments": [ + { + "$id": "504", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "88" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "496", + "$id": "505", "kind": "path", "name": "p2", "serializedName": "p2", "type": { - "$id": "497", + "$id": "506", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6336,15 +6469,38 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.p2" + "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.p2", + "methodParameterSegments": [ + { + "$id": "507", + "kind": "method", + "name": "p2", + "serializedName": "p2", + "type": { + "$id": "508", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.p2", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "498", + "$id": "509", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "90" + "$ref": "92" }, "isApiVersion": false, "optional": false, @@ -6352,10 +6508,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.accept", + "methodParameterSegments": [ + { + "$id": "510", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "92" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "499", + "$id": "511", "kind": "body", "name": "action", "serializedName": "action", @@ -6371,7 +6546,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.action" + "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.action", + "methodParameterSegments": [ + { + "$id": "512", + "kind": "method", + "name": "action", + "serializedName": "action", + "type": { + "$ref": "241" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.action", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6404,97 +6598,19 @@ }, "parameters": [ { - "$id": "500", - "kind": "method", - "name": "p1", - "serializedName": "p1", - "type": { - "$id": "501", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.p1", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "501" }, { - "$id": "502", - "kind": "method", - "name": "action", - "serializedName": "action", - "type": { - "$ref": "241" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.action", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "512" }, { - "$id": "503", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "88" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "504" }, { - "$id": "504", - "kind": "method", - "name": "p2", - "serializedName": "p2", - "type": { - "$id": "505", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.p2", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "507" }, { - "$id": "506", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "90" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "510" } ], "response": { @@ -6508,7 +6624,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloAgain" }, { - "$id": "507", + "$id": "513", "kind": "basic", "name": "noContentType", "accessibility": "public", @@ -6518,19 +6634,19 @@ ], "doc": "Return hi again", "operation": { - "$id": "508", + "$id": "514", "name": "noContentType", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "509", + "$id": "515", "kind": "header", "name": "p1", "serializedName": "p1", "type": { - "$id": "510", + "$id": "516", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6542,15 +6658,52 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.p1" + "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.p1", + "methodParameterSegments": [ + { + "$id": "517", + "kind": "method", + "name": "info", + "serializedName": "info", + "type": { + "$ref": "289" + }, + "location": "", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec..anonymous.info", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "518", + "kind": "method", + "name": "p1", + "serializedName": "p1", + "doc": "header parameter", + "type": { + "$ref": "291" + }, + "location": "", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.Wrapper.p1", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "511", + "$id": "519", "kind": "path", "name": "p2", "serializedName": "p2", "type": { - "$id": "512", + "$id": "520", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6565,10 +6718,33 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.p2" + "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.p2", + "methodParameterSegments": [ + { + "$ref": "517" + }, + { + "$id": "521", + "kind": "method", + "name": "p2", + "serializedName": "p2", + "doc": "path parameter", + "type": { + "$ref": "294" + }, + "location": "", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.Wrapper.p2", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "513", + "$id": "522", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6582,10 +6758,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.contentType", + "methodParameterSegments": [ + { + "$id": "523", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "94" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "514", + "$id": "524", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -6598,10 +6794,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.accept", + "methodParameterSegments": [ + { + "$id": "525", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "96" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "515", + "$id": "526", "kind": "body", "name": "action", "serializedName": "action", @@ -6617,7 +6832,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.action" + "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.action", + "methodParameterSegments": [ + { + "$ref": "517" + }, + { + "$id": "527", + "kind": "method", + "name": "action", + "serializedName": "action", + "doc": "body parameter", + "type": { + "$ref": "241" + }, + "location": "", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.Wrapper.action", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6643,105 +6881,20 @@ ], "bufferResponse": true, "generateProtocolMethod": true, - "generateConvenienceMethod": false, + "generateConvenienceMethod": true, "crossLanguageDefinitionId": "SampleTypeSpec.noContentType", "decorators": [], "namespace": "SampleTypeSpec" }, "parameters": [ { - "$id": "516", - "kind": "method", - "name": "p1", - "serializedName": "p1", - "type": { - "$id": "517", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.p1", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "518", - "kind": "method", - "name": "action", - "serializedName": "action", - "type": { - "$ref": "241" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.action", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "519", - "kind": "method", - "name": "p2", - "serializedName": "p2", - "type": { - "$id": "520", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.p2", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "517" }, { - "$id": "521", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "94" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "523" }, { - "$id": "522", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "96" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.noContentType.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "525" } ], "response": { @@ -6749,13 +6902,13 @@ "$ref": "241" } }, - "isOverride": false, - "generateConvenient": false, + "isOverride": true, + "generateConvenient": true, "generateProtocol": true, "crossLanguageDefinitionId": "SampleTypeSpec.noContentType" }, { - "$id": "523", + "$id": "528", "kind": "basic", "name": "helloDemo2", "accessibility": "public", @@ -6765,14 +6918,14 @@ ], "doc": "Return hi in demo2", "operation": { - "$id": "524", + "$id": "529", "name": "helloDemo2", "resourceName": "SampleTypeSpec", "doc": "Return hi in demo2", "accessibility": "public", "parameters": [ { - "$id": "525", + "$id": "530", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -6785,7 +6938,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2.accept", + "methodParameterSegments": [ + { + "$id": "531", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "98" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6815,21 +6987,7 @@ }, "parameters": [ { - "$id": "526", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "98" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "531" } ], "response": { @@ -6843,7 +7001,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloDemo2" }, { - "$id": "527", + "$id": "532", "kind": "basic", "name": "createLiteral", "accessibility": "public", @@ -6853,14 +7011,14 @@ ], "doc": "Create with literal value", "operation": { - "$id": "528", + "$id": "533", "name": "createLiteral", "resourceName": "SampleTypeSpec", "doc": "Create with literal value", "accessibility": "public", "parameters": [ { - "$id": "529", + "$id": "534", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -6874,10 +7032,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.contentType", + "methodParameterSegments": [ + { + "$id": "535", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "100" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "530", + "$id": "536", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -6890,10 +7068,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.accept", + "methodParameterSegments": [ + { + "$id": "537", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "102" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "531", + "$id": "538", "kind": "body", "name": "body", "serializedName": "body", @@ -6909,7 +7106,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.body" + "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.body", + "methodParameterSegments": [ + { + "$id": "539", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "206" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6942,56 +7158,13 @@ }, "parameters": [ { - "$id": "532", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "206" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "539" }, { - "$id": "533", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "100" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "535" }, { - "$id": "534", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "102" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "537" } ], "response": { @@ -7005,7 +7178,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.createLiteral" }, { - "$id": "535", + "$id": "540", "kind": "basic", "name": "helloLiteral", "accessibility": "public", @@ -7015,14 +7188,14 @@ ], "doc": "Send literal parameters", "operation": { - "$id": "536", + "$id": "541", "name": "helloLiteral", "resourceName": "SampleTypeSpec", "doc": "Send literal parameters", "accessibility": "public", "parameters": [ { - "$id": "537", + "$id": "542", "kind": "header", "name": "p1", "serializedName": "p1", @@ -7035,15 +7208,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.p1" + "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.p1", + "methodParameterSegments": [ + { + "$id": "543", + "kind": "method", + "name": "p1", + "serializedName": "p1", + "type": { + "$ref": "106" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.p1", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "538", + "$id": "544", "kind": "path", "name": "p2", "serializedName": "p2", "type": { - "$ref": "106" + "$ref": "108" }, "isApiVersion": false, "explode": false, @@ -7054,15 +7246,34 @@ "scope": "Constant", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.p2" + "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.p2", + "methodParameterSegments": [ + { + "$id": "545", + "kind": "method", + "name": "p2", + "serializedName": "p2", + "type": { + "$ref": "110" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.p2", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "539", + "$id": "546", "kind": "query", "name": "p3", "serializedName": "p3", "type": { - "$ref": "108" + "$ref": "112" }, "isApiVersion": false, "explode": false, @@ -7070,15 +7281,34 @@ "scope": "Constant", "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.p3", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "547", + "kind": "method", + "name": "p3", + "serializedName": "p3", + "type": { + "$ref": "114" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.p3", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "540", + "$id": "548", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "110" + "$ref": "116" }, "isApiVersion": false, "optional": false, @@ -7086,7 +7316,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.accept", + "methodParameterSegments": [ + { + "$id": "549", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "116" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7115,73 +7364,17 @@ "namespace": "SampleTypeSpec" }, "parameters": [ - { - "$id": "541", - "kind": "method", - "name": "p1", - "serializedName": "p1", - "type": { - "$ref": "112" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.p1", - "readOnly": false, - "access": "public", - "decorators": [] - }, - { - "$id": "542", - "kind": "method", - "name": "p2", - "serializedName": "p2", - "type": { - "$ref": "114" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.p2", - "readOnly": false, - "access": "public", - "decorators": [] + { + "$ref": "543" }, { - "$id": "543", - "kind": "method", - "name": "p3", - "serializedName": "p3", - "type": { - "$ref": "116" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.p3", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "545" }, { - "$id": "544", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "110" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "547" + }, + { + "$ref": "549" } ], "response": { @@ -7195,7 +7388,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.helloLiteral" }, { - "$id": "545", + "$id": "550", "kind": "basic", "name": "topAction", "accessibility": "public", @@ -7205,24 +7398,24 @@ ], "doc": "top level method", "operation": { - "$id": "546", + "$id": "551", "name": "topAction", "resourceName": "SampleTypeSpec", "doc": "top level method", "accessibility": "public", "parameters": [ { - "$id": "547", + "$id": "552", "kind": "path", "name": "action", "serializedName": "action", "type": { - "$id": "548", + "$id": "553", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "549", + "$id": "554", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7240,10 +7433,41 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.topAction.action" + "crossLanguageDefinitionId": "SampleTypeSpec.topAction.action", + "methodParameterSegments": [ + { + "$id": "555", + "kind": "method", + "name": "action", + "serializedName": "action", + "type": { + "$id": "556", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "557", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.topAction.action", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "550", + "$id": "558", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -7256,7 +7480,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.topAction.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.topAction.accept", + "methodParameterSegments": [ + { + "$id": "559", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "118" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.topAction.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7286,50 +7529,10 @@ }, "parameters": [ { - "$id": "551", - "kind": "method", - "name": "action", - "serializedName": "action", - "type": { - "$id": "552", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "553", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.topAction.action", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "555" }, { - "$id": "554", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "118" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.topAction.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "559" } ], "response": { @@ -7343,7 +7546,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.topAction" }, { - "$id": "555", + "$id": "560", "kind": "basic", "name": "topAction2", "accessibility": "public", @@ -7353,14 +7556,14 @@ ], "doc": "top level method2", "operation": { - "$id": "556", + "$id": "561", "name": "topAction2", "resourceName": "SampleTypeSpec", "doc": "top level method2", "accessibility": "public", "parameters": [ { - "$id": "557", + "$id": "562", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -7373,7 +7576,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.topAction2.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.topAction2.accept", + "methodParameterSegments": [ + { + "$id": "563", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "120" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.topAction2.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7403,21 +7625,7 @@ }, "parameters": [ { - "$id": "558", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "120" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.topAction2.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "563" } ], "response": { @@ -7431,7 +7639,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.topAction2" }, { - "$id": "559", + "$id": "564", "kind": "basic", "name": "patchAction", "accessibility": "public", @@ -7441,14 +7649,14 @@ ], "doc": "top level patch", "operation": { - "$id": "560", + "$id": "565", "name": "patchAction", "resourceName": "SampleTypeSpec", "doc": "top level patch", "accessibility": "public", "parameters": [ { - "$id": "561", + "$id": "566", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -7462,10 +7670,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.contentType", + "methodParameterSegments": [ + { + "$id": "567", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "122" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "562", + "$id": "568", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -7478,10 +7706,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.accept", + "methodParameterSegments": [ + { + "$id": "569", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "124" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "563", + "$id": "570", "kind": "body", "name": "body", "serializedName": "body", @@ -7497,7 +7744,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.body" + "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.body", + "methodParameterSegments": [ + { + "$id": "571", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "206" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7530,56 +7796,13 @@ }, "parameters": [ { - "$id": "564", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "206" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "571" }, { - "$id": "565", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "122" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "567" }, { - "$id": "566", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "124" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.patchAction.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "569" } ], "response": { @@ -7593,7 +7816,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.patchAction" }, { - "$id": "567", + "$id": "572", "kind": "basic", "name": "anonymousBody", "accessibility": "public", @@ -7603,14 +7826,14 @@ ], "doc": "body parameter without body decorator", "operation": { - "$id": "568", + "$id": "573", "name": "anonymousBody", "resourceName": "SampleTypeSpec", "doc": "body parameter without body decorator", "accessibility": "public", "parameters": [ { - "$id": "569", + "$id": "574", "kind": "query", "name": "requiredQueryParam", "serializedName": "requiredQueryParam", @@ -7623,15 +7846,34 @@ "scope": "Constant", "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.requiredQueryParam", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "575", + "kind": "method", + "name": "requiredQueryParam", + "serializedName": "requiredQueryParam", + "type": { + "$ref": "128" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.requiredQueryParam", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "570", + "$id": "576", "kind": "header", "name": "requiredHeader", "serializedName": "required-header", "type": { - "$ref": "128" + "$ref": "130" }, "isApiVersion": false, "optional": false, @@ -7639,16 +7881,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.requiredHeader" + "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.requiredHeader", + "methodParameterSegments": [ + { + "$id": "577", + "kind": "method", + "name": "requiredHeader", + "serializedName": "required-header", + "type": { + "$ref": "132" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.requiredHeader", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "571", + "$id": "578", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "130" + "$ref": "134" }, "isApiVersion": false, "optional": false, @@ -7656,15 +7917,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.contentType", + "methodParameterSegments": [ + { + "$id": "579", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "134" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "572", + "$id": "580", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "132" + "$ref": "136" }, "isApiVersion": false, "optional": false, @@ -7672,10 +7953,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.accept", + "methodParameterSegments": [ + { + "$id": "581", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "136" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "573", + "$id": "582", "kind": "body", "name": "thing", "serializedName": "thing", @@ -7691,7 +7991,31 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.body" + "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.body", + "methodParameterSegments": [ + { + "$id": "583", + "kind": "method", + "name": "name", + "serializedName": "name", + "doc": "name of the Thing", + "type": { + "$id": "584", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7724,29 +8048,10 @@ }, "parameters": [ { - "$id": "574", - "kind": "method", - "name": "name", - "serializedName": "name", - "doc": "name of the Thing", - "type": { - "$id": "575", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.name", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "583" }, { - "$id": "576", + "$id": "585", "kind": "method", "name": "requiredUnion", "serializedName": "requiredUnion", @@ -7764,7 +8069,7 @@ "decorators": [] }, { - "$id": "577", + "$id": "586", "kind": "method", "name": "requiredLiteralString", "serializedName": "requiredLiteralString", @@ -7782,7 +8087,7 @@ "decorators": [] }, { - "$id": "578", + "$id": "587", "kind": "method", "name": "requiredNullableString", "serializedName": "requiredNullableString", @@ -7800,7 +8105,7 @@ "decorators": [] }, { - "$id": "579", + "$id": "588", "kind": "method", "name": "optionalNullableString", "serializedName": "optionalNullableString", @@ -7818,7 +8123,7 @@ "decorators": [] }, { - "$id": "580", + "$id": "589", "kind": "method", "name": "requiredLiteralInt", "serializedName": "requiredLiteralInt", @@ -7836,7 +8141,7 @@ "decorators": [] }, { - "$id": "581", + "$id": "590", "kind": "method", "name": "requiredLiteralFloat", "serializedName": "requiredLiteralFloat", @@ -7854,7 +8159,7 @@ "decorators": [] }, { - "$id": "582", + "$id": "591", "kind": "method", "name": "requiredLiteralBool", "serializedName": "requiredLiteralBool", @@ -7872,18 +8177,18 @@ "decorators": [] }, { - "$id": "583", + "$id": "592", "kind": "method", "name": "optionalLiteralString", "serializedName": "optionalLiteralString", "doc": "optional literal string", "type": { - "$id": "584", + "$id": "593", "kind": "enum", "name": "ThingOptionalLiteralString", "crossLanguageDefinitionId": "", "valueType": { - "$id": "585", + "$id": "594", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7891,12 +8196,12 @@ }, "values": [ { - "$id": "586", + "$id": "595", "kind": "enumvalue", "name": "reject", "value": "reject", "valueType": { - "$id": "587", + "$id": "596", "kind": "string", "decorators": [], "doc": "A sequence of textual characters.", @@ -7904,7 +8209,7 @@ "crossLanguageDefinitionId": "TypeSpec.string" }, "enumType": { - "$ref": "584" + "$ref": "593" }, "decorators": [] } @@ -7925,7 +8230,7 @@ "decorators": [] }, { - "$id": "588", + "$id": "597", "kind": "method", "name": "requiredNullableLiteralString", "serializedName": "requiredNullableLiteralString", @@ -7943,18 +8248,18 @@ "decorators": [] }, { - "$id": "589", + "$id": "598", "kind": "method", "name": "optionalLiteralInt", "serializedName": "optionalLiteralInt", "doc": "optional literal int", "type": { - "$id": "590", + "$id": "599", "kind": "enum", "name": "ThingOptionalLiteralInt", "crossLanguageDefinitionId": "", "valueType": { - "$id": "591", + "$id": "600", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -7962,12 +8267,12 @@ }, "values": [ { - "$id": "592", + "$id": "601", "kind": "enumvalue", "name": "456", "value": 456, "valueType": { - "$id": "593", + "$id": "602", "kind": "int32", "decorators": [], "doc": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", @@ -7975,7 +8280,7 @@ "crossLanguageDefinitionId": "TypeSpec.int32" }, "enumType": { - "$ref": "590" + "$ref": "599" }, "decorators": [] } @@ -7996,18 +8301,18 @@ "decorators": [] }, { - "$id": "594", + "$id": "603", "kind": "method", "name": "optionalLiteralFloat", "serializedName": "optionalLiteralFloat", "doc": "optional literal float", "type": { - "$id": "595", + "$id": "604", "kind": "enum", "name": "ThingOptionalLiteralFloat", "crossLanguageDefinitionId": "", "valueType": { - "$id": "596", + "$id": "605", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -8015,12 +8320,12 @@ }, "values": [ { - "$id": "597", + "$id": "606", "kind": "enumvalue", "name": "4.56", "value": 4.56, "valueType": { - "$id": "598", + "$id": "607", "kind": "float32", "decorators": [], "doc": "A 32 bit floating point number. (`±1.5 x 10^−45` to `±3.4 x 10^38`)", @@ -8028,7 +8333,7 @@ "crossLanguageDefinitionId": "TypeSpec.float32" }, "enumType": { - "$ref": "595" + "$ref": "604" }, "decorators": [] } @@ -8049,7 +8354,7 @@ "decorators": [] }, { - "$id": "599", + "$id": "608", "kind": "method", "name": "optionalLiteralBool", "serializedName": "optionalLiteralBool", @@ -8067,13 +8372,13 @@ "decorators": [] }, { - "$id": "600", + "$id": "609", "kind": "method", "name": "requiredBadDescription", "serializedName": "requiredBadDescription", "doc": "description with xml <|endoftext|>", "type": { - "$id": "601", + "$id": "610", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8089,7 +8394,7 @@ "decorators": [] }, { - "$id": "602", + "$id": "611", "kind": "method", "name": "optionalNullableList", "serializedName": "optionalNullableList", @@ -8107,7 +8412,7 @@ "decorators": [] }, { - "$id": "603", + "$id": "612", "kind": "method", "name": "requiredNullableList", "serializedName": "requiredNullableList", @@ -8125,13 +8430,13 @@ "decorators": [] }, { - "$id": "604", + "$id": "613", "kind": "method", "name": "propertyWithSpecialDocs", "serializedName": "propertyWithSpecialDocs", "doc": "This tests:\n- Simple bullet point. This bullet point is going to be very long to test how text wrapping is handled in bullet points within documentation comments. It should properly indent the wrapped lines.\n- Another bullet point with **bold text**. This bullet point is also intentionally long to see how the formatting is preserved when the text wraps onto multiple lines in the generated documentation.\n- Third bullet point with *italic text*. Similar to the previous points, this one is extended to ensure that the wrapping and formatting are correctly applied in the output.\n- Complex bullet point with **bold** and *italic* combined. This bullet point combines both bold and italic formatting and is long enough to test the wrapping behavior in such cases.\n- **Bold bullet point**: A bullet point that is entirely bolded. This point is also made lengthy to observe how the bold formatting is maintained across wrapped lines.\n- *Italic bullet point*: A bullet point that is entirely italicized. This final point is extended to verify that italic formatting is correctly applied even when the text spans multiple lines.", "type": { - "$id": "605", + "$id": "614", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8147,73 +8452,16 @@ "decorators": [] }, { - "$id": "606", - "kind": "method", - "name": "requiredQueryParam", - "serializedName": "requiredQueryParam", - "type": { - "$ref": "144" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.requiredQueryParam", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "575" }, { - "$id": "607", - "kind": "method", - "name": "requiredHeader", - "serializedName": "required-header", - "type": { - "$ref": "146" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.requiredHeader", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "577" }, { - "$id": "608", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "130" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "579" }, { - "$id": "609", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "132" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "581" } ], "response": { @@ -8227,7 +8475,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.anonymousBody" }, { - "$id": "610", + "$id": "615", "kind": "basic", "name": "friendlyModel", "accessibility": "public", @@ -8237,14 +8485,14 @@ ], "doc": "Model can have its friendly name", "operation": { - "$id": "611", + "$id": "616", "name": "friendlyModel", "resourceName": "SampleTypeSpec", "doc": "Model can have its friendly name", "accessibility": "public", "parameters": [ { - "$id": "612", + "$id": "617", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -8258,10 +8506,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.contentType", + "methodParameterSegments": [ + { + "$id": "618", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "148" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "613", + "$id": "619", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -8274,15 +8542,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.accept", + "methodParameterSegments": [ + { + "$id": "620", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "150" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "614", + "$id": "621", "kind": "body", "name": "friend", "serializedName": "friend", "type": { - "$ref": "289" + "$ref": "295" }, "isApiVersion": false, "contentTypes": [ @@ -8293,7 +8580,31 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.body" + "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.body", + "methodParameterSegments": [ + { + "$id": "622", + "kind": "method", + "name": "name", + "serializedName": "name", + "doc": "name of the NotFriend", + "type": { + "$id": "623", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8302,7 +8613,7 @@ 200 ], "bodyType": { - "$ref": "289" + "$ref": "295" }, "headers": [], "isErrorResponse": false, @@ -8326,66 +8637,18 @@ }, "parameters": [ { - "$id": "615", - "kind": "method", - "name": "name", - "serializedName": "name", - "doc": "name of the NotFriend", - "type": { - "$id": "616", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.name", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "622" }, { - "$id": "617", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "148" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "618" }, { - "$id": "618", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "150" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "620" } ], "response": { "type": { - "$ref": "289" + "$ref": "295" } }, "isOverride": false, @@ -8394,7 +8657,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.friendlyModel" }, { - "$id": "619", + "$id": "624", "kind": "basic", "name": "addTimeHeader", "accessibility": "public", @@ -8403,23 +8666,23 @@ "2024-08-16-preview" ], "operation": { - "$id": "620", + "$id": "625", "name": "addTimeHeader", "resourceName": "SampleTypeSpec", "accessibility": "public", "parameters": [ { - "$id": "621", + "$id": "626", "kind": "header", "name": "repeatabilityFirstSent", "serializedName": "Repeatability-First-Sent", "type": { - "$id": "622", + "$id": "627", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "623", + "$id": "628", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8434,7 +8697,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader.repeatabilityFirstSent" + "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader.repeatabilityFirstSent", + "methodParameterSegments": [ + { + "$id": "629", + "kind": "method", + "name": "repeatabilityFirstSent", + "serializedName": "Repeatability-First-Sent", + "type": { + "$id": "630", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "631", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader.repeatabilityFirstSent", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8458,33 +8752,7 @@ }, "parameters": [ { - "$id": "624", - "kind": "method", - "name": "repeatabilityFirstSent", - "serializedName": "Repeatability-First-Sent", - "type": { - "$id": "625", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "626", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader.repeatabilityFirstSent", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "629" } ], "response": {}, @@ -8494,7 +8762,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.addTimeHeader" }, { - "$id": "627", + "$id": "632", "kind": "basic", "name": "projectedNameModel", "accessibility": "public", @@ -8504,14 +8772,14 @@ ], "doc": "Model can have its projected name", "operation": { - "$id": "628", + "$id": "633", "name": "projectedNameModel", "resourceName": "SampleTypeSpec", "doc": "Model can have its projected name", "accessibility": "public", "parameters": [ { - "$id": "629", + "$id": "634", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -8525,10 +8793,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.contentType", + "methodParameterSegments": [ + { + "$id": "635", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "152" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "630", + "$id": "636", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -8541,15 +8829,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.accept", + "methodParameterSegments": [ + { + "$id": "637", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "154" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "631", + "$id": "638", "kind": "body", "name": "renamedModel", "serializedName": "renamedModel", "type": { - "$ref": "292" + "$ref": "298" }, "isApiVersion": false, "contentTypes": [ @@ -8560,7 +8867,31 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.body" + "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.body", + "methodParameterSegments": [ + { + "$id": "639", + "kind": "method", + "name": "otherName", + "serializedName": "otherName", + "doc": "name of the ModelWithClientName", + "type": { + "$id": "640", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.otherName", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8569,7 +8900,7 @@ 200 ], "bodyType": { - "$ref": "292" + "$ref": "298" }, "headers": [], "isErrorResponse": false, @@ -8593,66 +8924,18 @@ }, "parameters": [ { - "$id": "632", - "kind": "method", - "name": "otherName", - "serializedName": "otherName", - "doc": "name of the ModelWithClientName", - "type": { - "$id": "633", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.otherName", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "639" }, { - "$id": "634", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "152" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "635" }, { - "$id": "635", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "154" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "637" } ], "response": { "type": { - "$ref": "292" + "$ref": "298" } }, "isOverride": false, @@ -8661,7 +8944,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.projectedNameModel" }, { - "$id": "636", + "$id": "641", "kind": "basic", "name": "returnsAnonymousModel", "accessibility": "public", @@ -8671,14 +8954,14 @@ ], "doc": "return anonymous model", "operation": { - "$id": "637", + "$id": "642", "name": "returnsAnonymousModel", "resourceName": "SampleTypeSpec", "doc": "return anonymous model", "accessibility": "public", "parameters": [ { - "$id": "638", + "$id": "643", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -8691,7 +8974,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel.accept", + "methodParameterSegments": [ + { + "$id": "644", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "156" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8700,7 +9002,7 @@ 200 ], "bodyType": { - "$ref": "295" + "$ref": "301" }, "headers": [], "isErrorResponse": false, @@ -8715,32 +9017,18 @@ "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel", - "decorators": [], - "namespace": "SampleTypeSpec" - }, - "parameters": [ - { - "$id": "639", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "156" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel", + "decorators": [], + "namespace": "SampleTypeSpec" + }, + "parameters": [ + { + "$ref": "644" } ], "response": { "type": { - "$ref": "295" + "$ref": "301" } }, "isOverride": false, @@ -8749,7 +9037,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.returnsAnonymousModel" }, { - "$id": "640", + "$id": "645", "kind": "basic", "name": "getUnknownValue", "accessibility": "public", @@ -8759,19 +9047,19 @@ ], "doc": "get extensible enum", "operation": { - "$id": "641", + "$id": "646", "name": "getUnknownValue", "resourceName": "SampleTypeSpec", "doc": "get extensible enum", "accessibility": "public", "parameters": [ { - "$id": "642", + "$id": "647", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$id": "643", + "$id": "648", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8783,7 +9071,26 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue.accept", + "methodParameterSegments": [ + { + "$id": "649", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "648" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8792,7 +9099,7 @@ 200 ], "bodyType": { - "$id": "644", + "$id": "650", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -8824,26 +9131,12 @@ }, "parameters": [ { - "$id": "645", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "643" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "649" } ], "response": { "type": { - "$ref": "644" + "$ref": "650" } }, "isOverride": false, @@ -8852,7 +9145,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.getUnknownValue" }, { - "$id": "646", + "$id": "651", "kind": "basic", "name": "internalProtocol", "accessibility": "public", @@ -8862,14 +9155,14 @@ ], "doc": "When set protocol false and convenient true, then the protocol method should be internal", "operation": { - "$id": "647", + "$id": "652", "name": "internalProtocol", "resourceName": "SampleTypeSpec", "doc": "When set protocol false and convenient true, then the protocol method should be internal", "accessibility": "public", "parameters": [ { - "$id": "648", + "$id": "653", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -8883,10 +9176,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.contentType", + "methodParameterSegments": [ + { + "$id": "654", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "158" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "649", + "$id": "655", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -8899,10 +9212,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.accept", + "methodParameterSegments": [ + { + "$id": "656", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "160" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "650", + "$id": "657", "kind": "body", "name": "body", "serializedName": "body", @@ -8918,7 +9250,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.body" + "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.body", + "methodParameterSegments": [ + { + "$id": "658", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "206" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8951,56 +9302,13 @@ }, "parameters": [ { - "$id": "651", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "206" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "658" }, { - "$id": "652", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "158" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "654" }, { - "$id": "653", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "160" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "656" } ], "response": { @@ -9014,7 +9322,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.internalProtocol" }, { - "$id": "654", + "$id": "659", "kind": "basic", "name": "stillConvenient", "accessibility": "public", @@ -9024,7 +9332,7 @@ ], "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", "operation": { - "$id": "655", + "$id": "660", "name": "stillConvenient", "resourceName": "SampleTypeSpec", "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", @@ -9057,7 +9365,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.stillConvenient" }, { - "$id": "656", + "$id": "661", "kind": "basic", "name": "headAsBoolean", "accessibility": "public", @@ -9067,19 +9375,19 @@ ], "doc": "head as boolean.", "operation": { - "$id": "657", + "$id": "662", "name": "headAsBoolean", "resourceName": "SampleTypeSpec", "doc": "head as boolean.", "accessibility": "public", "parameters": [ { - "$id": "658", + "$id": "663", "kind": "path", "name": "id", "serializedName": "id", "type": { - "$id": "659", + "$id": "664", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9094,7 +9402,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean.id" + "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean.id", + "methodParameterSegments": [ + { + "$id": "665", + "kind": "method", + "name": "id", + "serializedName": "id", + "type": { + "$id": "666", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean.id", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9118,25 +9449,7 @@ }, "parameters": [ { - "$id": "660", - "kind": "method", - "name": "id", - "serializedName": "id", - "type": { - "$id": "661", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean.id", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "665" } ], "response": {}, @@ -9146,7 +9459,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.headAsBoolean" }, { - "$id": "662", + "$id": "667", "kind": "basic", "name": "WithApiVersion", "accessibility": "public", @@ -9156,19 +9469,19 @@ ], "doc": "Return hi again", "operation": { - "$id": "663", + "$id": "668", "name": "WithApiVersion", "resourceName": "SampleTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "664", + "$id": "669", "kind": "header", "name": "p1", "serializedName": "p1", "type": { - "$id": "665", + "$id": "670", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9180,15 +9493,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion.p1" + "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion.p1", + "methodParameterSegments": [ + { + "$id": "671", + "kind": "method", + "name": "p1", + "serializedName": "p1", + "type": { + "$id": "672", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion.p1", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "666", + "$id": "673", "kind": "query", "name": "apiVersion", "serializedName": "apiVersion", "type": { - "$id": "667", + "$id": "674", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9198,7 +9534,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "668", + "$id": "675", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9209,7 +9545,39 @@ "scope": "Client", "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion.apiVersion", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "676", + "kind": "method", + "name": "apiVersion", + "serializedName": "apiVersion", + "type": { + "$id": "677", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "", + "isApiVersion": true, + "defaultValue": { + "type": { + "$id": "678", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2024-08-16-preview" + }, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion.apiVersion", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9233,25 +9601,7 @@ }, "parameters": [ { - "$id": "669", - "kind": "method", - "name": "p1", - "serializedName": "p1", - "type": { - "$id": "670", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion.p1", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "671" } ], "response": {}, @@ -9261,7 +9611,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion" }, { - "$id": "671", + "$id": "679", "kind": "paging", "name": "ListWithNextLink", "accessibility": "public", @@ -9271,14 +9621,14 @@ ], "doc": "List things with nextlink", "operation": { - "$id": "672", + "$id": "680", "name": "ListWithNextLink", "resourceName": "SampleTypeSpec", "doc": "List things with nextlink", "accessibility": "public", "parameters": [ { - "$id": "673", + "$id": "681", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -9291,7 +9641,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.accept", + "methodParameterSegments": [ + { + "$id": "682", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "162" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9300,7 +9669,7 @@ 200 ], "bodyType": { - "$ref": "296" + "$ref": "302" }, "headers": [], "isErrorResponse": false, @@ -9321,26 +9690,12 @@ }, "parameters": [ { - "$id": "674", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "162" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithNextLink.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "682" } ], "response": { "type": { - "$ref": "298" + "$ref": "304" }, "resultSegments": [ "things" @@ -9364,7 +9719,7 @@ } }, { - "$id": "675", + "$id": "683", "kind": "paging", "name": "ListWithStringNextLink", "accessibility": "public", @@ -9374,14 +9729,14 @@ ], "doc": "List things with nextlink", "operation": { - "$id": "676", + "$id": "684", "name": "ListWithStringNextLink", "resourceName": "SampleTypeSpec", "doc": "List things with nextlink", "accessibility": "public", "parameters": [ { - "$id": "677", + "$id": "685", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -9394,7 +9749,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithStringNextLink.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithStringNextLink.accept", + "methodParameterSegments": [ + { + "$id": "686", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "164" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithStringNextLink.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9403,7 +9777,7 @@ 200 ], "bodyType": { - "$ref": "301" + "$ref": "307" }, "headers": [], "isErrorResponse": false, @@ -9424,26 +9798,12 @@ }, "parameters": [ { - "$id": "678", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "164" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithStringNextLink.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "686" } ], "response": { "type": { - "$ref": "298" + "$ref": "304" }, "resultSegments": [ "things" @@ -9467,7 +9827,7 @@ } }, { - "$id": "679", + "$id": "687", "kind": "paging", "name": "ListWithContinuationToken", "accessibility": "public", @@ -9477,19 +9837,19 @@ ], "doc": "List things with continuation token", "operation": { - "$id": "680", + "$id": "688", "name": "ListWithContinuationToken", "resourceName": "SampleTypeSpec", "doc": "List things with continuation token", "accessibility": "public", "parameters": [ { - "$id": "681", + "$id": "689", "kind": "query", "name": "token", "serializedName": "token", "type": { - "$id": "682", + "$id": "690", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9501,10 +9861,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.token", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "691", + "kind": "method", + "name": "token", + "serializedName": "token", + "type": { + "$id": "692", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.token", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "683", + "$id": "693", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -9517,7 +9900,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.accept", + "methodParameterSegments": [ + { + "$id": "694", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "166" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9526,7 +9928,7 @@ 200 ], "bodyType": { - "$ref": "305" + "$ref": "311" }, "headers": [], "isErrorResponse": false, @@ -9547,47 +9949,15 @@ }, "parameters": [ { - "$id": "684", - "kind": "method", - "name": "token", - "serializedName": "token", - "type": { - "$id": "685", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.token", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "691" }, { - "$id": "686", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "166" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationToken.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "694" } ], "response": { "type": { - "$ref": "298" + "$ref": "304" }, "resultSegments": [ "things" @@ -9603,7 +9973,7 @@ ], "continuationToken": { "parameter": { - "$ref": "681" + "$ref": "689" }, "responseSegments": [ "nextToken" @@ -9614,7 +9984,7 @@ } }, { - "$id": "687", + "$id": "695", "kind": "paging", "name": "ListWithContinuationTokenHeaderResponse", "accessibility": "public", @@ -9624,19 +9994,19 @@ ], "doc": "List things with continuation token header response", "operation": { - "$id": "688", + "$id": "696", "name": "ListWithContinuationTokenHeaderResponse", "resourceName": "SampleTypeSpec", "doc": "List things with continuation token header response", "accessibility": "public", "parameters": [ { - "$id": "689", + "$id": "697", "kind": "query", "name": "token", "serializedName": "token", "type": { - "$id": "690", + "$id": "698", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9648,10 +10018,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse.token", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "699", + "kind": "method", + "name": "token", + "serializedName": "token", + "type": { + "$id": "700", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse.token", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "691", + "$id": "701", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -9664,7 +10057,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse.accept", + "methodParameterSegments": [ + { + "$id": "702", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "168" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9673,14 +10085,14 @@ 200 ], "bodyType": { - "$ref": "309" + "$ref": "315" }, "headers": [ { "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "692", + "$id": "703", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9706,47 +10118,15 @@ }, "parameters": [ { - "$id": "693", - "kind": "method", - "name": "token", - "serializedName": "token", - "type": { - "$id": "694", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse.token", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "699" }, { - "$id": "695", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "168" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithContinuationTokenHeaderResponse.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "702" } ], "response": { "type": { - "$ref": "298" + "$ref": "304" }, "resultSegments": [ "things" @@ -9762,7 +10142,7 @@ ], "continuationToken": { "parameter": { - "$ref": "689" + "$ref": "697" }, "responseSegments": [ "next-token" @@ -9773,7 +10153,7 @@ } }, { - "$id": "696", + "$id": "704", "kind": "paging", "name": "ListWithPaging", "accessibility": "public", @@ -9783,14 +10163,14 @@ ], "doc": "List things with paging", "operation": { - "$id": "697", + "$id": "705", "name": "ListWithPaging", "resourceName": "SampleTypeSpec", "doc": "List things with paging", "accessibility": "public", "parameters": [ { - "$id": "698", + "$id": "706", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -9803,7 +10183,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithPaging.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithPaging.accept", + "methodParameterSegments": [ + { + "$id": "707", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "170" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.ListWithPaging.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9812,7 +10211,7 @@ 200 ], "bodyType": { - "$ref": "311" + "$ref": "317" }, "headers": [], "isErrorResponse": false, @@ -9833,26 +10232,12 @@ }, "parameters": [ { - "$id": "699", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "170" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.ListWithPaging.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "707" } ], "response": { "type": { - "$ref": "298" + "$ref": "304" }, "resultSegments": [ "items" @@ -9870,7 +10255,7 @@ } }, { - "$id": "700", + "$id": "708", "kind": "basic", "name": "EmbeddedParameters", "accessibility": "public", @@ -9880,20 +10265,20 @@ ], "doc": "An operation with embedded parameters within the body", "operation": { - "$id": "701", + "$id": "709", "name": "EmbeddedParameters", "resourceName": "SampleTypeSpec", "doc": "An operation with embedded parameters within the body", "accessibility": "public", "parameters": [ { - "$id": "702", + "$id": "710", "kind": "header", "name": "requiredHeader", "serializedName": "required-header", "doc": "required header parameter", "type": { - "$id": "703", + "$id": "711", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9905,16 +10290,53 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredHeader" + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredHeader", + "methodParameterSegments": [ + { + "$id": "712", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "319" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters.body", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "713", + "kind": "method", + "name": "requiredHeader", + "serializedName": "requiredHeader", + "doc": "required header parameter", + "type": { + "$ref": "323" + }, + "location": "", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredHeader", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "704", + "$id": "714", "kind": "header", "name": "optionalHeader", "serializedName": "optional-header", "doc": "optional header parameter", "type": { - "$id": "705", + "$id": "715", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9926,16 +10348,39 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalHeader" + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalHeader", + "methodParameterSegments": [ + { + "$ref": "712" + }, + { + "$id": "716", + "kind": "method", + "name": "optionalHeader", + "serializedName": "optionalHeader", + "doc": "optional header parameter", + "type": { + "$ref": "325" + }, + "location": "", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalHeader", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "706", + "$id": "717", "kind": "query", "name": "requiredQuery", "serializedName": "requiredQuery", "doc": "required query parameter", "type": { - "$id": "707", + "$id": "718", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9947,16 +10392,39 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredQuery", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$ref": "712" + }, + { + "$id": "719", + "kind": "method", + "name": "requiredQuery", + "serializedName": "requiredQuery", + "doc": "required query parameter", + "type": { + "$ref": "327" + }, + "location": "", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.requiredQuery", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "708", + "$id": "720", "kind": "query", "name": "optionalQuery", "serializedName": "optionalQuery", "doc": "optional query parameter", "type": { - "$id": "709", + "$id": "721", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -9968,10 +10436,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalQuery", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$ref": "712" + }, + { + "$id": "722", + "kind": "method", + "name": "optionalQuery", + "serializedName": "optionalQuery", + "doc": "optional query parameter", + "type": { + "$ref": "329" + }, + "location": "", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.ModelWithEmbeddedNonBodyParameters.optionalQuery", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "710", + "$id": "723", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -9985,15 +10476,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters.contentType", + "methodParameterSegments": [ + { + "$id": "724", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "172" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "711", + "$id": "725", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "313" + "$ref": "319" }, "isApiVersion": false, "contentTypes": [ @@ -10004,7 +10515,12 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters.body" + "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters.body", + "methodParameterSegments": [ + { + "$ref": "712" + } + ] } ], "responses": [ @@ -10031,39 +10547,10 @@ }, "parameters": [ { - "$id": "712", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "313" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "712" }, { - "$id": "713", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "172" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "724" } ], "response": {}, @@ -10073,7 +10560,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.EmbeddedParameters" }, { - "$id": "714", + "$id": "726", "kind": "basic", "name": "DynamicModelOperation", "accessibility": "public", @@ -10083,14 +10570,14 @@ ], "doc": "An operation with a dynamic model", "operation": { - "$id": "715", + "$id": "727", "name": "DynamicModelOperation", "resourceName": "SampleTypeSpec", "doc": "An operation with a dynamic model", "accessibility": "public", "parameters": [ { - "$id": "716", + "$id": "728", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -10104,15 +10591,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.DynamicModelOperation.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.DynamicModelOperation.contentType", + "methodParameterSegments": [ + { + "$id": "729", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "174" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.DynamicModelOperation.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "717", + "$id": "730", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "324" + "$ref": "330" }, "isApiVersion": false, "contentTypes": [ @@ -10123,7 +10630,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.DynamicModelOperation.body" + "crossLanguageDefinitionId": "SampleTypeSpec.DynamicModelOperation.body", + "methodParameterSegments": [ + { + "$id": "731", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "330" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.DynamicModelOperation.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10144,45 +10670,16 @@ "bufferResponse": true, "generateProtocolMethod": true, "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SampleTypeSpec.DynamicModelOperation", - "decorators": [], - "namespace": "SampleTypeSpec" - }, - "parameters": [ - { - "$id": "718", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "324" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.DynamicModelOperation.body", - "readOnly": false, - "access": "public", - "decorators": [] + "crossLanguageDefinitionId": "SampleTypeSpec.DynamicModelOperation", + "decorators": [], + "namespace": "SampleTypeSpec" + }, + "parameters": [ + { + "$ref": "731" }, { - "$id": "719", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "174" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.DynamicModelOperation.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "729" } ], "response": {}, @@ -10192,7 +10689,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.DynamicModelOperation" }, { - "$id": "720", + "$id": "732", "kind": "basic", "name": "GetXmlAdvancedModel", "accessibility": "public", @@ -10202,14 +10699,14 @@ ], "doc": "Get an advanced XML model with various property types", "operation": { - "$id": "721", + "$id": "733", "name": "GetXmlAdvancedModel", "resourceName": "SampleTypeSpec", "doc": "Get an advanced XML model with various property types", "accessibility": "public", "parameters": [ { - "$id": "722", + "$id": "734", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -10222,7 +10719,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.GetXmlAdvancedModel.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.GetXmlAdvancedModel.accept", + "methodParameterSegments": [ + { + "$id": "735", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "176" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.GetXmlAdvancedModel.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10231,7 +10747,7 @@ 200 ], "bodyType": { - "$ref": "362" + "$ref": "368" }, "headers": [ { @@ -10260,26 +10776,12 @@ }, "parameters": [ { - "$id": "723", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "176" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.GetXmlAdvancedModel.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "735" } ], "response": { "type": { - "$ref": "362" + "$ref": "368" } }, "isOverride": false, @@ -10290,12 +10792,12 @@ ], "parameters": [ { - "$id": "724", + "$id": "736", "kind": "endpoint", "name": "sampleTypeSpecUrl", "serializedName": "sampleTypeSpecUrl", "type": { - "$id": "725", + "$id": "737", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -10310,34 +10812,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.sampleTypeSpecUrl" }, { - "$id": "726", - "kind": "method", - "name": "apiVersion", - "serializedName": "apiVersion", - "type": { - "$id": "727", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "", - "isApiVersion": true, - "defaultValue": { - "type": { - "$id": "728", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2024-08-16-preview" - }, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.WithApiVersion.apiVersion", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "676" } ], "initializedBy": 1, @@ -10349,13 +10824,13 @@ ], "children": [ { - "$id": "729", + "$id": "738", "kind": "client", "name": "AnimalOperations", "namespace": "SampleTypeSpec", "methods": [ { - "$id": "730", + "$id": "739", "kind": "basic", "name": "updatePetAsAnimal", "accessibility": "public", @@ -10365,14 +10840,14 @@ ], "doc": "Update a pet as an animal", "operation": { - "$id": "731", + "$id": "740", "name": "updatePetAsAnimal", "resourceName": "AnimalOperations", "doc": "Update a pet as an animal", "accessibility": "public", "parameters": [ { - "$id": "732", + "$id": "741", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -10386,10 +10861,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.contentType", + "methodParameterSegments": [ + { + "$id": "742", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "180" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "733", + "$id": "743", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -10402,15 +10897,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.accept", + "methodParameterSegments": [ + { + "$id": "744", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "182" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "734", + "$id": "745", "kind": "body", "name": "animal", "serializedName": "animal", "type": { - "$ref": "445" + "$ref": "451" }, "isApiVersion": false, "contentTypes": [ @@ -10421,7 +10935,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.animal" + "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.animal", + "methodParameterSegments": [ + { + "$id": "746", + "kind": "method", + "name": "animal", + "serializedName": "animal", + "type": { + "$ref": "451" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.animal", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10430,7 +10963,7 @@ 200 ], "bodyType": { - "$ref": "445" + "$ref": "451" }, "headers": [], "isErrorResponse": false, @@ -10454,61 +10987,18 @@ }, "parameters": [ { - "$id": "735", - "kind": "method", - "name": "animal", - "serializedName": "animal", - "type": { - "$ref": "445" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.animal", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "746" }, { - "$id": "736", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "180" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "742" }, { - "$id": "737", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "182" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "744" } ], "response": { "type": { - "$ref": "445" + "$ref": "451" } }, "isOverride": false, @@ -10517,7 +11007,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updatePetAsAnimal" }, { - "$id": "738", + "$id": "747", "kind": "basic", "name": "updateDogAsAnimal", "accessibility": "public", @@ -10527,14 +11017,14 @@ ], "doc": "Update a dog as an animal", "operation": { - "$id": "739", + "$id": "748", "name": "updateDogAsAnimal", "resourceName": "AnimalOperations", "doc": "Update a dog as an animal", "accessibility": "public", "parameters": [ { - "$id": "740", + "$id": "749", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -10548,10 +11038,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.contentType", + "methodParameterSegments": [ + { + "$id": "750", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "184" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "741", + "$id": "751", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -10564,15 +11074,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.accept", + "methodParameterSegments": [ + { + "$id": "752", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "186" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "742", + "$id": "753", "kind": "body", "name": "animal", "serializedName": "animal", "type": { - "$ref": "445" + "$ref": "451" }, "isApiVersion": false, "contentTypes": [ @@ -10583,7 +11112,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.animal" + "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.animal", + "methodParameterSegments": [ + { + "$id": "754", + "kind": "method", + "name": "animal", + "serializedName": "animal", + "type": { + "$ref": "451" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.animal", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10592,7 +11140,7 @@ 200 ], "bodyType": { - "$ref": "445" + "$ref": "451" }, "headers": [], "isErrorResponse": false, @@ -10616,61 +11164,18 @@ }, "parameters": [ { - "$id": "743", - "kind": "method", - "name": "animal", - "serializedName": "animal", - "type": { - "$ref": "445" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.animal", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "754" }, { - "$id": "744", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "184" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "750" }, { - "$id": "745", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "186" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.AnimalOperations.updateDogAsAnimal.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "752" } ], "response": { "type": { - "$ref": "445" + "$ref": "451" } }, "isOverride": false, @@ -10681,12 +11186,12 @@ ], "parameters": [ { - "$id": "746", + "$id": "755", "kind": "endpoint", "name": "sampleTypeSpecUrl", "serializedName": "sampleTypeSpecUrl", "type": { - "$id": "747", + "$id": "756", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -10709,18 +11214,18 @@ "2024-08-16-preview" ], "parent": { - "$ref": "474" + "$ref": "480" }, "isMultiServiceClient": false }, { - "$id": "748", + "$id": "757", "kind": "client", "name": "PetOperations", "namespace": "SampleTypeSpec", "methods": [ { - "$id": "749", + "$id": "758", "kind": "basic", "name": "updatePetAsPet", "accessibility": "public", @@ -10730,14 +11235,14 @@ ], "doc": "Update a pet as a pet", "operation": { - "$id": "750", + "$id": "759", "name": "updatePetAsPet", "resourceName": "PetOperations", "doc": "Update a pet as a pet", "accessibility": "public", "parameters": [ { - "$id": "751", + "$id": "760", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -10751,10 +11256,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.contentType", + "methodParameterSegments": [ + { + "$id": "761", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "188" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "752", + "$id": "762", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -10767,15 +11292,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.accept", + "methodParameterSegments": [ + { + "$id": "763", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "190" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "753", + "$id": "764", "kind": "body", "name": "pet", "serializedName": "pet", "type": { - "$ref": "450" + "$ref": "456" }, "isApiVersion": false, "contentTypes": [ @@ -10786,7 +11330,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.pet" + "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.pet", + "methodParameterSegments": [ + { + "$id": "765", + "kind": "method", + "name": "pet", + "serializedName": "pet", + "type": { + "$ref": "456" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.pet", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10795,7 +11358,7 @@ 200 ], "bodyType": { - "$ref": "450" + "$ref": "456" }, "headers": [], "isErrorResponse": false, @@ -10819,61 +11382,18 @@ }, "parameters": [ { - "$id": "754", - "kind": "method", - "name": "pet", - "serializedName": "pet", - "type": { - "$ref": "450" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.pet", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "765" }, { - "$id": "755", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "188" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "761" }, { - "$id": "756", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "190" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "763" } ], "response": { "type": { - "$ref": "450" + "$ref": "456" } }, "isOverride": false, @@ -10882,7 +11402,7 @@ "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updatePetAsPet" }, { - "$id": "757", + "$id": "766", "kind": "basic", "name": "updateDogAsPet", "accessibility": "public", @@ -10892,14 +11412,14 @@ ], "doc": "Update a dog as a pet", "operation": { - "$id": "758", + "$id": "767", "name": "updateDogAsPet", "resourceName": "PetOperations", "doc": "Update a dog as a pet", "accessibility": "public", "parameters": [ { - "$id": "759", + "$id": "768", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -10913,10 +11433,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.contentType", + "methodParameterSegments": [ + { + "$id": "769", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "192" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "760", + "$id": "770", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -10929,15 +11469,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.accept", + "methodParameterSegments": [ + { + "$id": "771", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "194" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "761", + "$id": "772", "kind": "body", "name": "pet", "serializedName": "pet", "type": { - "$ref": "450" + "$ref": "456" }, "isApiVersion": false, "contentTypes": [ @@ -10948,7 +11507,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.pet" + "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.pet", + "methodParameterSegments": [ + { + "$id": "773", + "kind": "method", + "name": "pet", + "serializedName": "pet", + "type": { + "$ref": "456" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.pet", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10957,7 +11535,7 @@ 200 ], "bodyType": { - "$ref": "450" + "$ref": "456" }, "headers": [], "isErrorResponse": false, @@ -10981,61 +11559,18 @@ }, "parameters": [ { - "$id": "762", - "kind": "method", - "name": "pet", - "serializedName": "pet", - "type": { - "$ref": "450" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.pet", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "773" }, { - "$id": "763", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "192" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "769" }, { - "$id": "764", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "194" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.PetOperations.updateDogAsPet.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "771" } ], "response": { "type": { - "$ref": "450" + "$ref": "456" } }, "isOverride": false, @@ -11046,12 +11581,12 @@ ], "parameters": [ { - "$id": "765", + "$id": "774", "kind": "endpoint", "name": "sampleTypeSpecUrl", "serializedName": "sampleTypeSpecUrl", "type": { - "$id": "766", + "$id": "775", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -11074,18 +11609,18 @@ "2024-08-16-preview" ], "parent": { - "$ref": "474" + "$ref": "480" }, "isMultiServiceClient": false }, { - "$id": "767", + "$id": "776", "kind": "client", "name": "DogOperations", "namespace": "SampleTypeSpec", "methods": [ { - "$id": "768", + "$id": "777", "kind": "basic", "name": "updateDogAsDog", "accessibility": "public", @@ -11095,14 +11630,14 @@ ], "doc": "Update a dog as a dog", "operation": { - "$id": "769", + "$id": "778", "name": "updateDogAsDog", "resourceName": "DogOperations", "doc": "Update a dog as a dog", "accessibility": "public", "parameters": [ { - "$id": "770", + "$id": "779", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -11116,10 +11651,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.contentType" + "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.contentType", + "methodParameterSegments": [ + { + "$id": "780", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "196" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "771", + "$id": "781", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -11132,15 +11687,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.accept", + "methodParameterSegments": [ + { + "$id": "782", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "198" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "772", + "$id": "783", "kind": "body", "name": "dog", "serializedName": "dog", "type": { - "$ref": "454" + "$ref": "460" }, "isApiVersion": false, "contentTypes": [ @@ -11151,7 +11725,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.dog" + "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.dog", + "methodParameterSegments": [ + { + "$id": "784", + "kind": "method", + "name": "dog", + "serializedName": "dog", + "type": { + "$ref": "460" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.dog", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -11160,7 +11753,7 @@ 200 ], "bodyType": { - "$ref": "454" + "$ref": "460" }, "headers": [], "isErrorResponse": false, @@ -11184,61 +11777,18 @@ }, "parameters": [ { - "$id": "773", - "kind": "method", - "name": "dog", - "serializedName": "dog", - "type": { - "$ref": "454" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.dog", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "784" }, { - "$id": "774", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "196" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "780" }, { - "$id": "775", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "198" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.DogOperations.updateDogAsDog.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "782" } ], "response": { "type": { - "$ref": "454" + "$ref": "460" } }, "isOverride": false, @@ -11249,12 +11799,12 @@ ], "parameters": [ { - "$id": "776", + "$id": "785", "kind": "endpoint", "name": "sampleTypeSpecUrl", "serializedName": "sampleTypeSpecUrl", "type": { - "$id": "777", + "$id": "786", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -11277,18 +11827,18 @@ "2024-08-16-preview" ], "parent": { - "$ref": "474" + "$ref": "480" }, "isMultiServiceClient": false }, { - "$id": "778", + "$id": "787", "kind": "client", "name": "PlantOperations", "namespace": "SampleTypeSpec", "methods": [ { - "$id": "779", + "$id": "788", "kind": "basic", "name": "getTree", "accessibility": "public", @@ -11298,14 +11848,14 @@ ], "doc": "Get a tree as a plant", "operation": { - "$id": "780", + "$id": "789", "name": "getTree", "resourceName": "PlantOperations", "doc": "Get a tree as a plant", "accessibility": "public", "parameters": [ { - "$id": "781", + "$id": "790", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -11318,7 +11868,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.getTree.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.getTree.accept", + "methodParameterSegments": [ + { + "$id": "791", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "200" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.getTree.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -11327,7 +11896,7 @@ 200 ], "bodyType": { - "$ref": "458" + "$ref": "464" }, "headers": [ { @@ -11356,26 +11925,12 @@ }, "parameters": [ { - "$id": "782", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "200" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.PlantOperations.getTree.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "791" } ], "response": { "type": { - "$ref": "458" + "$ref": "464" } }, "isOverride": false, @@ -11386,12 +11941,12 @@ ], "parameters": [ { - "$id": "783", + "$id": "792", "kind": "endpoint", "name": "sampleTypeSpecUrl", "serializedName": "sampleTypeSpecUrl", "type": { - "$id": "784", + "$id": "793", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -11414,18 +11969,18 @@ "2024-08-16-preview" ], "parent": { - "$ref": "474" + "$ref": "480" }, "isMultiServiceClient": false }, { - "$id": "785", + "$id": "794", "kind": "client", "name": "Metrics", "namespace": "SampleTypeSpec", "methods": [ { - "$id": "786", + "$id": "795", "kind": "basic", "name": "getWidgetMetrics", "accessibility": "public", @@ -11435,14 +11990,14 @@ ], "doc": "Get Widget metrics for given day of week", "operation": { - "$id": "787", + "$id": "796", "name": "getWidgetMetrics", "resourceName": "Metrics", "doc": "Get Widget metrics for given day of week", "accessibility": "public", "parameters": [ { - "$id": "788", + "$id": "797", "kind": "path", "name": "day", "serializedName": "day", @@ -11458,10 +12013,29 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SampleTypeSpec.Metrics.getWidgetMetrics.day" + "crossLanguageDefinitionId": "SampleTypeSpec.Metrics.getWidgetMetrics.day", + "methodParameterSegments": [ + { + "$id": "798", + "kind": "method", + "name": "day", + "serializedName": "day", + "type": { + "$ref": "57" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SampleTypeSpec.Metrics.getWidgetMetrics.day", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "789", + "$id": "799", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -11474,7 +12048,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SampleTypeSpec.Metrics.getWidgetMetrics.accept" + "crossLanguageDefinitionId": "SampleTypeSpec.Metrics.getWidgetMetrics.accept", + "methodParameterSegments": [ + { + "$id": "800", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "204" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SampleTypeSpec.Metrics.getWidgetMetrics.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -11483,7 +12076,7 @@ 200 ], "bodyType": { - "$ref": "469" + "$ref": "475" }, "headers": [], "isErrorResponse": false, @@ -11504,43 +12097,15 @@ }, "parameters": [ { - "$id": "790", - "kind": "method", - "name": "day", - "serializedName": "day", - "type": { - "$ref": "57" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SampleTypeSpec.Metrics.getWidgetMetrics.day", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "798" }, { - "$id": "791", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "204" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SampleTypeSpec.Metrics.getWidgetMetrics.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "800" } ], "response": { "type": { - "$ref": "469" + "$ref": "475" } }, "isOverride": false, @@ -11551,12 +12116,12 @@ ], "parameters": [ { - "$id": "792", + "$id": "801", "kind": "endpoint", "name": "sampleTypeSpecUrl", "serializedName": "sampleTypeSpecUrl", "type": { - "$id": "793", + "$id": "802", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -11579,7 +12144,7 @@ "2024-08-16-preview" ], "parent": { - "$ref": "474" + "$ref": "480" }, "isMultiServiceClient": false } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/documentation/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/documentation/tspCodeModel.json index 86d05631c51..5a5591dcf0b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/documentation/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/documentation/tspCodeModel.json @@ -280,10 +280,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Documentation.Lists.bulletPointsModel.contentType" + "crossLanguageDefinitionId": "Documentation.Lists.bulletPointsModel.contentType", + "methodParameterSegments": [ + { + "$id": "22", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "6" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Documentation.Lists.bulletPointsModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "22", + "$id": "23", "kind": "body", "name": "bulletPointsModelRequest", "serializedName": "bulletPointsModelRequest", @@ -299,7 +319,26 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Documentation.Lists.bulletPointsModel.body" + "crossLanguageDefinitionId": "Documentation.Lists.bulletPointsModel.body", + "methodParameterSegments": [ + { + "$id": "24", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "8" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Documentation.Lists.bulletPointsModel.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -326,39 +365,10 @@ }, "parameters": [ { - "$id": "23", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "8" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Documentation.Lists.bulletPointsModel.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "24" }, { - "$id": "24", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Documentation.Lists.bulletPointsModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "22" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/tspCodeModel.json index cd6f63d67de..fbbab42cea0 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/tspCodeModel.json @@ -375,10 +375,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.contentType" + "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.contentType", + "methodParameterSegments": [ + { + "$id": "35", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "35", + "$id": "36", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -391,10 +411,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.accept" + "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.accept", + "methodParameterSegments": [ + { + "$id": "37", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "36", + "$id": "38", "kind": "body", "name": "body", "serializedName": "body", @@ -410,7 +449,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.body" + "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.body", + "methodParameterSegments": [ + { + "$id": "39", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "17" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -443,56 +501,13 @@ }, "parameters": [ { - "$id": "37", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "17" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "39" }, { - "$id": "38", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "35" }, { - "$id": "39", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.commaDelimited.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "37" } ], "response": { @@ -532,10 +547,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.contentType" + "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.contentType", + "methodParameterSegments": [ + { + "$id": "43", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "43", + "$id": "44", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -548,10 +583,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.accept" + "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.accept", + "methodParameterSegments": [ + { + "$id": "45", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "44", + "$id": "46", "kind": "body", "name": "body", "serializedName": "body", @@ -567,7 +621,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.body" + "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.body", + "methodParameterSegments": [ + { + "$id": "47", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "21" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -600,56 +673,13 @@ }, "parameters": [ { - "$id": "45", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "21" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "47" }, { - "$id": "46", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "43" }, { - "$id": "47", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.spaceDelimited.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "45" } ], "response": { @@ -689,10 +719,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.contentType" + "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.contentType", + "methodParameterSegments": [ + { + "$id": "51", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "51", + "$id": "52", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -705,10 +755,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.accept" + "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.accept", + "methodParameterSegments": [ + { + "$id": "53", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "52", + "$id": "54", "kind": "body", "name": "body", "serializedName": "body", @@ -724,7 +793,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.body" + "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.body", + "methodParameterSegments": [ + { + "$id": "55", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "23" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -757,56 +845,13 @@ }, "parameters": [ { - "$id": "53", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "23" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "55" }, { - "$id": "54", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "51" }, { - "$id": "55", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.pipeDelimited.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "53" } ], "response": { @@ -846,10 +891,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.contentType" + "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.contentType", + "methodParameterSegments": [ + { + "$id": "59", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "59", + "$id": "60", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -862,10 +927,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.accept" + "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.accept", + "methodParameterSegments": [ + { + "$id": "61", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "60", + "$id": "62", "kind": "body", "name": "body", "serializedName": "body", @@ -881,7 +965,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.body" + "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.body", + "methodParameterSegments": [ + { + "$id": "63", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "25" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -914,56 +1017,13 @@ }, "parameters": [ { - "$id": "61", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "25" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "63" }, { - "$id": "62", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "59" }, { - "$id": "63", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Array.Property.newlineDelimited.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "61" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json index 38c893f0473..18d687d929a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json @@ -687,7 +687,31 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Bytes.Query.default.value", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "76", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "77", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.Query.default.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -711,26 +735,7 @@ }, "parameters": [ { - "$id": "76", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "77", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.Query.default.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "76" } ], "response": {}, @@ -770,7 +775,31 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Bytes.Query.base64.value", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "82", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "83", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.Query.base64.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -794,26 +823,7 @@ }, "parameters": [ { - "$id": "82", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "83", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.Query.base64.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "82" } ], "response": {}, @@ -853,7 +863,31 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Bytes.Query.base64url.value", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "88", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "89", + "kind": "bytes", + "name": "bytes", + "encode": "base64url", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.Query.base64url.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -877,26 +911,7 @@ }, "parameters": [ { - "$id": "88", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "89", - "kind": "bytes", - "name": "bytes", - "encode": "base64url", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.Query.base64url.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "88" } ], "response": {}, @@ -932,7 +947,26 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Bytes.Query.base64urlArray.value", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "93", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "64" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.Query.base64urlArray.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -956,21 +990,7 @@ }, "parameters": [ { - "$id": "93", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$ref": "64" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.Query.base64urlArray.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "93" } ], "response": {}, @@ -1054,10 +1074,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Property.default.contentType" + "crossLanguageDefinitionId": "Encode.Bytes.Property.default.contentType", + "methodParameterSegments": [ + { + "$id": "101", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.Property.default.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "101", + "$id": "102", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1070,10 +1110,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Property.default.accept" + "crossLanguageDefinitionId": "Encode.Bytes.Property.default.accept", + "methodParameterSegments": [ + { + "$id": "103", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.Property.default.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "102", + "$id": "104", "kind": "body", "name": "body", "serializedName": "body", @@ -1089,7 +1148,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Bytes.Property.default.body" + "crossLanguageDefinitionId": "Encode.Bytes.Property.default.body", + "methodParameterSegments": [ + { + "$id": "105", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "53" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.Property.default.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1122,56 +1200,13 @@ }, "parameters": [ { - "$id": "103", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "53" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.Property.default.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "105" }, { - "$id": "104", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.Property.default.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "101" }, { - "$id": "105", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.Property.default.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "103" } ], "response": { @@ -1211,10 +1246,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64.contentType" + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64.contentType", + "methodParameterSegments": [ + { + "$id": "109", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "109", + "$id": "110", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1227,10 +1282,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64.accept" + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64.accept", + "methodParameterSegments": [ + { + "$id": "111", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "110", + "$id": "112", "kind": "body", "name": "body", "serializedName": "body", @@ -1246,7 +1320,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64.body" + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64.body", + "methodParameterSegments": [ + { + "$id": "113", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "56" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1279,56 +1372,13 @@ }, "parameters": [ { - "$id": "111", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "56" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "113" }, { - "$id": "112", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "109" }, { - "$id": "113", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "111" } ], "response": { @@ -1368,10 +1418,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url.contentType" + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url.contentType", + "methodParameterSegments": [ + { + "$id": "117", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "117", + "$id": "118", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1384,10 +1454,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url.accept" + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url.accept", + "methodParameterSegments": [ + { + "$id": "119", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "118", + "$id": "120", "kind": "body", "name": "body", "serializedName": "body", @@ -1403,7 +1492,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url.body" + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url.body", + "methodParameterSegments": [ + { + "$id": "121", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "59" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1436,56 +1544,13 @@ }, "parameters": [ { - "$id": "119", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "59" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "121" }, { - "$id": "120", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "117" }, { - "$id": "121", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "119" } ], "response": { @@ -1525,10 +1590,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray.contentType" + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray.contentType", + "methodParameterSegments": [ + { + "$id": "125", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "125", + "$id": "126", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1541,10 +1626,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray.accept" + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray.accept", + "methodParameterSegments": [ + { + "$id": "127", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "126", + "$id": "128", "kind": "body", "name": "body", "serializedName": "body", @@ -1560,7 +1664,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray.body" + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray.body", + "methodParameterSegments": [ + { + "$id": "129", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "62" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1593,56 +1716,13 @@ }, "parameters": [ { - "$id": "127", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "62" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "129" }, { - "$id": "128", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "125" }, { - "$id": "129", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "127" } ], "response": { @@ -1734,7 +1814,31 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Header.default.value" + "crossLanguageDefinitionId": "Encode.Bytes.Header.default.value", + "methodParameterSegments": [ + { + "$id": "138", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "139", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.Header.default.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1758,26 +1862,7 @@ }, "parameters": [ { - "$id": "138", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "139", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.Header.default.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "138" } ], "response": {}, @@ -1817,7 +1902,31 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64.value" + "crossLanguageDefinitionId": "Encode.Bytes.Header.base64.value", + "methodParameterSegments": [ + { + "$id": "144", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "145", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.Header.base64.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1841,26 +1950,7 @@ }, "parameters": [ { - "$id": "144", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "145", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "144" } ], "response": {}, @@ -1900,7 +1990,31 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64url.value" + "crossLanguageDefinitionId": "Encode.Bytes.Header.base64url.value", + "methodParameterSegments": [ + { + "$id": "150", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "151", + "kind": "bytes", + "name": "bytes", + "encode": "base64url", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.Header.base64url.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1924,26 +2038,7 @@ }, "parameters": [ { - "$id": "150", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "151", - "kind": "bytes", - "name": "bytes", - "encode": "base64url", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64url.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "150" } ], "response": {}, @@ -1980,7 +2075,26 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64urlArray.value" + "crossLanguageDefinitionId": "Encode.Bytes.Header.base64urlArray.value", + "methodParameterSegments": [ + { + "$id": "155", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "64" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.Header.base64urlArray.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2004,21 +2118,7 @@ }, "parameters": [ { - "$id": "155", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$ref": "64" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64urlArray.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "155" } ], "response": {}, @@ -2102,15 +2202,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default.contentType" + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default.contentType", + "methodParameterSegments": [ + { + "$id": "163", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/octet-stream", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "163", + "$id": "164", "kind": "body", "name": "value", "serializedName": "value", "type": { - "$id": "164", + "$id": "165", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2125,7 +2245,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default.value" + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default.value", + "methodParameterSegments": [ + { + "$id": "166", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "167", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2152,43 +2295,10 @@ }, "parameters": [ { - "$id": "165", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "166", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "166" }, { - "$id": "167", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/octet-stream", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "163" } ], "response": {}, @@ -2223,15 +2333,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream.contentType" + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream.contentType", + "methodParameterSegments": [ + { + "$id": "171", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "171", + "$id": "172", "kind": "body", "name": "value", "serializedName": "value", "type": { - "$id": "172", + "$id": "173", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2246,7 +2375,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream.value" + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream.value", + "methodParameterSegments": [ + { + "$id": "174", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "175", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2273,42 +2425,10 @@ }, "parameters": [ { - "$id": "173", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "171" }, { - "$id": "174", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "175", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "174" } ], "response": {}, @@ -2343,15 +2463,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType.contentType" + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType.contentType", + "methodParameterSegments": [ + { + "$id": "179", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "179", + "$id": "180", "kind": "body", "name": "value", "serializedName": "value", "type": { - "$id": "180", + "$id": "181", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2366,7 +2505,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType.value" + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType.value", + "methodParameterSegments": [ + { + "$id": "182", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "183", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2393,42 +2555,10 @@ }, "parameters": [ { - "$id": "181", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "23" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "179" }, { - "$id": "182", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "183", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "182" } ], "response": {}, @@ -2463,15 +2593,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64.contentType" + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64.contentType", + "methodParameterSegments": [ + { + "$id": "187", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "187", + "$id": "188", "kind": "body", "name": "value", "serializedName": "value", "type": { - "$id": "188", + "$id": "189", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -2487,7 +2636,31 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64.value" + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64.value", + "methodParameterSegments": [ + { + "$id": "190", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "191", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2514,43 +2687,10 @@ }, "parameters": [ { - "$id": "189", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "27" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "187" }, { - "$id": "190", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "191", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "190" } ], "response": {}, @@ -2585,15 +2725,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url.contentType" + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url.contentType", + "methodParameterSegments": [ + { + "$id": "195", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "195", + "$id": "196", "kind": "body", "name": "value", "serializedName": "value", "type": { - "$id": "196", + "$id": "197", "kind": "bytes", "name": "bytes", "encode": "base64url", @@ -2609,7 +2768,31 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url.value" + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url.value", + "methodParameterSegments": [ + { + "$id": "198", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "199", + "kind": "bytes", + "name": "bytes", + "encode": "base64url", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2636,43 +2819,10 @@ }, "parameters": [ { - "$id": "197", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "31" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "195" }, { - "$id": "198", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "199", - "kind": "bytes", - "name": "bytes", - "encode": "base64url", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "198" } ], "response": {}, @@ -2755,7 +2905,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default.accept" + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default.accept", + "methodParameterSegments": [ + { + "$id": "207", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2764,7 +2933,7 @@ 200 ], "bodyType": { - "$id": "207", + "$id": "208", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2789,26 +2958,12 @@ }, "parameters": [ { - "$id": "208", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "35" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "207" } ], "response": { "type": { - "$ref": "207" + "$ref": "208" } }, "isOverride": false, @@ -2842,7 +2997,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream.accept" + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream.accept", + "methodParameterSegments": [ + { + "$id": "212", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2851,7 +3025,7 @@ 200 ], "bodyType": { - "$id": "212", + "$id": "213", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2884,26 +3058,12 @@ }, "parameters": [ { - "$id": "213", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "37" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "212" } ], "response": { "type": { - "$ref": "212" + "$ref": "213" } }, "isOverride": false, @@ -2937,7 +3097,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType.accept" + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType.accept", + "methodParameterSegments": [ + { + "$id": "217", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2946,7 +3125,7 @@ 200 ], "bodyType": { - "$id": "217", + "$id": "218", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -2979,26 +3158,12 @@ }, "parameters": [ { - "$id": "218", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "41" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "217" } ], "response": { "type": { - "$ref": "217" + "$ref": "218" } }, "isOverride": false, @@ -3032,7 +3197,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64.accept" + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64.accept", + "methodParameterSegments": [ + { + "$id": "222", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3041,7 +3225,7 @@ 200 ], "bodyType": { - "$id": "222", + "$id": "223", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -3075,26 +3259,12 @@ }, "parameters": [ { - "$id": "223", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "45" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "222" } ], "response": { "type": { - "$ref": "222" + "$ref": "223" } }, "isOverride": false, @@ -3128,7 +3298,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64url.accept" + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64url.accept", + "methodParameterSegments": [ + { + "$id": "227", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64url.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3137,13 +3326,13 @@ 200 ], "bodyType": { - "$id": "227", + "$id": "228", "kind": "bytes", "name": "base64urlBytes", "encode": "base64url", "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", "baseType": { - "$id": "228", + "$id": "229", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -3179,26 +3368,12 @@ }, "parameters": [ { - "$id": "229", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "49" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64url.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "227" } ], "response": { "type": { - "$ref": "227" + "$ref": "228" } }, "isOverride": false, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json index 8094bd11bc3..4d963b254ef 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json @@ -522,7 +522,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Datetime.Query.default.value", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "54", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "55", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Query.default.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -546,33 +577,7 @@ }, "parameters": [ { - "$id": "54", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "55", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "56", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Query.default.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "54" } ], "response": {}, @@ -619,7 +624,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc3339.value", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "62", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "63", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc3339.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -643,33 +679,7 @@ }, "parameters": [ { - "$id": "62", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "63", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "64", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc3339.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "62" } ], "response": {}, @@ -716,7 +726,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc7231.value", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "70", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "71", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc7231.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -740,33 +781,7 @@ }, "parameters": [ { - "$id": "70", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "71", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "72", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc7231.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "70" } ], "response": {}, @@ -813,7 +828,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestamp.value", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "78", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "79", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "80", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestamp.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -837,33 +883,7 @@ }, "parameters": [ { - "$id": "78", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "79", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "80", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestamp.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "78" } ], "response": {}, @@ -899,7 +919,26 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestampArray.value", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "84", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "39" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestampArray.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -923,21 +962,7 @@ }, "parameters": [ { - "$id": "84", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$ref": "39" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestampArray.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "84" } ], "response": {}, @@ -1021,10 +1046,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Property.default.contentType" + "crossLanguageDefinitionId": "Encode.Datetime.Property.default.contentType", + "methodParameterSegments": [ + { + "$id": "92", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Datetime.Property.default.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "92", + "$id": "93", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1037,10 +1082,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Property.default.accept" + "crossLanguageDefinitionId": "Encode.Datetime.Property.default.accept", + "methodParameterSegments": [ + { + "$id": "94", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Datetime.Property.default.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "93", + "$id": "95", "kind": "body", "name": "body", "serializedName": "body", @@ -1056,7 +1120,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Datetime.Property.default.body" + "crossLanguageDefinitionId": "Encode.Datetime.Property.default.body", + "methodParameterSegments": [ + { + "$id": "96", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "21" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Property.default.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1089,56 +1172,13 @@ }, "parameters": [ { - "$id": "94", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "21" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Property.default.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "96" }, { - "$id": "95", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Datetime.Property.default.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "92" }, { - "$id": "96", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Datetime.Property.default.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "94" } ], "response": { @@ -1178,10 +1218,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339.contentType" + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339.contentType", + "methodParameterSegments": [ + { + "$id": "100", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "100", + "$id": "101", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1194,10 +1254,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339.accept" + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339.accept", + "methodParameterSegments": [ + { + "$id": "102", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "101", + "$id": "103", "kind": "body", "name": "body", "serializedName": "body", @@ -1213,7 +1292,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339.body" + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339.body", + "methodParameterSegments": [ + { + "$id": "104", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "25" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1246,56 +1344,13 @@ }, "parameters": [ { - "$id": "102", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "25" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "104" }, { - "$id": "103", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "100" }, { - "$id": "104", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "102" } ], "response": { @@ -1335,10 +1390,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231.contentType" + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231.contentType", + "methodParameterSegments": [ + { + "$id": "108", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "108", + "$id": "109", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1351,10 +1426,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231.accept" + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231.accept", + "methodParameterSegments": [ + { + "$id": "110", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "109", + "$id": "111", "kind": "body", "name": "body", "serializedName": "body", @@ -1370,7 +1464,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231.body" + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231.body", + "methodParameterSegments": [ + { + "$id": "112", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "29" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1403,56 +1516,13 @@ }, "parameters": [ { - "$id": "110", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "29" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "112" }, { - "$id": "111", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "108" }, { - "$id": "112", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "110" } ], "response": { @@ -1492,10 +1562,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp.contentType" + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp.contentType", + "methodParameterSegments": [ + { + "$id": "116", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "116", + "$id": "117", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1508,10 +1598,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp.accept" + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp.accept", + "methodParameterSegments": [ + { + "$id": "118", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "117", + "$id": "119", "kind": "body", "name": "body", "serializedName": "body", @@ -1527,7 +1636,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp.body" + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp.body", + "methodParameterSegments": [ + { + "$id": "120", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "33" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1560,56 +1688,13 @@ }, "parameters": [ { - "$id": "118", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "33" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "120" }, { - "$id": "119", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "116" }, { - "$id": "120", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "118" } ], "response": { @@ -1649,10 +1734,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray.contentType" + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray.contentType", + "methodParameterSegments": [ + { + "$id": "124", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "124", + "$id": "125", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1665,10 +1770,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray.accept" + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray.accept", + "methodParameterSegments": [ + { + "$id": "126", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "125", + "$id": "127", "kind": "body", "name": "body", "serializedName": "body", @@ -1684,7 +1808,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray.body" + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray.body", + "methodParameterSegments": [ + { + "$id": "128", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "37" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1717,56 +1860,13 @@ }, "parameters": [ { - "$id": "126", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "37" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "128" }, { - "$id": "127", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "124" }, { - "$id": "128", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "126" } ], "response": { @@ -1865,7 +1965,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Header.default.value" + "crossLanguageDefinitionId": "Encode.Datetime.Header.default.value", + "methodParameterSegments": [ + { + "$id": "138", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "139", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Header.default.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1889,33 +2020,7 @@ }, "parameters": [ { - "$id": "138", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "139", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Header.default.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "138" } ], "response": {}, @@ -1962,7 +2067,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339.value" + "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339.value", + "methodParameterSegments": [ + { + "$id": "146", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "147", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "148", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1986,33 +2122,7 @@ }, "parameters": [ { - "$id": "146", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "147", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "148", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "146" } ], "response": {}, @@ -2059,7 +2169,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231.value" + "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231.value", + "methodParameterSegments": [ + { + "$id": "154", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "155", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "156", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2083,33 +2224,7 @@ }, "parameters": [ { - "$id": "154", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "155", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "156", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "154" } ], "response": {}, @@ -2156,7 +2271,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp.value" + "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp.value", + "methodParameterSegments": [ + { + "$id": "162", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "163", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "164", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2180,33 +2326,7 @@ }, "parameters": [ { - "$id": "162", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "163", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "164", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "162" } ], "response": {}, @@ -2243,7 +2363,26 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestampArray.value" + "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestampArray.value", + "methodParameterSegments": [ + { + "$id": "168", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestampArray.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2267,21 +2406,7 @@ }, "parameters": [ { - "$id": "168", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$ref": "39" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestampArray.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "168" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json index b13798c6782..095d006abef 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json @@ -1273,7 +1273,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Duration.Query.default.input", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "129", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$id": "130", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Query.default.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1297,33 +1328,7 @@ }, "parameters": [ { - "$id": "129", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$id": "130", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "131", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Query.default.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "129" } ], "response": {}, @@ -1370,7 +1375,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Duration.Query.iso8601.input", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "137", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$id": "138", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "139", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Query.iso8601.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1394,33 +1430,7 @@ }, "parameters": [ { - "$id": "137", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$id": "138", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "139", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Query.iso8601.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "137" } ], "response": {}, @@ -1467,7 +1477,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Duration.Query.int32Seconds.input", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "145", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$id": "146", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "147", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Query.int32Seconds.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1491,33 +1532,7 @@ }, "parameters": [ { - "$id": "145", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$id": "146", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "147", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Query.int32Seconds.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "145" } ], "response": {}, @@ -1564,7 +1579,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsLargerUnit.input", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "153", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$id": "154", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "155", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsLargerUnit.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1588,33 +1634,7 @@ }, "parameters": [ { - "$id": "153", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$id": "154", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "155", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsLargerUnit.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "153" } ], "response": {}, @@ -1661,7 +1681,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Duration.Query.floatSeconds.input", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "161", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$id": "162", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "163", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Query.floatSeconds.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1685,33 +1736,7 @@ }, "parameters": [ { - "$id": "161", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$id": "162", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "163", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Query.floatSeconds.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "161" } ], "response": {}, @@ -1758,7 +1783,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Duration.Query.floatSecondsLargerUnit.input", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "169", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$id": "170", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "171", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Query.floatSecondsLargerUnit.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1782,33 +1838,7 @@ }, "parameters": [ { - "$id": "169", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$id": "170", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "171", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Query.floatSecondsLargerUnit.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "169" } ], "response": {}, @@ -1855,7 +1885,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Duration.Query.float64Seconds.input", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "177", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$id": "178", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "179", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Query.float64Seconds.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1879,33 +1940,7 @@ }, "parameters": [ { - "$id": "177", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$id": "178", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "179", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Query.float64Seconds.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "177" } ], "response": {}, @@ -1952,7 +1987,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Duration.Query.int32Milliseconds.input", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "185", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$id": "186", + "kind": "duration", + "name": "duration", + "encode": "milliseconds", + "wireType": { + "$id": "187", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Query.int32Milliseconds.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1976,33 +2042,7 @@ }, "parameters": [ { - "$id": "185", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$id": "186", - "kind": "duration", - "name": "duration", - "encode": "milliseconds", - "wireType": { - "$id": "187", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Query.int32Milliseconds.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "185" } ], "response": {}, @@ -2049,7 +2089,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Duration.Query.int32MillisecondsLargerUnit.input", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "193", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$id": "194", + "kind": "duration", + "name": "duration", + "encode": "milliseconds", + "wireType": { + "$id": "195", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Query.int32MillisecondsLargerUnit.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2073,33 +2144,7 @@ }, "parameters": [ { - "$id": "193", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$id": "194", - "kind": "duration", - "name": "duration", - "encode": "milliseconds", - "wireType": { - "$id": "195", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Query.int32MillisecondsLargerUnit.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "193" } ], "response": {}, @@ -2146,7 +2191,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Duration.Query.floatMilliseconds.input", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "201", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$id": "202", + "kind": "duration", + "name": "duration", + "encode": "milliseconds", + "wireType": { + "$id": "203", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Query.floatMilliseconds.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2170,33 +2246,7 @@ }, "parameters": [ { - "$id": "201", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$id": "202", - "kind": "duration", - "name": "duration", - "encode": "milliseconds", - "wireType": { - "$id": "203", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Query.floatMilliseconds.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "201" } ], "response": {}, @@ -2243,7 +2293,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Duration.Query.floatMillisecondsLargerUnit.input", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "209", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$id": "210", + "kind": "duration", + "name": "duration", + "encode": "milliseconds", + "wireType": { + "$id": "211", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Query.floatMillisecondsLargerUnit.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2267,33 +2348,7 @@ }, "parameters": [ { - "$id": "209", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$id": "210", - "kind": "duration", - "name": "duration", - "encode": "milliseconds", - "wireType": { - "$id": "211", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Query.floatMillisecondsLargerUnit.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "209" } ], "response": {}, @@ -2340,7 +2395,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Duration.Query.float64Milliseconds.input", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "217", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$id": "218", + "kind": "duration", + "name": "duration", + "encode": "milliseconds", + "wireType": { + "$id": "219", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Query.float64Milliseconds.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2364,33 +2450,7 @@ }, "parameters": [ { - "$id": "217", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$id": "218", - "kind": "duration", - "name": "duration", - "encode": "milliseconds", - "wireType": { - "$id": "219", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Query.float64Milliseconds.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "217" } ], "response": {}, @@ -2460,7 +2520,26 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsArray.input", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "228", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "223" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsArray.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2484,21 +2563,7 @@ }, "parameters": [ { - "$id": "228", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "223" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsArray.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "228" } ], "response": {}, @@ -2568,7 +2633,26 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Encode.Duration.Query.int32MillisecondsArray.input", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "237", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "232" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Query.int32MillisecondsArray.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2592,21 +2676,7 @@ }, "parameters": [ { - "$id": "237", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "232" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Query.int32MillisecondsArray.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "237" } ], "response": {}, @@ -2690,10 +2760,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.default.contentType" + "crossLanguageDefinitionId": "Encode.Duration.Property.default.contentType", + "methodParameterSegments": [ + { + "$id": "245", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.default.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "245", + "$id": "246", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -2706,10 +2796,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.default.accept" + "crossLanguageDefinitionId": "Encode.Duration.Property.default.accept", + "methodParameterSegments": [ + { + "$id": "247", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.default.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "246", + "$id": "248", "kind": "body", "name": "body", "serializedName": "body", @@ -2725,7 +2834,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Duration.Property.default.body" + "crossLanguageDefinitionId": "Encode.Duration.Property.default.body", + "methodParameterSegments": [ + { + "$id": "249", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "57" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Property.default.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2758,56 +2886,13 @@ }, "parameters": [ { - "$id": "247", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "57" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Property.default.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "249" }, { - "$id": "248", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.default.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "245" }, { - "$id": "249", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.default.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "247" } ], "response": { @@ -2847,10 +2932,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601.contentType" + "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601.contentType", + "methodParameterSegments": [ + { + "$id": "253", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "253", + "$id": "254", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -2863,10 +2968,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601.accept" + "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601.accept", + "methodParameterSegments": [ + { + "$id": "255", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "254", + "$id": "256", "kind": "body", "name": "body", "serializedName": "body", @@ -2882,7 +3006,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601.body" + "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601.body", + "methodParameterSegments": [ + { + "$id": "257", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "61" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2915,56 +3058,13 @@ }, "parameters": [ { - "$id": "255", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "61" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "257" }, { - "$id": "256", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "253" }, { - "$id": "257", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "255" } ], "response": { @@ -3004,10 +3104,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds.contentType" + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds.contentType", + "methodParameterSegments": [ + { + "$id": "261", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "261", + "$id": "262", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -3020,10 +3140,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds.accept" + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds.accept", + "methodParameterSegments": [ + { + "$id": "263", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "262", + "$id": "264", "kind": "body", "name": "body", "serializedName": "body", @@ -3039,7 +3178,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds.body" + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds.body", + "methodParameterSegments": [ + { + "$id": "265", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "65" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3072,56 +3230,13 @@ }, "parameters": [ { - "$id": "263", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "65" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "265" }, { - "$id": "264", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "261" }, { - "$id": "265", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "263" } ], "response": { @@ -3161,10 +3276,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds.contentType" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds.contentType", + "methodParameterSegments": [ + { + "$id": "269", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "269", + "$id": "270", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -3177,10 +3312,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds.accept" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds.accept", + "methodParameterSegments": [ + { + "$id": "271", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "270", + "$id": "272", "kind": "body", "name": "body", "serializedName": "body", @@ -3196,7 +3350,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds.body" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds.body", + "methodParameterSegments": [ + { + "$id": "273", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "69" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3229,56 +3402,13 @@ }, "parameters": [ { - "$id": "271", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "69" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "273" }, { - "$id": "272", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "269" }, { - "$id": "273", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "271" } ], "response": { @@ -3318,10 +3448,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds.contentType" + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds.contentType", + "methodParameterSegments": [ + { + "$id": "277", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "277", + "$id": "278", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -3334,10 +3484,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds.accept" + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds.accept", + "methodParameterSegments": [ + { + "$id": "279", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "278", + "$id": "280", "kind": "body", "name": "body", "serializedName": "body", @@ -3353,7 +3522,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds.body" + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds.body", + "methodParameterSegments": [ + { + "$id": "281", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "73" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3386,56 +3574,13 @@ }, "parameters": [ { - "$id": "279", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "73" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "281" }, { - "$id": "280", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "277" }, { - "$id": "281", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "279" } ], "response": { @@ -3475,10 +3620,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Milliseconds.contentType" + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Milliseconds.contentType", + "methodParameterSegments": [ + { + "$id": "285", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Milliseconds.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "285", + "$id": "286", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -3491,10 +3656,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Milliseconds.accept" + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Milliseconds.accept", + "methodParameterSegments": [ + { + "$id": "287", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Milliseconds.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "286", + "$id": "288", "kind": "body", "name": "body", "serializedName": "body", @@ -3510,7 +3694,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Milliseconds.body" + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Milliseconds.body", + "methodParameterSegments": [ + { + "$id": "289", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "77" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Milliseconds.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3543,56 +3746,13 @@ }, "parameters": [ { - "$id": "287", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "77" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Milliseconds.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "289" }, { - "$id": "288", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "21" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Milliseconds.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "285" }, { - "$id": "289", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "23" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Milliseconds.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "287" } ], "response": { @@ -3632,10 +3792,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMilliseconds.contentType" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMilliseconds.contentType", + "methodParameterSegments": [ + { + "$id": "293", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMilliseconds.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "293", + "$id": "294", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -3648,10 +3828,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMilliseconds.accept" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMilliseconds.accept", + "methodParameterSegments": [ + { + "$id": "295", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMilliseconds.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "294", + "$id": "296", "kind": "body", "name": "body", "serializedName": "body", @@ -3667,7 +3866,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMilliseconds.body" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMilliseconds.body", + "methodParameterSegments": [ + { + "$id": "297", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "81" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMilliseconds.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3700,56 +3918,13 @@ }, "parameters": [ { - "$id": "295", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "81" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMilliseconds.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "297" }, { - "$id": "296", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "25" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMilliseconds.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "293" }, { - "$id": "297", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "27" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMilliseconds.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "295" } ], "response": { @@ -3789,10 +3964,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Milliseconds.contentType" + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Milliseconds.contentType", + "methodParameterSegments": [ + { + "$id": "301", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Milliseconds.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "301", + "$id": "302", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -3805,10 +4000,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Milliseconds.accept" + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Milliseconds.accept", + "methodParameterSegments": [ + { + "$id": "303", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Milliseconds.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "302", + "$id": "304", "kind": "body", "name": "body", "serializedName": "body", @@ -3824,7 +4038,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Milliseconds.body" + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Milliseconds.body", + "methodParameterSegments": [ + { + "$id": "305", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "85" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Milliseconds.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3857,56 +4090,13 @@ }, "parameters": [ { - "$id": "303", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "85" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Milliseconds.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "305" }, { - "$id": "304", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "29" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Milliseconds.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "301" }, { - "$id": "305", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "31" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Milliseconds.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "303" } ], "response": { @@ -3946,10 +4136,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray.contentType" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray.contentType", + "methodParameterSegments": [ + { + "$id": "309", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "309", + "$id": "310", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -3962,10 +4172,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray.accept" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray.accept", + "methodParameterSegments": [ + { + "$id": "311", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "310", + "$id": "312", "kind": "body", "name": "body", "serializedName": "body", @@ -3981,7 +4210,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray.body" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray.body", + "methodParameterSegments": [ + { + "$id": "313", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "89" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4014,56 +4262,13 @@ }, "parameters": [ { - "$id": "311", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "89" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "313" }, { - "$id": "312", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "33" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "309" }, { - "$id": "313", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "35" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "311" } ], "response": { @@ -4103,10 +4308,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsArray.contentType" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsArray.contentType", + "methodParameterSegments": [ + { + "$id": "317", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsArray.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "317", + "$id": "318", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -4119,10 +4344,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsArray.accept" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsArray.accept", + "methodParameterSegments": [ + { + "$id": "319", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsArray.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "318", + "$id": "320", "kind": "body", "name": "body", "serializedName": "body", @@ -4138,7 +4382,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsArray.body" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsArray.body", + "methodParameterSegments": [ + { + "$id": "321", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "96" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsArray.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4171,56 +4434,13 @@ }, "parameters": [ { - "$id": "319", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "96" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsArray.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "321" }, { - "$id": "320", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "37" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsArray.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "317" }, { - "$id": "321", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "39" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsArray.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "319" } ], "response": { @@ -4260,10 +4480,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.int32SecondsLargerUnit.contentType" + "crossLanguageDefinitionId": "Encode.Duration.Property.int32SecondsLargerUnit.contentType", + "methodParameterSegments": [ + { + "$id": "325", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.int32SecondsLargerUnit.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "325", + "$id": "326", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -4276,10 +4516,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.int32SecondsLargerUnit.accept" + "crossLanguageDefinitionId": "Encode.Duration.Property.int32SecondsLargerUnit.accept", + "methodParameterSegments": [ + { + "$id": "327", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.int32SecondsLargerUnit.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "326", + "$id": "328", "kind": "body", "name": "body", "serializedName": "body", @@ -4295,7 +4554,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Duration.Property.int32SecondsLargerUnit.body" + "crossLanguageDefinitionId": "Encode.Duration.Property.int32SecondsLargerUnit.body", + "methodParameterSegments": [ + { + "$id": "329", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "103" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Property.int32SecondsLargerUnit.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4328,56 +4606,13 @@ }, "parameters": [ { - "$id": "327", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "103" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Property.int32SecondsLargerUnit.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "329" }, { - "$id": "328", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "41" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.int32SecondsLargerUnit.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "325" }, { - "$id": "329", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "43" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.int32SecondsLargerUnit.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "327" } ], "response": { @@ -4417,10 +4652,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsLargerUnit.contentType" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsLargerUnit.contentType", + "methodParameterSegments": [ + { + "$id": "333", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsLargerUnit.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "333", + "$id": "334", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -4433,10 +4688,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsLargerUnit.accept" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsLargerUnit.accept", + "methodParameterSegments": [ + { + "$id": "335", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsLargerUnit.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "334", + "$id": "336", "kind": "body", "name": "body", "serializedName": "body", @@ -4452,7 +4726,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsLargerUnit.body" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsLargerUnit.body", + "methodParameterSegments": [ + { + "$id": "337", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "107" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsLargerUnit.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4485,56 +4778,13 @@ }, "parameters": [ { - "$id": "335", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "107" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsLargerUnit.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "337" }, { - "$id": "336", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "45" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsLargerUnit.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "333" }, { - "$id": "337", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "47" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsLargerUnit.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "335" } ], "response": { @@ -4574,10 +4824,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.int32MillisecondsLargerUnit.contentType" + "crossLanguageDefinitionId": "Encode.Duration.Property.int32MillisecondsLargerUnit.contentType", + "methodParameterSegments": [ + { + "$id": "341", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.int32MillisecondsLargerUnit.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "341", + "$id": "342", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -4590,10 +4860,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.int32MillisecondsLargerUnit.accept" + "crossLanguageDefinitionId": "Encode.Duration.Property.int32MillisecondsLargerUnit.accept", + "methodParameterSegments": [ + { + "$id": "343", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.int32MillisecondsLargerUnit.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "342", + "$id": "344", "kind": "body", "name": "body", "serializedName": "body", @@ -4609,7 +4898,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Duration.Property.int32MillisecondsLargerUnit.body" + "crossLanguageDefinitionId": "Encode.Duration.Property.int32MillisecondsLargerUnit.body", + "methodParameterSegments": [ + { + "$id": "345", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "111" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Property.int32MillisecondsLargerUnit.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4642,56 +4950,13 @@ }, "parameters": [ { - "$id": "343", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "111" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Property.int32MillisecondsLargerUnit.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "345" }, { - "$id": "344", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "49" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.int32MillisecondsLargerUnit.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "341" }, { - "$id": "345", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "51" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.int32MillisecondsLargerUnit.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "343" } ], "response": { @@ -4731,10 +4996,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsLargerUnit.contentType" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsLargerUnit.contentType", + "methodParameterSegments": [ + { + "$id": "349", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsLargerUnit.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "349", + "$id": "350", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -4747,10 +5032,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsLargerUnit.accept" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsLargerUnit.accept", + "methodParameterSegments": [ + { + "$id": "351", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsLargerUnit.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "350", + "$id": "352", "kind": "body", "name": "body", "serializedName": "body", @@ -4766,7 +5070,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsLargerUnit.body" + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsLargerUnit.body", + "methodParameterSegments": [ + { + "$id": "353", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "115" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsLargerUnit.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4799,56 +5122,13 @@ }, "parameters": [ { - "$id": "351", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "115" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsLargerUnit.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "353" }, { - "$id": "352", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "53" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsLargerUnit.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "349" }, { - "$id": "353", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "55" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Duration.Property.floatMillisecondsLargerUnit.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "351" } ], "response": { @@ -4947,7 +5227,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header.default.duration" + "crossLanguageDefinitionId": "Encode.Duration.Header.default.duration", + "methodParameterSegments": [ + { + "$id": "363", + "kind": "method", + "name": "duration", + "serializedName": "duration", + "type": { + "$id": "364", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "365", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Header.default.duration", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4971,33 +5282,7 @@ }, "parameters": [ { - "$id": "363", - "kind": "method", - "name": "duration", - "serializedName": "duration", - "type": { - "$id": "364", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "365", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Header.default.duration", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "363" } ], "response": {}, @@ -5044,7 +5329,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601.duration" + "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601.duration", + "methodParameterSegments": [ + { + "$id": "371", + "kind": "method", + "name": "duration", + "serializedName": "duration", + "type": { + "$id": "372", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "373", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601.duration", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5068,33 +5384,7 @@ }, "parameters": [ { - "$id": "371", - "kind": "method", - "name": "duration", - "serializedName": "duration", - "type": { - "$id": "372", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "373", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601.duration", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "371" } ], "response": {}, @@ -5165,7 +5455,26 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array.duration" + "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array.duration", + "methodParameterSegments": [ + { + "$id": "382", + "kind": "method", + "name": "duration", + "serializedName": "duration", + "type": { + "$ref": "377" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array.duration", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5189,21 +5498,7 @@ }, "parameters": [ { - "$id": "382", - "kind": "method", - "name": "duration", - "serializedName": "duration", - "type": { - "$ref": "377" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array.duration", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "382" } ], "response": {}, @@ -5250,7 +5545,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds.duration" + "crossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds.duration", + "methodParameterSegments": [ + { + "$id": "388", + "kind": "method", + "name": "duration", + "serializedName": "duration", + "type": { + "$id": "389", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "390", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds.duration", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5274,33 +5600,7 @@ }, "parameters": [ { - "$id": "388", - "kind": "method", - "name": "duration", - "serializedName": "duration", - "type": { - "$id": "389", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "390", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds.duration", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "388" } ], "response": {}, @@ -5347,7 +5647,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header.int32SecondsLargerUnit.duration" + "crossLanguageDefinitionId": "Encode.Duration.Header.int32SecondsLargerUnit.duration", + "methodParameterSegments": [ + { + "$id": "396", + "kind": "method", + "name": "duration", + "serializedName": "duration", + "type": { + "$id": "397", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "398", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Header.int32SecondsLargerUnit.duration", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5371,33 +5702,7 @@ }, "parameters": [ { - "$id": "396", - "kind": "method", - "name": "duration", - "serializedName": "duration", - "type": { - "$id": "397", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "398", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Header.int32SecondsLargerUnit.duration", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "396" } ], "response": {}, @@ -5444,7 +5749,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds.duration" + "crossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds.duration", + "methodParameterSegments": [ + { + "$id": "404", + "kind": "method", + "name": "duration", + "serializedName": "duration", + "type": { + "$id": "405", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "406", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds.duration", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5468,33 +5804,7 @@ }, "parameters": [ { - "$id": "404", - "kind": "method", - "name": "duration", - "serializedName": "duration", - "type": { - "$id": "405", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "406", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds.duration", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "404" } ], "response": {}, @@ -5541,7 +5851,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header.floatSecondsLargerUnit.duration" + "crossLanguageDefinitionId": "Encode.Duration.Header.floatSecondsLargerUnit.duration", + "methodParameterSegments": [ + { + "$id": "412", + "kind": "method", + "name": "duration", + "serializedName": "duration", + "type": { + "$id": "413", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "414", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Header.floatSecondsLargerUnit.duration", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5565,33 +5906,7 @@ }, "parameters": [ { - "$id": "412", - "kind": "method", - "name": "duration", - "serializedName": "duration", - "type": { - "$id": "413", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "414", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Header.floatSecondsLargerUnit.duration", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "412" } ], "response": {}, @@ -5638,7 +5953,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header.float64Seconds.duration" + "crossLanguageDefinitionId": "Encode.Duration.Header.float64Seconds.duration", + "methodParameterSegments": [ + { + "$id": "420", + "kind": "method", + "name": "duration", + "serializedName": "duration", + "type": { + "$id": "421", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "422", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Header.float64Seconds.duration", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5662,33 +6008,7 @@ }, "parameters": [ { - "$id": "420", - "kind": "method", - "name": "duration", - "serializedName": "duration", - "type": { - "$id": "421", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "422", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Header.float64Seconds.duration", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "420" } ], "response": {}, @@ -5735,7 +6055,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header.int32Milliseconds.duration" + "crossLanguageDefinitionId": "Encode.Duration.Header.int32Milliseconds.duration", + "methodParameterSegments": [ + { + "$id": "428", + "kind": "method", + "name": "duration", + "serializedName": "duration", + "type": { + "$id": "429", + "kind": "duration", + "name": "duration", + "encode": "milliseconds", + "wireType": { + "$id": "430", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Header.int32Milliseconds.duration", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5759,33 +6110,7 @@ }, "parameters": [ { - "$id": "428", - "kind": "method", - "name": "duration", - "serializedName": "duration", - "type": { - "$id": "429", - "kind": "duration", - "name": "duration", - "encode": "milliseconds", - "wireType": { - "$id": "430", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Header.int32Milliseconds.duration", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "428" } ], "response": {}, @@ -5832,7 +6157,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header.int32MillisecondsLargerUnit.duration" + "crossLanguageDefinitionId": "Encode.Duration.Header.int32MillisecondsLargerUnit.duration", + "methodParameterSegments": [ + { + "$id": "436", + "kind": "method", + "name": "duration", + "serializedName": "duration", + "type": { + "$id": "437", + "kind": "duration", + "name": "duration", + "encode": "milliseconds", + "wireType": { + "$id": "438", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Header.int32MillisecondsLargerUnit.duration", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5856,33 +6212,7 @@ }, "parameters": [ { - "$id": "436", - "kind": "method", - "name": "duration", - "serializedName": "duration", - "type": { - "$id": "437", - "kind": "duration", - "name": "duration", - "encode": "milliseconds", - "wireType": { - "$id": "438", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Header.int32MillisecondsLargerUnit.duration", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "436" } ], "response": {}, @@ -5929,7 +6259,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header.floatMilliseconds.duration" + "crossLanguageDefinitionId": "Encode.Duration.Header.floatMilliseconds.duration", + "methodParameterSegments": [ + { + "$id": "444", + "kind": "method", + "name": "duration", + "serializedName": "duration", + "type": { + "$id": "445", + "kind": "duration", + "name": "duration", + "encode": "milliseconds", + "wireType": { + "$id": "446", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Header.floatMilliseconds.duration", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5953,33 +6314,7 @@ }, "parameters": [ { - "$id": "444", - "kind": "method", - "name": "duration", - "serializedName": "duration", - "type": { - "$id": "445", - "kind": "duration", - "name": "duration", - "encode": "milliseconds", - "wireType": { - "$id": "446", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Header.floatMilliseconds.duration", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "444" } ], "response": {}, @@ -6026,7 +6361,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header.floatMillisecondsLargerUnit.duration" + "crossLanguageDefinitionId": "Encode.Duration.Header.floatMillisecondsLargerUnit.duration", + "methodParameterSegments": [ + { + "$id": "452", + "kind": "method", + "name": "duration", + "serializedName": "duration", + "type": { + "$id": "453", + "kind": "duration", + "name": "duration", + "encode": "milliseconds", + "wireType": { + "$id": "454", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Header.floatMillisecondsLargerUnit.duration", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6050,33 +6416,7 @@ }, "parameters": [ { - "$id": "452", - "kind": "method", - "name": "duration", - "serializedName": "duration", - "type": { - "$id": "453", - "kind": "duration", - "name": "duration", - "encode": "milliseconds", - "wireType": { - "$id": "454", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Header.floatMillisecondsLargerUnit.duration", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "452" } ], "response": {}, @@ -6123,7 +6463,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header.float64Milliseconds.duration" + "crossLanguageDefinitionId": "Encode.Duration.Header.float64Milliseconds.duration", + "methodParameterSegments": [ + { + "$id": "460", + "kind": "method", + "name": "duration", + "serializedName": "duration", + "type": { + "$id": "461", + "kind": "duration", + "name": "duration", + "encode": "milliseconds", + "wireType": { + "$id": "462", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Header.float64Milliseconds.duration", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6147,33 +6518,7 @@ }, "parameters": [ { - "$id": "460", - "kind": "method", - "name": "duration", - "serializedName": "duration", - "type": { - "$id": "461", - "kind": "duration", - "name": "duration", - "encode": "milliseconds", - "wireType": { - "$id": "462", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Header.float64Milliseconds.duration", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "460" } ], "response": {}, @@ -6244,7 +6589,26 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header.int32MillisecondsArray.duration" + "crossLanguageDefinitionId": "Encode.Duration.Header.int32MillisecondsArray.duration", + "methodParameterSegments": [ + { + "$id": "471", + "kind": "method", + "name": "duration", + "serializedName": "duration", + "type": { + "$ref": "466" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Duration.Header.int32MillisecondsArray.duration", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6268,21 +6632,7 @@ }, "parameters": [ { - "$id": "471", - "kind": "method", - "name": "duration", - "serializedName": "duration", - "type": { - "$ref": "466" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Duration.Header.int32MillisecondsArray.duration", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "471" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json index 51117d86c2e..4099142d893 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json @@ -306,10 +306,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString.contentType" + "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString.contentType", + "methodParameterSegments": [ + { + "$id": "30", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "30", + "$id": "31", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -322,10 +342,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString.accept" + "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString.accept", + "methodParameterSegments": [ + { + "$id": "32", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "31", + "$id": "33", "kind": "body", "name": "value", "serializedName": "value", @@ -341,7 +380,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString.value" + "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString.value", + "methodParameterSegments": [ + { + "$id": "34", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "13" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -374,56 +432,13 @@ }, "parameters": [ { - "$id": "32", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$ref": "13" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "34" }, { - "$id": "33", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "30" }, { - "$id": "34", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "32" } ], "response": { @@ -463,10 +478,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional.contentType" + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional.contentType", + "methodParameterSegments": [ + { + "$id": "38", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "38", + "$id": "39", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -479,10 +514,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional.accept" + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional.accept", + "methodParameterSegments": [ + { + "$id": "40", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "39", + "$id": "41", "kind": "body", "name": "value", "serializedName": "value", @@ -498,7 +552,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional.value" + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional.value", + "methodParameterSegments": [ + { + "$id": "42", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "16" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -531,56 +604,13 @@ }, "parameters": [ { - "$id": "40", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$ref": "16" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "42" }, { - "$id": "41", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "38" }, { - "$id": "42", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "40" } ], "response": { @@ -620,10 +650,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString.contentType" + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString.contentType", + "methodParameterSegments": [ + { + "$id": "46", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "46", + "$id": "47", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -636,10 +686,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString.accept" + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString.accept", + "methodParameterSegments": [ + { + "$id": "48", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "47", + "$id": "49", "kind": "body", "name": "value", "serializedName": "value", @@ -655,7 +724,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString.value" + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString.value", + "methodParameterSegments": [ + { + "$id": "50", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -688,56 +776,13 @@ }, "parameters": [ { - "$id": "48", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$ref": "19" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "50" }, { - "$id": "49", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "46" }, { - "$id": "50", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "48" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json index 93cff8e300e..89cde1390c3 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json @@ -199,10 +199,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple.contentType" + "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple.contentType", + "methodParameterSegments": [ + { + "$id": "19", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "19", + "$id": "20", "kind": "body", "name": "body", "serializedName": "body", @@ -218,7 +238,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple.body" + "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple.body", + "methodParameterSegments": [ + { + "$id": "21", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "5" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -245,39 +284,10 @@ }, "parameters": [ { - "$id": "20", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "5" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "21" }, { - "$id": "21", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "19" } ], "response": {}, @@ -361,10 +371,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple.contentType" + "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple.contentType", + "methodParameterSegments": [ + { + "$id": "29", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "29", + "$id": "30", "kind": "body", "name": "simpleRequest", "serializedName": "simpleRequest", @@ -380,7 +410,30 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple.body" + "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple.body", + "methodParameterSegments": [ + { + "$id": "31", + "kind": "method", + "name": "name", + "serializedName": "name", + "type": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -407,43 +460,10 @@ }, "parameters": [ { - "$id": "30", - "kind": "method", - "name": "name", - "serializedName": "name", - "type": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple.name", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "31" }, { - "$id": "32", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "29" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json index 924d4493fb3..fb1198f36e9 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json @@ -146,10 +146,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredExplicit.contentType" + "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredExplicit.contentType", + "methodParameterSegments": [ + { + "$id": "16", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredExplicit.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "16", + "$id": "17", "kind": "body", "name": "body", "serializedName": "body", @@ -165,7 +185,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredExplicit.body" + "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredExplicit.body", + "methodParameterSegments": [ + { + "$id": "18", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredExplicit.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -192,39 +231,10 @@ }, "parameters": [ { - "$id": "17", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "9" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredExplicit.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "18" }, { - "$id": "18", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredExplicit.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "16" } ], "response": {}, @@ -260,10 +270,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredImplicit.contentType" + "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredImplicit.contentType", + "methodParameterSegments": [ + { + "$id": "22", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredImplicit.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "22", + "$id": "23", "kind": "body", "name": "bodyModel", "serializedName": "bodyModel", @@ -279,7 +309,30 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredImplicit.body" + "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredImplicit.body", + "methodParameterSegments": [ + { + "$id": "24", + "kind": "method", + "name": "name", + "serializedName": "name", + "type": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredImplicit.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -306,43 +359,10 @@ }, "parameters": [ { - "$id": "23", - "kind": "method", - "name": "name", - "serializedName": "name", - "type": { - "$id": "24", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredImplicit.name", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "24" }, { - "$id": "25", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredImplicit.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "22" } ], "response": {}, @@ -422,10 +442,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set.contentType" + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set.contentType", + "methodParameterSegments": [ + { + "$id": "33", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "33", + "$id": "34", "kind": "body", "name": "body", "serializedName": "body", @@ -441,7 +481,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set.body" + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set.body", + "methodParameterSegments": [ + { + "$id": "35", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -468,39 +527,10 @@ }, "parameters": [ { - "$id": "34", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "9" - }, - "location": "Body", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "35" }, { - "$id": "35", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "33" } ], "response": {}, @@ -536,10 +566,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit.contentType" + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit.contentType", + "methodParameterSegments": [ + { + "$id": "39", + "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": true, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "39", + "$id": "40", "kind": "body", "name": "body", "serializedName": "body", @@ -555,7 +605,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit.body" + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit.body", + "methodParameterSegments": [ + { + "$id": "41", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -582,39 +651,10 @@ }, "parameters": [ { - "$id": "40", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "9" - }, - "location": "Body", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "41" }, { - "$id": "41", - "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": true, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "39" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json index d490958ad80..fcf95d26b71 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json @@ -93,7 +93,27 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.multi.colors", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "11", + "kind": "method", + "name": "colors", + "serializedName": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$ref": "9" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.multi.colors", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -117,22 +137,7 @@ }, "parameters": [ { - "$id": "11", - "kind": "method", - "name": "colors", - "serializedName": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$ref": "9" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.multi.colors", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "11" } ], "response": {}, @@ -169,7 +174,27 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.ssv.colors", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "15", + "kind": "method", + "name": "colors", + "serializedName": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$ref": "9" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.ssv.colors", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -193,22 +218,7 @@ }, "parameters": [ { - "$id": "15", - "kind": "method", - "name": "colors", - "serializedName": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$ref": "9" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.ssv.colors", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "15" } ], "response": {}, @@ -245,7 +255,27 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.pipes.colors", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "19", + "kind": "method", + "name": "colors", + "serializedName": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$ref": "9" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.pipes.colors", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -269,22 +299,7 @@ }, "parameters": [ { - "$id": "19", - "kind": "method", - "name": "colors", - "serializedName": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$ref": "9" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.pipes.colors", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "19" } ], "response": {}, @@ -321,7 +336,27 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.csv.colors", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "23", + "kind": "method", + "name": "colors", + "serializedName": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$ref": "9" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.csv.colors", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -345,22 +380,7 @@ }, "parameters": [ { - "$id": "23", - "kind": "method", - "name": "colors", - "serializedName": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$ref": "9" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.csv.colors", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "23" } ], "response": {}, @@ -446,7 +466,27 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header.csv.colors" + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header.csv.colors", + "methodParameterSegments": [ + { + "$id": "31", + "kind": "method", + "name": "colors", + "serializedName": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header.csv.colors", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -470,22 +510,7 @@ }, "parameters": [ { - "$id": "31", - "kind": "method", - "name": "colors", - "serializedName": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header.csv.colors", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "31" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json index 7406e83a78f..2b3553358f4 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json @@ -45,7 +45,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Path.normal.name" + "crossLanguageDefinitionId": "Parameters.Path.normal.name", + "methodParameterSegments": [ + { + "$id": "6", + "kind": "method", + "name": "name", + "serializedName": "name", + "type": { + "$id": "7", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Path.normal.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -69,25 +92,7 @@ }, "parameters": [ { - "$id": "6", - "kind": "method", - "name": "name", - "serializedName": "name", - "type": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Path.normal.name", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "6" } ], "response": {}, @@ -129,7 +134,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Path.optional.name" + "crossLanguageDefinitionId": "Parameters.Path.optional.name", + "methodParameterSegments": [ + { + "$id": "12", + "kind": "method", + "name": "name", + "serializedName": "name", + "type": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Path.optional.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -153,25 +181,7 @@ }, "parameters": [ { - "$id": "12", - "kind": "method", - "name": "name", - "serializedName": "name", - "type": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Path.optional.name", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "12" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/query/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/query/tspCodeModel.json index afba2ef5612..18811ea4a20 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/query/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/query/tspCodeModel.json @@ -117,7 +117,26 @@ "scope": "Constant", "decorators": [], "crossLanguageDefinitionId": "Parameters.Query.Constant.post.queryParam", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "13", + "kind": "method", + "name": "queryParam", + "serializedName": "queryParam", + "type": { + "$ref": "3" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.Query.Constant.post.queryParam", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -141,21 +160,7 @@ }, "parameters": [ { - "$id": "13", - "kind": "method", - "name": "queryParam", - "serializedName": "queryParam", - "type": { - "$ref": "3" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.Query.Constant.post.queryParam", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "13" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json index 3f9fbc8f469..af620e7ec68 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json @@ -636,10 +636,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody.contentType" + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody.contentType", + "methodParameterSegments": [ + { + "$id": "58", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "58", + "$id": "59", "kind": "body", "name": "bodyParameter", "serializedName": "bodyParameter", @@ -655,7 +675,30 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody.body" + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody.body", + "methodParameterSegments": [ + { + "$id": "60", + "kind": "method", + "name": "name", + "serializedName": "name", + "type": { + "$id": "61", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -682,43 +725,10 @@ }, "parameters": [ { - "$id": "59", - "kind": "method", - "name": "name", - "serializedName": "name", - "type": { - "$id": "60", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody.name", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "60" }, { - "$id": "61", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "58" } ], "response": {}, @@ -754,10 +764,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody.contentType" + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody.contentType", + "methodParameterSegments": [ + { + "$id": "65", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "65", + "$id": "66", "kind": "body", "name": "body", "serializedName": "body", @@ -773,7 +803,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody.body" + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody.body", + "methodParameterSegments": [ + { + "$id": "67", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -800,39 +849,10 @@ }, "parameters": [ { - "$id": "66", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "19" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "67" }, { - "$id": "67", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "65" } ], "response": {}, @@ -874,15 +894,38 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody.name" + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody.name", + "methodParameterSegments": [ + { + "$id": "72", + "kind": "method", + "name": "name", + "serializedName": "name", + "type": { + "$id": "73", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "72", + "$id": "74", "kind": "header", "name": "testHeader", "serializedName": "test-header", "type": { - "$id": "73", + "$id": "75", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -894,7 +937,30 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody.testHeader" + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody.testHeader", + "methodParameterSegments": [ + { + "$id": "76", + "kind": "method", + "name": "testHeader", + "serializedName": "test-header", + "type": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody.testHeader", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -918,46 +984,10 @@ }, "parameters": [ { - "$id": "74", - "kind": "method", - "name": "name", - "serializedName": "name", - "type": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody.name", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "72" }, { - "$id": "76", - "kind": "method", - "name": "testHeader", - "serializedName": "test-header", - "type": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody.testHeader", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "76" } ], "response": {}, @@ -999,15 +1029,38 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.name" + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.name", + "methodParameterSegments": [ + { + "$id": "82", + "kind": "method", + "name": "name", + "serializedName": "name", + "type": { + "$id": "83", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "82", + "$id": "84", "kind": "header", "name": "testHeader", "serializedName": "test-header", "type": { - "$id": "83", + "$id": "85", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1019,10 +1072,33 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.testHeader" + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.testHeader", + "methodParameterSegments": [ + { + "$id": "86", + "kind": "method", + "name": "testHeader", + "serializedName": "test-header", + "type": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.testHeader", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "84", + "$id": "88", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -1036,10 +1112,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.contentType" + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.contentType", + "methodParameterSegments": [ + { + "$id": "89", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "85", + "$id": "90", "kind": "body", "name": "body", "serializedName": "body", @@ -1055,7 +1151,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.body" + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.body", + "methodParameterSegments": [ + { + "$id": "91", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1082,81 +1197,16 @@ }, "parameters": [ { - "$id": "86", - "kind": "method", - "name": "name", - "serializedName": "name", - "type": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.name", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "82" }, { - "$id": "88", - "kind": "method", - "name": "testHeader", - "serializedName": "test-header", - "type": { - "$id": "89", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.testHeader", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "86" }, { - "$id": "90", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "19" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "91" }, { - "$id": "91", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "89" } ], "response": {}, @@ -1198,15 +1248,38 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.name" + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.name", + "methodParameterSegments": [ + { + "$id": "96", + "kind": "method", + "name": "name", + "serializedName": "name", + "type": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "96", + "$id": "98", "kind": "header", "name": "testHeader", "serializedName": "test-header", "type": { - "$id": "97", + "$id": "99", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1218,10 +1291,33 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.testHeader" + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.testHeader", + "methodParameterSegments": [ + { + "$id": "100", + "kind": "method", + "name": "testHeader", + "serializedName": "test-header", + "type": { + "$id": "101", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.testHeader", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "98", + "$id": "102", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -1235,10 +1331,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.contentType" + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.contentType", + "methodParameterSegments": [ + { + "$id": "103", + "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": "Parameters.Spread.Model.spreadCompositeRequestMix.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "99", + "$id": "104", "kind": "body", "name": "spreadCompositeRequestMixRequest", "serializedName": "spreadCompositeRequestMixRequest", @@ -1254,7 +1370,30 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.body" + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.body", + "methodParameterSegments": [ + { + "$id": "105", + "kind": "method", + "name": "prop", + "serializedName": "prop", + "type": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.prop", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1281,85 +1420,16 @@ }, "parameters": [ { - "$id": "100", - "kind": "method", - "name": "name", - "serializedName": "name", - "type": { - "$id": "101", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.name", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "96" }, { - "$id": "102", - "kind": "method", - "name": "testHeader", - "serializedName": "test-header", - "type": { - "$id": "103", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.testHeader", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "100" }, { - "$id": "104", - "kind": "method", - "name": "prop", - "serializedName": "prop", - "type": { - "$id": "105", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix.prop", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "105" }, { - "$id": "106", - "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": "Parameters.Spread.Model.spreadCompositeRequestMix.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "103" } ], "response": {}, @@ -1443,10 +1513,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody.contentType" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody.contentType", + "methodParameterSegments": [ + { + "$id": "114", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "114", + "$id": "115", "kind": "body", "name": "spreadAsRequestBodyRequest", "serializedName": "spreadAsRequestBodyRequest", @@ -1462,7 +1552,30 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody.body" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody.body", + "methodParameterSegments": [ + { + "$id": "116", + "kind": "method", + "name": "name", + "serializedName": "name", + "type": { + "$id": "117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1489,43 +1602,10 @@ }, "parameters": [ { - "$id": "115", - "kind": "method", - "name": "name", - "serializedName": "name", - "type": { - "$id": "116", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody.name", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "116" }, { - "$id": "117", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "114" } ], "response": {}, @@ -1567,15 +1647,38 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.id" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.id", + "methodParameterSegments": [ + { + "$id": "122", + "kind": "method", + "name": "id", + "serializedName": "id", + "type": { + "$id": "123", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.id", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "122", + "$id": "124", "kind": "header", "name": "x-ms-test-header", "serializedName": "x-ms-test-header", "type": { - "$id": "123", + "$id": "125", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1587,10 +1690,33 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.x-ms-test-header" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.x-ms-test-header", + "methodParameterSegments": [ + { + "$id": "126", + "kind": "method", + "name": "x-ms-test-header", + "serializedName": "x-ms-test-header", + "type": { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.x-ms-test-header", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "124", + "$id": "128", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -1604,10 +1730,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.contentType" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.contentType", + "methodParameterSegments": [ + { + "$id": "129", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "125", + "$id": "130", "kind": "body", "name": "spreadParameterWithInnerModelRequest", "serializedName": "spreadParameterWithInnerModelRequest", @@ -1623,7 +1769,30 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.body" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.body", + "methodParameterSegments": [ + { + "$id": "131", + "kind": "method", + "name": "name", + "serializedName": "name", + "type": { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1650,85 +1819,16 @@ }, "parameters": [ { - "$id": "126", - "kind": "method", - "name": "id", - "serializedName": "id", - "type": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.id", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "122" }, { - "$id": "128", - "kind": "method", - "name": "name", - "serializedName": "name", - "type": { - "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.name", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "131" }, { - "$id": "130", - "kind": "method", - "name": "x-ms-test-header", - "serializedName": "x-ms-test-header", - "type": { - "$id": "131", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.x-ms-test-header", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "126" }, { - "$id": "132", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "129" } ], "response": {}, @@ -1770,15 +1870,38 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.id" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.id", + "methodParameterSegments": [ + { + "$id": "137", + "kind": "method", + "name": "id", + "serializedName": "id", + "type": { + "$id": "138", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.id", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "137", + "$id": "139", "kind": "header", "name": "x-ms-test-header", "serializedName": "x-ms-test-header", "type": { - "$id": "138", + "$id": "140", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1790,10 +1913,33 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.x-ms-test-header" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.x-ms-test-header", + "methodParameterSegments": [ + { + "$id": "141", + "kind": "method", + "name": "x-ms-test-header", + "serializedName": "x-ms-test-header", + "type": { + "$id": "142", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.x-ms-test-header", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "139", + "$id": "143", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -1807,10 +1953,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.contentType" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.contentType", + "methodParameterSegments": [ + { + "$id": "144", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "140", + "$id": "145", "kind": "body", "name": "spreadAsRequestParameterRequest", "serializedName": "spreadAsRequestParameterRequest", @@ -1826,7 +1992,30 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.body" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.body", + "methodParameterSegments": [ + { + "$id": "146", + "kind": "method", + "name": "name", + "serializedName": "name", + "type": { + "$id": "147", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1853,85 +2042,16 @@ }, "parameters": [ { - "$id": "141", - "kind": "method", - "name": "id", - "serializedName": "id", - "type": { - "$id": "142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.id", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "137" }, { - "$id": "143", - "kind": "method", - "name": "x-ms-test-header", - "serializedName": "x-ms-test-header", - "type": { - "$id": "144", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.x-ms-test-header", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "141" }, { - "$id": "145", - "kind": "method", - "name": "name", - "serializedName": "name", - "type": { - "$id": "146", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.name", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "146" }, { - "$id": "147", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "144" } ], "response": {}, @@ -1973,15 +2093,38 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.id" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.id", + "methodParameterSegments": [ + { + "$id": "152", + "kind": "method", + "name": "id", + "serializedName": "id", + "type": { + "$id": "153", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.id", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "152", + "$id": "154", "kind": "header", "name": "x-ms-test-header", "serializedName": "x-ms-test-header", "type": { - "$id": "153", + "$id": "155", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1993,10 +2136,33 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.x-ms-test-header" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.x-ms-test-header", + "methodParameterSegments": [ + { + "$id": "156", + "kind": "method", + "name": "x-ms-test-header", + "serializedName": "x-ms-test-header", + "type": { + "$id": "157", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.x-ms-test-header", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "154", + "$id": "158", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -2010,10 +2176,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.contentType" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.contentType", + "methodParameterSegments": [ + { + "$id": "159", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "155", + "$id": "160", "kind": "body", "name": "spreadWithMultipleParametersRequest", "serializedName": "spreadWithMultipleParametersRequest", @@ -2029,7 +2215,31 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.body" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.body", + "methodParameterSegments": [ + { + "$id": "161", + "kind": "method", + "name": "requiredString", + "serializedName": "requiredString", + "doc": "required string", + "type": { + "$id": "162", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.requiredString", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2056,77 +2266,22 @@ }, "parameters": [ { - "$id": "156", - "kind": "method", - "name": "id", - "serializedName": "id", - "type": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.id", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "152" }, { - "$id": "158", - "kind": "method", - "name": "x-ms-test-header", - "serializedName": "x-ms-test-header", - "type": { - "$id": "159", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.x-ms-test-header", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "156" }, { - "$id": "160", - "kind": "method", - "name": "requiredString", - "serializedName": "requiredString", - "doc": "required string", - "type": { - "$id": "161", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.requiredString", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "161" }, { - "$id": "162", + "$id": "163", "kind": "method", "name": "optionalInt", "serializedName": "optionalInt", "doc": "optional int", "type": { - "$id": "163", + "$id": "164", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2142,7 +2297,7 @@ "decorators": [] }, { - "$id": "164", + "$id": "165", "kind": "method", "name": "requiredIntList", "serializedName": "requiredIntList", @@ -2160,7 +2315,7 @@ "decorators": [] }, { - "$id": "165", + "$id": "166", "kind": "method", "name": "optionalStringList", "serializedName": "optionalStringList", @@ -2178,22 +2333,7 @@ "decorators": [] }, { - "$id": "166", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "159" } ], "response": {}, @@ -2237,15 +2377,38 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.id" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.id", + "methodParameterSegments": [ + { + "$id": "171", + "kind": "method", + "name": "id", + "serializedName": "id", + "type": { + "$id": "172", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.id", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "171", + "$id": "173", "kind": "header", "name": "x-ms-test-header", "serializedName": "x-ms-test-header", "type": { - "$id": "172", + "$id": "174", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2257,10 +2420,33 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.x-ms-test-header" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.x-ms-test-header", + "methodParameterSegments": [ + { + "$id": "175", + "kind": "method", + "name": "x-ms-test-header", + "serializedName": "x-ms-test-header", + "type": { + "$id": "176", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.x-ms-test-header", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "173", + "$id": "177", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -2274,10 +2460,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.contentType" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.contentType", + "methodParameterSegments": [ + { + "$id": "178", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "174", + "$id": "179", "kind": "body", "name": "spreadParameterWithInnerAliasRequest", "serializedName": "spreadParameterWithInnerAliasRequest", @@ -2293,7 +2499,31 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.body" + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.body", + "methodParameterSegments": [ + { + "$id": "180", + "kind": "method", + "name": "name", + "serializedName": "name", + "doc": "name of the Thing", + "type": { + "$id": "181", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.name", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2320,56 +2550,19 @@ }, "parameters": [ { - "$id": "175", - "kind": "method", - "name": "id", - "serializedName": "id", - "type": { - "$id": "176", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.id", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "171" }, { - "$id": "177", - "kind": "method", - "name": "name", - "serializedName": "name", - "doc": "name of the Thing", - "type": { - "$id": "178", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.name", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "180" }, { - "$id": "179", + "$id": "182", "kind": "method", "name": "age", "serializedName": "age", "doc": "age of the Thing", "type": { - "$id": "180", + "$id": "183", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2385,43 +2578,10 @@ "decorators": [] }, { - "$id": "181", - "kind": "method", - "name": "x-ms-test-header", - "serializedName": "x-ms-test-header", - "type": { - "$id": "182", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.x-ms-test-header", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "175" }, { - "$id": "183", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "178" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json index 1b074c0e509..449693b81d4 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json @@ -354,7 +354,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsPng.accept" + "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsPng.accept", + "methodParameterSegments": [ + { + "$id": "39", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsPng.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -363,7 +382,7 @@ 200 ], "bodyType": { - "$id": "39", + "$id": "40", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -374,7 +393,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "5" + "$ref": "7" } } ], @@ -396,26 +415,12 @@ }, "parameters": [ { - "$id": "40", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsPng.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "39" } ], "response": { "type": { - "$ref": "39" + "$ref": "40" } }, "isOverride": false, @@ -449,7 +454,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsJpeg.accept" + "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsJpeg.accept", + "methodParameterSegments": [ + { + "$id": "44", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsJpeg.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -458,7 +482,7 @@ 200 ], "bodyType": { - "$id": "44", + "$id": "45", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -469,7 +493,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "11" + "$ref": "13" } } ], @@ -491,26 +515,12 @@ }, "parameters": [ { - "$id": "45", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsJpeg.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "44" } ], "response": { "type": { - "$ref": "44" + "$ref": "45" } }, "isOverride": false, @@ -592,7 +602,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsPng.accept" + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsPng.accept", + "methodParameterSegments": [ + { + "$id": "53", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsPng.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -601,7 +630,7 @@ 200 ], "bodyType": { - "$id": "53", + "$id": "54", "kind": "bytes", "name": "bytes", "crossLanguageDefinitionId": "TypeSpec.bytes", @@ -612,7 +641,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "17" + "$ref": "19" } } ], @@ -634,26 +663,12 @@ }, "parameters": [ { - "$id": "54", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsPng.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "53" } ], "response": { "type": { - "$ref": "53" + "$ref": "54" } }, "isOverride": false, @@ -687,7 +702,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsJson.accept" + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsJson.accept", + "methodParameterSegments": [ + { + "$id": "58", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsJson.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -703,7 +737,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "23" + "$ref": "25" } } ], @@ -725,21 +759,7 @@ }, "parameters": [ { - "$id": "58", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "25" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsJson.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "58" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json index 476b957e44c..6ec9a581c32 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json @@ -54,7 +54,7 @@ { "$id": "7", "kind": "constant", - "name": "updateResourceContentType", + "name": "UpdateResourceRequestContentType1", "namespace": "", "usage": "None", "valueType": { @@ -64,13 +64,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "application/merge-patch+json", "decorators": [] }, { "$id": "9", "kind": "constant", - "name": "UpdateResourceRequestContentType1", + "name": "updateResourceContentType", "namespace": "", "usage": "None", "valueType": { @@ -80,7 +80,7 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/merge-patch+json", + "value": "application/json", "decorators": [] }, { @@ -102,7 +102,7 @@ { "$id": "13", "kind": "constant", - "name": "updateOptionalResourceContentType", + "name": "UpdateResourceRequestContentType3", "namespace": "", "usage": "None", "valueType": { @@ -112,13 +112,13 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/json", + "value": "application/merge-patch+json", "decorators": [] }, { "$id": "15", "kind": "constant", - "name": "UpdateResourceRequestContentType3", + "name": "updateOptionalResourceContentType", "namespace": "", "usage": "None", "valueType": { @@ -128,7 +128,7 @@ "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "value": "application/merge-patch+json", + "value": "application/json", "decorators": [] } ], @@ -645,10 +645,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource.contentType" + "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource.contentType", + "methodParameterSegments": [ + { + "$id": "55", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "55", + "$id": "56", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -661,10 +681,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource.accept" + "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource.accept", + "methodParameterSegments": [ + { + "$id": "57", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "56", + "$id": "58", "kind": "body", "name": "body", "serializedName": "body", @@ -680,7 +719,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource.body" + "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource.body", + "methodParameterSegments": [ + { + "$id": "59", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "17" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -713,56 +771,13 @@ }, "parameters": [ { - "$id": "57", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "17" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "59" }, { - "$id": "58", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "55" }, { - "$id": "59", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "57" } ], "response": { @@ -803,15 +818,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource.contentType" + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource.contentType", + "methodParameterSegments": [ + { + "$id": "63", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "63", + "$id": "64", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "7" + "$ref": "9" }, "isApiVersion": false, "optional": false, @@ -819,10 +853,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource.accept" + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource.accept", + "methodParameterSegments": [ + { + "$id": "65", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "64", + "$id": "66", "kind": "body", "name": "body", "serializedName": "body", @@ -838,7 +891,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource.body" + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource.body", + "methodParameterSegments": [ + { + "$id": "67", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "40" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -871,55 +943,13 @@ }, "parameters": [ { - "$id": "65", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "63" }, { - "$id": "66", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "40" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "67" }, { - "$id": "67", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "65" } ], "response": { @@ -960,15 +990,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource.contentType" + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource.contentType", + "methodParameterSegments": [ + { + "$id": "71", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "71", + "$id": "72", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "13" + "$ref": "15" }, "isApiVersion": false, "optional": false, @@ -976,10 +1025,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource.accept" + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource.accept", + "methodParameterSegments": [ + { + "$id": "73", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "72", + "$id": "74", "kind": "body", "name": "body", "serializedName": "body", @@ -995,7 +1063,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource.body" + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource.body", + "methodParameterSegments": [ + { + "$id": "75", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "40" + }, + "location": "Body", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1028,55 +1115,13 @@ }, "parameters": [ { - "$id": "73", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "71" }, { - "$id": "74", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "40" - }, - "location": "Body", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "75" }, { - "$id": "75", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.JsonMergePatch.updateOptionalResource.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "73" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json index fcea8fff72f..b726a3e1173 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json @@ -210,15 +210,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText.contentType" + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText.contentType", + "methodParameterSegments": [ + { + "$id": "25", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "25", + "$id": "26", "kind": "body", "name": "text", "serializedName": "text", "type": { - "$id": "26", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -233,7 +252,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText.text" + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText.text", + "methodParameterSegments": [ + { + "$id": "28", + "kind": "method", + "name": "text", + "serializedName": "text", + "type": { + "$id": "29", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText.text", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -260,42 +302,10 @@ }, "parameters": [ { - "$id": "27", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "25" }, { - "$id": "28", - "kind": "method", - "name": "text", - "serializedName": "text", - "type": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText.text", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "28" } ], "response": {}, @@ -330,7 +340,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText.accept" + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText.accept", + "methodParameterSegments": [ + { + "$id": "33", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -339,7 +368,7 @@ 200 ], "bodyType": { - "$id": "33", + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -372,26 +401,12 @@ }, "parameters": [ { - "$id": "34", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "33" } ], "response": { "type": { - "$ref": "33" + "$ref": "34" } }, "isOverride": false, @@ -425,15 +440,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson.contentType" + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson.contentType", + "methodParameterSegments": [ + { + "$id": "38", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "38", + "$id": "39", "kind": "body", "name": "text", "serializedName": "text", "type": { - "$id": "39", + "$id": "40", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -448,7 +482,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson.text" + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson.text", + "methodParameterSegments": [ + { + "$id": "41", + "kind": "method", + "name": "text", + "serializedName": "text", + "type": { + "$id": "42", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson.text", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -475,42 +532,10 @@ }, "parameters": [ { - "$id": "40", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "38" }, { - "$id": "41", - "kind": "method", - "name": "text", - "serializedName": "text", - "type": { - "$id": "42", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson.text", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "41" } ], "response": {}, @@ -545,7 +570,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsJson.accept" + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsJson.accept", + "methodParameterSegments": [ + { + "$id": "46", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsJson.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -554,7 +598,7 @@ 200 ], "bodyType": { - "$id": "46", + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -587,26 +631,12 @@ }, "parameters": [ { - "$id": "47", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsJson.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "46" } ], "response": { "type": { - "$ref": "46" + "$ref": "47" } }, "isOverride": false, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/tspCodeModel.json index 9c871c88404..8e85d21ccae 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/tspCodeModel.json @@ -2033,10 +2033,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic.contentType" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic.contentType", + "methodParameterSegments": [ + { + "$id": "165", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "165", + "$id": "166", "kind": "body", "name": "body", "serializedName": "body", @@ -2052,7 +2071,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic.body" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic.body", + "methodParameterSegments": [ + { + "$id": "167", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "59" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2079,38 +2117,10 @@ }, "parameters": [ { - "$id": "166", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "165" }, { - "$id": "167", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "59" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "167" } ], "response": {}, @@ -2147,10 +2157,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.withWireName.contentType" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.withWireName.contentType", + "methodParameterSegments": [ + { + "$id": "171", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.withWireName.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "171", + "$id": "172", "kind": "body", "name": "body", "serializedName": "body", @@ -2166,7 +2195,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.withWireName.body" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.withWireName.body", + "methodParameterSegments": [ + { + "$id": "173", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "64" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.withWireName.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2193,38 +2241,10 @@ }, "parameters": [ { - "$id": "172", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.withWireName.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "171" }, { - "$id": "173", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "64" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.withWireName.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "173" } ], "response": {}, @@ -2261,10 +2281,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.optionalParts.contentType" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.optionalParts.contentType", + "methodParameterSegments": [ + { + "$id": "177", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.optionalParts.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "177", + "$id": "178", "kind": "body", "name": "body", "serializedName": "body", @@ -2280,7 +2319,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.optionalParts.body" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.optionalParts.body", + "methodParameterSegments": [ + { + "$id": "179", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "69" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.optionalParts.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2307,38 +2365,10 @@ }, "parameters": [ { - "$id": "178", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.optionalParts.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "177" }, { - "$id": "179", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "69" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.optionalParts.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "179" } ], "response": {}, @@ -2375,10 +2405,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic.contentType" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic.contentType", + "methodParameterSegments": [ + { + "$id": "183", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "183", + "$id": "184", "kind": "body", "name": "body", "serializedName": "body", @@ -2394,7 +2443,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic.body" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic.body", + "methodParameterSegments": [ + { + "$id": "185", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "74" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2421,38 +2489,10 @@ }, "parameters": [ { - "$id": "184", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "183" }, { - "$id": "185", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "74" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "185" } ], "response": {}, @@ -2489,10 +2529,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart.contentType" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart.contentType", + "methodParameterSegments": [ + { + "$id": "189", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "189", + "$id": "190", "kind": "body", "name": "body", "serializedName": "body", @@ -2508,7 +2567,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart.body" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart.body", + "methodParameterSegments": [ + { + "$id": "191", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "86" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2535,38 +2613,10 @@ }, "parameters": [ { - "$id": "190", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "189" }, { - "$id": "191", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "86" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "191" } ], "response": {}, @@ -2603,10 +2653,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts.contentType" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts.contentType", + "methodParameterSegments": [ + { + "$id": "195", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "195", + "$id": "196", "kind": "body", "name": "body", "serializedName": "body", @@ -2622,7 +2691,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts.body" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts.body", + "methodParameterSegments": [ + { + "$id": "197", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "90" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2649,38 +2737,10 @@ }, "parameters": [ { - "$id": "196", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "23" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "195" }, { - "$id": "197", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "90" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "197" } ], "response": {}, @@ -2717,10 +2777,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts.contentType" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts.contentType", + "methodParameterSegments": [ + { + "$id": "201", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "201", + "$id": "202", "kind": "body", "name": "body", "serializedName": "body", @@ -2736,7 +2815,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts.body" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts.body", + "methodParameterSegments": [ + { + "$id": "203", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "96" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2763,38 +2861,10 @@ }, "parameters": [ { - "$id": "202", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "27" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "201" }, { - "$id": "203", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "96" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "203" } ], "response": {}, @@ -2831,10 +2901,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType.contentType" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType.contentType", + "methodParameterSegments": [ + { + "$id": "207", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "207", + "$id": "208", "kind": "body", "name": "body", "serializedName": "body", @@ -2850,7 +2939,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType.body" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType.body", + "methodParameterSegments": [ + { + "$id": "209", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "59" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2877,38 +2985,10 @@ }, "parameters": [ { - "$id": "208", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "31" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "207" }, { - "$id": "209", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "59" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "209" } ], "response": {}, @@ -2945,10 +3025,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.contentType" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.contentType", + "methodParameterSegments": [ + { + "$id": "213", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "213", + "$id": "214", "kind": "body", "name": "body", "serializedName": "body", @@ -2964,7 +3063,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.body" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.body", + "methodParameterSegments": [ + { + "$id": "215", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "101" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2991,38 +3109,10 @@ }, "parameters": [ { - "$id": "214", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "35" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "213" }, { - "$id": "215", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "101" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "215" } ], "response": {}, @@ -3106,10 +3196,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray.contentType" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray.contentType", + "methodParameterSegments": [ + { + "$id": "223", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "223", + "$id": "224", "kind": "body", "name": "body", "serializedName": "body", @@ -3125,7 +3234,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray.body" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray.body", + "methodParameterSegments": [ + { + "$id": "225", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "104" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3152,38 +3280,10 @@ }, "parameters": [ { - "$id": "224", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "39" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "223" }, { - "$id": "225", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "104" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "225" } ], "response": {}, @@ -3267,10 +3367,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType.contentType" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType.contentType", + "methodParameterSegments": [ + { + "$id": "233", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "233", + "$id": "234", "kind": "body", "name": "body", "serializedName": "body", @@ -3286,7 +3405,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType.body" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType.body", + "methodParameterSegments": [ + { + "$id": "235", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "129" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3313,38 +3451,10 @@ }, "parameters": [ { - "$id": "234", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "43" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "233" }, { - "$id": "235", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "129" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "235" } ], "response": {}, @@ -3381,10 +3491,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType.contentType" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType.contentType", + "methodParameterSegments": [ + { + "$id": "239", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "239", + "$id": "240", "kind": "body", "name": "body", "serializedName": "body", @@ -3400,7 +3529,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType.body" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType.body", + "methodParameterSegments": [ + { + "$id": "241", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "140" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3427,38 +3575,10 @@ }, "parameters": [ { - "$id": "240", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "47" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "239" }, { - "$id": "241", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "140" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "241" } ], "response": {}, @@ -3495,10 +3615,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType.contentType" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType.contentType", + "methodParameterSegments": [ + { + "$id": "245", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "245", + "$id": "246", "kind": "body", "name": "body", "serializedName": "body", @@ -3514,7 +3653,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType.body" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType.body", + "methodParameterSegments": [ + { + "$id": "247", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "142" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3541,38 +3699,10 @@ }, "parameters": [ { - "$id": "246", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "51" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "245" }, { - "$id": "247", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "142" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "247" } ], "response": {}, @@ -3657,10 +3787,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.contentType" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.contentType", + "methodParameterSegments": [ + { + "$id": "255", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "255", + "$id": "256", "kind": "body", "name": "body", "serializedName": "body", @@ -3676,7 +3825,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.body" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.body", + "methodParameterSegments": [ + { + "$id": "257", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "151" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3703,38 +3871,10 @@ }, "parameters": [ { - "$id": "256", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "55" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "255" }, { - "$id": "257", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "151" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "257" } ], "response": {}, 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 d988694b345..ea31bd2832e 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 @@ -1136,7 +1136,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link.accept" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link.accept", + "methodParameterSegments": [ + { + "$id": "85", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1166,21 +1185,7 @@ }, "parameters": [ { - "$id": "85", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "85" } ], "response": { @@ -1234,7 +1239,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.linkString.accept" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.linkString.accept", + "methodParameterSegments": [ + { + "$id": "89", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.linkString.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1264,21 +1288,7 @@ }, "parameters": [ { - "$id": "89", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.linkString.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "89" } ], "response": { @@ -1332,7 +1342,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.nestedLink.accept" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.nestedLink.accept", + "methodParameterSegments": [ + { + "$id": "93", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.nestedLink.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1362,21 +1391,7 @@ }, "parameters": [ { - "$id": "93", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.nestedLink.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "93" } ], "response": { @@ -1484,15 +1499,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.token", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "102", + "kind": "method", + "name": "token", + "serializedName": "token", + "type": { + "$id": "103", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.token", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "102", + "$id": "104", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "103", + "$id": "105", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1504,15 +1542,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.foo" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.foo", + "methodParameterSegments": [ + { + "$id": "106", + "kind": "method", + "name": "foo", + "serializedName": "foo", + "type": { + "$id": "107", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.foo", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "104", + "$id": "108", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "105", + "$id": "109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1524,10 +1585,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.bar", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "110", + "kind": "method", + "name": "bar", + "serializedName": "bar", + "type": { + "$id": "111", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.bar", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "106", + "$id": "112", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1540,7 +1624,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.accept" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.accept", + "methodParameterSegments": [ + { + "$id": "113", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1570,84 +1673,16 @@ }, "parameters": [ { - "$id": "107", - "kind": "method", - "name": "token", - "serializedName": "token", - "type": { - "$id": "108", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.token", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "102" }, { - "$id": "109", - "kind": "method", - "name": "foo", - "serializedName": "foo", - "type": { - "$id": "110", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.foo", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "106" }, { - "$id": "111", - "kind": "method", - "name": "bar", - "serializedName": "bar", - "type": { - "$id": "112", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.bar", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "110" }, { - "$id": "113", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "113" } ], "response": { @@ -1708,15 +1743,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.token" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.token", + "methodParameterSegments": [ + { + "$id": "118", + "kind": "method", + "name": "token", + "serializedName": "token", + "type": { + "$id": "119", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.token", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "118", + "$id": "120", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "119", + "$id": "121", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1728,15 +1786,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.foo" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.foo", + "methodParameterSegments": [ + { + "$id": "122", + "kind": "method", + "name": "foo", + "serializedName": "foo", + "type": { + "$id": "123", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.foo", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "120", + "$id": "124", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "121", + "$id": "125", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1748,10 +1829,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.bar", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "126", + "kind": "method", + "name": "bar", + "serializedName": "bar", + "type": { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.bar", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "122", + "$id": "128", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1764,7 +1868,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.accept" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.accept", + "methodParameterSegments": [ + { + "$id": "129", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1794,84 +1917,16 @@ }, "parameters": [ { - "$id": "123", - "kind": "method", - "name": "token", - "serializedName": "token", - "type": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.token", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "118" }, { - "$id": "125", - "kind": "method", - "name": "foo", - "serializedName": "foo", - "type": { - "$id": "126", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.foo", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "122" }, { - "$id": "127", - "kind": "method", - "name": "bar", - "serializedName": "bar", - "type": { - "$id": "128", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.bar", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "126" }, { - "$id": "129", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "129" } ], "response": { @@ -1932,15 +1987,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.token", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "134", + "kind": "method", + "name": "token", + "serializedName": "token", + "type": { + "$id": "135", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.token", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "134", + "$id": "136", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "135", + "$id": "137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1952,15 +2030,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.foo" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.foo", + "methodParameterSegments": [ + { + "$id": "138", + "kind": "method", + "name": "foo", + "serializedName": "foo", + "type": { + "$id": "139", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.foo", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "136", + "$id": "140", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "137", + "$id": "141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1972,10 +2073,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.bar", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "142", + "kind": "method", + "name": "bar", + "serializedName": "bar", + "type": { + "$id": "143", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.bar", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "138", + "$id": "144", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1988,7 +2112,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.accept" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.accept", + "methodParameterSegments": [ + { + "$id": "145", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2004,7 +2147,7 @@ "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "139", + "$id": "146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2030,84 +2173,16 @@ }, "parameters": [ { - "$id": "140", - "kind": "method", - "name": "token", - "serializedName": "token", - "type": { - "$id": "141", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.token", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "134" }, { - "$id": "142", - "kind": "method", - "name": "foo", - "serializedName": "foo", - "type": { - "$id": "143", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.foo", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "138" }, { - "$id": "144", - "kind": "method", - "name": "bar", - "serializedName": "bar", - "type": { - "$id": "145", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.bar", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "142" }, { - "$id": "146", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "145" } ], "response": { @@ -2168,15 +2243,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.token" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.token", + "methodParameterSegments": [ + { + "$id": "151", + "kind": "method", + "name": "token", + "serializedName": "token", + "type": { + "$id": "152", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.token", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "151", + "$id": "153", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "152", + "$id": "154", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2188,15 +2286,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.foo" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.foo", + "methodParameterSegments": [ + { + "$id": "155", + "kind": "method", + "name": "foo", + "serializedName": "foo", + "type": { + "$id": "156", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.foo", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "153", + "$id": "157", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "154", + "$id": "158", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2208,10 +2329,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.bar", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "159", + "kind": "method", + "name": "bar", + "serializedName": "bar", + "type": { + "$id": "160", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.bar", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "155", + "$id": "161", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -2224,7 +2368,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.accept" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.accept", + "methodParameterSegments": [ + { + "$id": "162", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2240,7 +2403,7 @@ "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "156", + "$id": "163", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2266,84 +2429,16 @@ }, "parameters": [ { - "$id": "157", - "kind": "method", - "name": "token", - "serializedName": "token", - "type": { - "$id": "158", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.token", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "151" }, { - "$id": "159", - "kind": "method", - "name": "foo", - "serializedName": "foo", - "type": { - "$id": "160", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.foo", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "155" }, { - "$id": "161", - "kind": "method", - "name": "bar", - "serializedName": "bar", - "type": { - "$id": "162", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.bar", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "159" }, { - "$id": "163", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "162" } ], "response": { @@ -2404,15 +2499,38 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.token", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "168", + "kind": "method", + "name": "token", + "serializedName": "token", + "type": { + "$id": "169", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.token", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "168", + "$id": "170", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "169", + "$id": "171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2424,15 +2542,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.foo" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.foo", + "methodParameterSegments": [ + { + "$id": "172", + "kind": "method", + "name": "foo", + "serializedName": "foo", + "type": { + "$id": "173", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.foo", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "170", + "$id": "174", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "171", + "$id": "175", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2444,10 +2585,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.bar", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "176", + "kind": "method", + "name": "bar", + "serializedName": "bar", + "type": { + "$id": "177", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.bar", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "172", + "$id": "178", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -2460,7 +2624,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.accept" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.accept", + "methodParameterSegments": [ + { + "$id": "179", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2490,84 +2673,16 @@ }, "parameters": [ { - "$id": "173", - "kind": "method", - "name": "token", - "serializedName": "token", - "type": { - "$id": "174", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.token", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "168" }, { - "$id": "175", - "kind": "method", - "name": "foo", - "serializedName": "foo", - "type": { - "$id": "176", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.foo", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "172" }, { - "$id": "177", - "kind": "method", - "name": "bar", - "serializedName": "bar", - "type": { - "$id": "178", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.bar", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "176" }, { - "$id": "179", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryNestedResponseBody.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "179" } ], "response": { @@ -2631,15 +2746,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.token" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.token", + "methodParameterSegments": [ + { + "$id": "184", + "kind": "method", + "name": "token", + "serializedName": "token", + "type": { + "$id": "185", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.token", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "184", + "$id": "186", "kind": "header", "name": "foo", "serializedName": "foo", "type": { - "$id": "185", + "$id": "187", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2651,15 +2789,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.foo" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.foo", + "methodParameterSegments": [ + { + "$id": "188", + "kind": "method", + "name": "foo", + "serializedName": "foo", + "type": { + "$id": "189", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.foo", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "186", + "$id": "190", "kind": "query", "name": "bar", "serializedName": "bar", "type": { - "$id": "187", + "$id": "191", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2671,10 +2832,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.bar", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "192", + "kind": "method", + "name": "bar", + "serializedName": "bar", + "type": { + "$id": "193", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.bar", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "188", + "$id": "194", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -2687,7 +2871,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.accept" + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.accept", + "methodParameterSegments": [ + { + "$id": "195", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2717,84 +2920,16 @@ }, "parameters": [ { - "$id": "189", - "kind": "method", - "name": "token", - "serializedName": "token", - "type": { - "$id": "190", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.token", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "184" }, { - "$id": "191", - "kind": "method", - "name": "foo", - "serializedName": "foo", - "type": { - "$id": "192", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.foo", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "188" }, { - "$id": "193", - "kind": "method", - "name": "bar", - "serializedName": "bar", - "type": { - "$id": "194", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.bar", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "192" }, { - "$id": "195", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderNestedResponseBody.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "195" } ], "response": { @@ -2905,7 +3040,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithoutContinuation.accept" + "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithoutContinuation.accept", + "methodParameterSegments": [ + { + "$id": "203", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithoutContinuation.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2935,21 +3089,7 @@ }, "parameters": [ { - "$id": "203", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithoutContinuation.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "203" } ], "response": { @@ -3001,10 +3141,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithPageSize.pageSize", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "208", + "kind": "method", + "name": "pageSize", + "serializedName": "pageSize", + "type": { + "$id": "209", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithPageSize.pageSize", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "208", + "$id": "210", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -3017,7 +3180,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithPageSize.accept" + "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithPageSize.accept", + "methodParameterSegments": [ + { + "$id": "211", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithPageSize.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3047,42 +3229,10 @@ }, "parameters": [ { - "$id": "209", - "kind": "method", - "name": "pageSize", - "serializedName": "pageSize", - "type": { - "$id": "210", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithPageSize.pageSize", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "208" }, { - "$id": "211", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "21" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Payload.Pageable.PageSize.listWithPageSize.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "211" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json index 35bc92dce91..c8f8d765f2d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json @@ -127,7 +127,31 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired.parameter", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "11", + "kind": "method", + "name": "parameter", + "serializedName": "parameter", + "doc": "I am a required parameter", + "type": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired.parameter", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -151,26 +175,7 @@ }, "parameters": [ { - "$id": "11", - "kind": "method", - "name": "parameter", - "serializedName": "parameter", - "doc": "I am a required parameter", - "type": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired.parameter", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "11" } ], "response": {}, @@ -214,7 +219,31 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional.parameter", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "17", + "kind": "method", + "name": "parameter", + "serializedName": "parameter", + "doc": "I am an optional parameter", + "type": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional.parameter", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -238,26 +267,7 @@ }, "parameters": [ { - "$id": "17", - "kind": "method", - "name": "parameter", - "serializedName": "parameter", - "doc": "I am an optional parameter", - "type": { - "$id": "18", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional.parameter", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "17" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json index d3d412f4ffa..23f33f2848b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json @@ -143,7 +143,31 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone.new-parameter", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "12", + "kind": "method", + "name": "new-parameter", + "serializedName": "new-parameter", + "doc": "I'm a new input optional parameter", + "type": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone.new-parameter", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -167,26 +191,7 @@ }, "parameters": [ { - "$id": "12", - "kind": "method", - "name": "new-parameter", - "serializedName": "new-parameter", - "doc": "I'm a new input optional parameter", - "type": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone.new-parameter", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "12" } ], "response": {}, @@ -231,16 +236,40 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired.parameter", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "18", + "kind": "method", + "name": "parameter", + "serializedName": "parameter", + "doc": "I am a required parameter", + "type": { + "$id": "19", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired.parameter", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "18", + "$id": "20", "kind": "query", "name": "new-parameter", "serializedName": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "19", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -252,7 +281,31 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired.new-parameter", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "22", + "kind": "method", + "name": "new-parameter", + "serializedName": "new-parameter", + "doc": "I'm a new input optional parameter", + "type": { + "$id": "23", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired.new-parameter", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -276,48 +329,10 @@ }, "parameters": [ { - "$id": "20", - "kind": "method", - "name": "parameter", - "serializedName": "parameter", - "doc": "I am a required parameter", - "type": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired.parameter", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "18" }, { - "$id": "22", - "kind": "method", - "name": "new-parameter", - "serializedName": "new-parameter", - "doc": "I'm a new input optional parameter", - "type": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired.new-parameter", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "22" } ], "response": {}, @@ -362,16 +377,40 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional.parameter", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "28", + "kind": "method", + "name": "parameter", + "serializedName": "parameter", + "doc": "I am an optional parameter", + "type": { + "$id": "29", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional.parameter", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "28", + "$id": "30", "kind": "query", "name": "new-parameter", "serializedName": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "29", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -383,7 +422,31 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional.new-parameter", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "32", + "kind": "method", + "name": "new-parameter", + "serializedName": "new-parameter", + "doc": "I'm a new input optional parameter", + "type": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional.new-parameter", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -407,48 +470,10 @@ }, "parameters": [ { - "$id": "30", - "kind": "method", - "name": "parameter", - "serializedName": "parameter", - "doc": "I am an optional parameter", - "type": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional.parameter", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "28" }, { - "$id": "32", - "kind": "method", - "name": "new-parameter", - "serializedName": "new-parameter", - "doc": "I'm a new input optional parameter", - "type": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneOptional.new-parameter", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "32" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json index 2ff6a987e8f..6ffd4eec8d4 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json @@ -127,7 +127,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.templateOnly.param" + "crossLanguageDefinitionId": "Routes.PathParameters.templateOnly.param", + "methodParameterSegments": [ + { + "$id": "12", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.templateOnly.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -151,25 +174,7 @@ }, "parameters": [ { - "$id": "12", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.templateOnly.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "12" } ], "response": {}, @@ -211,7 +216,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.explicit.param" + "crossLanguageDefinitionId": "Routes.PathParameters.explicit.param", + "methodParameterSegments": [ + { + "$id": "18", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "19", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.explicit.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -235,25 +263,7 @@ }, "parameters": [ { - "$id": "18", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "19", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.explicit.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "18" } ], "response": {}, @@ -295,7 +305,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.annotationOnly.param" + "crossLanguageDefinitionId": "Routes.PathParameters.annotationOnly.param", + "methodParameterSegments": [ + { + "$id": "24", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.annotationOnly.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -319,25 +352,7 @@ }, "parameters": [ { - "$id": "24", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.annotationOnly.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "24" } ], "response": {}, @@ -426,7 +441,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.template.param" + "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.template.param", + "methodParameterSegments": [ + { + "$id": "34", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "35", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.template.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -450,25 +488,7 @@ }, "parameters": [ { - "$id": "34", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.template.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "34" } ], "response": {}, @@ -510,7 +530,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.annotation.param" + "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.annotation.param", + "methodParameterSegments": [ + { + "$id": "40", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "41", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.annotation.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -534,25 +577,7 @@ }, "parameters": [ { - "$id": "40", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.annotation.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "40" } ], "response": {}, @@ -688,7 +713,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.primitive.param" + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.primitive.param", + "methodParameterSegments": [ + { + "$id": "54", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "55", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.primitive.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -712,25 +760,7 @@ }, "parameters": [ { - "$id": "54", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.primitive.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "54" } ], "response": {}, @@ -779,7 +809,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array.param" + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array.param", + "methodParameterSegments": [ + { + "$id": "61", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "59" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -803,21 +852,7 @@ }, "parameters": [ { - "$id": "61", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "59" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "61" } ], "response": {}, @@ -871,7 +906,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.record.param" + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.record.param", + "methodParameterSegments": [ + { + "$id": "68", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "65" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.record.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -895,21 +949,7 @@ }, "parameters": [ { - "$id": "68", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "65" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.record.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "68" } ], "response": {}, @@ -999,7 +1039,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive.param" + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive.param", + "methodParameterSegments": [ + { + "$id": "77", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "78", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1023,25 +1086,7 @@ }, "parameters": [ { - "$id": "77", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "78", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "77" } ], "response": {}, @@ -1079,7 +1124,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array.param" + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array.param", + "methodParameterSegments": [ + { + "$id": "82", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "59" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1103,21 +1167,7 @@ }, "parameters": [ { - "$id": "82", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "59" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "82" } ], "response": {}, @@ -1155,7 +1205,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.record.param" + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.record.param", + "methodParameterSegments": [ + { + "$id": "86", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "65" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.record.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1179,21 +1248,7 @@ }, "parameters": [ { - "$id": "86", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "65" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.record.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "86" } ], "response": {}, @@ -1332,7 +1387,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive.param" + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive.param", + "methodParameterSegments": [ + { + "$id": "99", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1356,25 +1434,7 @@ }, "parameters": [ { - "$id": "99", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "100", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "99" } ], "response": {}, @@ -1412,7 +1472,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array.param" + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array.param", + "methodParameterSegments": [ + { + "$id": "104", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "59" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1436,21 +1515,7 @@ }, "parameters": [ { - "$id": "104", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "59" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "104" } ], "response": {}, @@ -1488,7 +1553,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.record.param" + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.record.param", + "methodParameterSegments": [ + { + "$id": "108", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "65" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.record.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1512,21 +1596,7 @@ }, "parameters": [ { - "$id": "108", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "65" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.record.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "108" } ], "response": {}, @@ -1616,7 +1686,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive.param" + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive.param", + "methodParameterSegments": [ + { + "$id": "117", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1640,25 +1733,7 @@ }, "parameters": [ { - "$id": "117", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "118", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "117" } ], "response": {}, @@ -1696,7 +1771,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array.param" + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array.param", + "methodParameterSegments": [ + { + "$id": "122", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "59" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1720,21 +1814,7 @@ }, "parameters": [ { - "$id": "122", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "59" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "122" } ], "response": {}, @@ -1772,7 +1852,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.record.param" + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.record.param", + "methodParameterSegments": [ + { + "$id": "126", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "65" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.record.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1796,21 +1895,7 @@ }, "parameters": [ { - "$id": "126", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "65" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.record.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "126" } ], "response": {}, @@ -1949,7 +2034,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive.param" + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive.param", + "methodParameterSegments": [ + { + "$id": "139", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1973,25 +2081,7 @@ }, "parameters": [ { - "$id": "139", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "139" } ], "response": {}, @@ -2029,7 +2119,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array.param" + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array.param", + "methodParameterSegments": [ + { + "$id": "144", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "59" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2053,21 +2162,7 @@ }, "parameters": [ { - "$id": "144", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "59" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "144" } ], "response": {}, @@ -2105,7 +2200,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.record.param" + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.record.param", + "methodParameterSegments": [ + { + "$id": "148", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "65" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.record.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2129,21 +2243,7 @@ }, "parameters": [ { - "$id": "148", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "65" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.record.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "148" } ], "response": {}, @@ -2233,7 +2333,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive.param" + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive.param", + "methodParameterSegments": [ + { + "$id": "157", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "158", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2257,25 +2380,7 @@ }, "parameters": [ { - "$id": "157", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "158", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "157" } ], "response": {}, @@ -2313,7 +2418,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array.param" + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array.param", + "methodParameterSegments": [ + { + "$id": "162", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "59" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2337,21 +2461,7 @@ }, "parameters": [ { - "$id": "162", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "59" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "162" } ], "response": {}, @@ -2389,7 +2499,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.record.param" + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.record.param", + "methodParameterSegments": [ + { + "$id": "166", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "65" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.record.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2413,21 +2542,7 @@ }, "parameters": [ { - "$id": "166", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "65" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.record.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "166" } ], "response": {}, @@ -2566,7 +2681,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive.param" + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive.param", + "methodParameterSegments": [ + { + "$id": "179", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "180", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2590,25 +2728,7 @@ }, "parameters": [ { - "$id": "179", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "180", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "179" } ], "response": {}, @@ -2646,7 +2766,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array.param" + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array.param", + "methodParameterSegments": [ + { + "$id": "184", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "59" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2670,21 +2809,7 @@ }, "parameters": [ { - "$id": "184", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "59" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "184" } ], "response": {}, @@ -2722,7 +2847,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record.param" + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record.param", + "methodParameterSegments": [ + { + "$id": "188", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "65" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2746,21 +2890,7 @@ }, "parameters": [ { - "$id": "188", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "65" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "188" } ], "response": {}, @@ -2850,7 +2980,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive.param" + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive.param", + "methodParameterSegments": [ + { + "$id": "197", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "198", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2874,25 +3027,7 @@ }, "parameters": [ { - "$id": "197", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "198", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "197" } ], "response": {}, @@ -2930,7 +3065,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array.param" + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array.param", + "methodParameterSegments": [ + { + "$id": "202", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "59" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2954,21 +3108,7 @@ }, "parameters": [ { - "$id": "202", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "59" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "202" } ], "response": {}, @@ -3006,7 +3146,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.record.param" + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.record.param", + "methodParameterSegments": [ + { + "$id": "206", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "65" + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.record.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3030,21 +3189,7 @@ }, "parameters": [ { - "$id": "206", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "65" - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.record.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "206" } ], "response": {}, @@ -3137,7 +3282,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.templateOnly.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "215", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "216", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.templateOnly.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3161,25 +3329,7 @@ }, "parameters": [ { - "$id": "215", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "216", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.templateOnly.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "215" } ], "response": {}, @@ -3218,7 +3368,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.explicit.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "221", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "222", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.explicit.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3242,25 +3415,7 @@ }, "parameters": [ { - "$id": "221", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "222", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.explicit.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "221" } ], "response": {}, @@ -3299,7 +3454,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.annotationOnly.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "227", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "228", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.annotationOnly.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3323,25 +3501,7 @@ }, "parameters": [ { - "$id": "227", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "228", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.annotationOnly.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "227" } ], "response": {}, @@ -3473,7 +3633,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.primitive.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "241", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "242", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.primitive.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3497,25 +3680,7 @@ }, "parameters": [ { - "$id": "241", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "242", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.primitive.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "241" } ], "response": {}, @@ -3550,7 +3715,26 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.array.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "246", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "59" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.array.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3574,21 +3758,7 @@ }, "parameters": [ { - "$id": "246", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "59" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.array.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "246" } ], "response": {}, @@ -3623,7 +3793,26 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.record.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "250", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "65" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.record.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3647,21 +3836,7 @@ }, "parameters": [ { - "$id": "250", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "65" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.record.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "250" } ], "response": {}, @@ -3748,7 +3923,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.primitive.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "259", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "260", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.primitive.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3772,25 +3970,7 @@ }, "parameters": [ { - "$id": "259", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "260", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.primitive.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "259" } ], "response": {}, @@ -3825,7 +4005,26 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "264", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "59" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3849,21 +4048,7 @@ }, "parameters": [ { - "$id": "264", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "59" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "264" } ], "response": {}, @@ -3898,7 +4083,26 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.record.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "268", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "65" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.record.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3922,21 +4126,7 @@ }, "parameters": [ { - "$id": "268", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "65" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.record.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "268" } ], "response": {}, @@ -4072,7 +4262,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "281", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "282", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4096,25 +4309,7 @@ }, "parameters": [ { - "$id": "281", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "282", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "281" } ], "response": {}, @@ -4149,7 +4344,26 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "286", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "59" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4173,21 +4387,7 @@ }, "parameters": [ { - "$id": "286", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "59" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "286" } ], "response": {}, @@ -4222,7 +4422,26 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.record.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "290", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "65" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.record.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4246,21 +4465,7 @@ }, "parameters": [ { - "$id": "290", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "65" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.record.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "290" } ], "response": {}, @@ -4347,7 +4552,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "299", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "300", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4371,25 +4599,7 @@ }, "parameters": [ { - "$id": "299", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "300", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "299" } ], "response": {}, @@ -4424,7 +4634,26 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "304", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "59" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4448,21 +4677,7 @@ }, "parameters": [ { - "$id": "304", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "59" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "304" } ], "response": {}, @@ -4497,7 +4712,26 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.record.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "308", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$ref": "65" + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.record.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4521,21 +4755,7 @@ }, "parameters": [ { - "$id": "308", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$ref": "65" - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.record.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "308" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json index 0d65fbcd241..e5913b8cadc 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json @@ -158,10 +158,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send.contentType" + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send.contentType", + "methodParameterSegments": [ + { + "$id": "16", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "16", + "$id": "17", "kind": "body", "name": "body", "serializedName": "body", @@ -177,7 +197,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send.body" + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send.body", + "methodParameterSegments": [ + { + "$id": "18", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "5" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -204,39 +243,10 @@ }, "parameters": [ { - "$id": "17", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "5" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "18" }, { - "$id": "18", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "16" } ], "response": {}, @@ -271,7 +281,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.get.accept" + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.get.accept", + "methodParameterSegments": [ + { + "$id": "22", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -301,21 +330,7 @@ }, "parameters": [ { - "$id": "22", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "22" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json index 7665b061685..5b35e3dfecf 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json @@ -124,7 +124,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Server.Path.Multiple.withOperationPathParam.keyword" + "crossLanguageDefinitionId": "Server.Path.Multiple.withOperationPathParam.keyword", + "methodParameterSegments": [ + { + "$id": "11", + "kind": "method", + "name": "keyword", + "serializedName": "keyword", + "type": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Server.Path.Multiple.withOperationPathParam.keyword", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -148,25 +171,7 @@ }, "parameters": [ { - "$id": "11", - "kind": "method", - "name": "keyword", - "serializedName": "keyword", - "type": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Server.Path.Multiple.withOperationPathParam.keyword", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "11" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json index 6c22fb5504c..848d63daa02 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json @@ -80,7 +80,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withQueryApiVersion.apiVersion", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "8", + "kind": "method", + "name": "apiVersion", + "serializedName": "api-version", + "type": { + "$id": "9", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withQueryApiVersion.apiVersion", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -104,25 +127,7 @@ }, "parameters": [ { - "$id": "8", - "kind": "method", - "name": "apiVersion", - "serializedName": "api-version", - "type": { - "$id": "9", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withQueryApiVersion.apiVersion", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "8" } ], "response": {}, @@ -164,7 +169,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withPathApiVersion.apiVersion" + "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withPathApiVersion.apiVersion", + "methodParameterSegments": [ + { + "$id": "14", + "kind": "method", + "name": "apiVersion", + "serializedName": "apiVersion", + "type": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withPathApiVersion.apiVersion", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -188,25 +216,7 @@ }, "parameters": [ { - "$id": "14", - "kind": "method", - "name": "apiVersion", - "serializedName": "apiVersion", - "type": { - "$id": "15", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Server.Versions.NotVersioned.withPathApiVersion.apiVersion", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "14" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json index 82c57e30027..14dfd018003 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json @@ -148,7 +148,39 @@ "scope": "Client", "decorators": [], "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryApiVersion.apiVersion", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "13", + "kind": "method", + "name": "apiVersion", + "serializedName": "apiVersion", + "type": { + "$id": "14", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "", + "isApiVersion": true, + "defaultValue": { + "type": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "2022-12-01-preview" + }, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryApiVersion.apiVersion", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -178,7 +210,7 @@ "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryApiVersion" }, { - "$id": "13", + "$id": "16", "kind": "basic", "name": "withPathApiVersion", "accessibility": "public", @@ -187,18 +219,18 @@ "2022-12-01-preview" ], "operation": { - "$id": "14", + "$id": "17", "name": "withPathApiVersion", "resourceName": "Versioned", "accessibility": "public", "parameters": [ { - "$id": "15", + "$id": "18", "kind": "path", "name": "apiVersion", "serializedName": "apiVersion", "type": { - "$id": "16", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -211,7 +243,7 @@ "skipUrlEncoding": false, "defaultValue": { "type": { - "$id": "17", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -222,7 +254,12 @@ "scope": "Client", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Server.Versions.Versioned.withPathApiVersion.apiVersion" + "crossLanguageDefinitionId": "Server.Versions.Versioned.withPathApiVersion.apiVersion", + "methodParameterSegments": [ + { + "$ref": "13" + } + ] } ], "responses": [ @@ -252,7 +289,7 @@ "crossLanguageDefinitionId": "Server.Versions.Versioned.withPathApiVersion" }, { - "$id": "18", + "$id": "21", "kind": "basic", "name": "withQueryOldApiVersion", "accessibility": "public", @@ -261,18 +298,18 @@ "2022-12-01-preview" ], "operation": { - "$id": "19", + "$id": "22", "name": "withQueryOldApiVersion", "resourceName": "Versioned", "accessibility": "public", "parameters": [ { - "$id": "20", + "$id": "23", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "type": { - "$id": "21", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -282,7 +319,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "22", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -293,7 +330,12 @@ "scope": "Client", "decorators": [], "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryOldApiVersion.apiVersion", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$ref": "13" + } + ] } ], "responses": [ @@ -325,13 +367,13 @@ ], "parameters": [ { - "$id": "23", + "$id": "26", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "24", + "$id": "27", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -346,34 +388,7 @@ "crossLanguageDefinitionId": "Server.Versions.Versioned.endpoint" }, { - "$id": "25", - "kind": "method", - "name": "apiVersion", - "serializedName": "apiVersion", - "type": { - "$id": "26", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "", - "isApiVersion": true, - "defaultValue": { - "type": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "2022-12-01-preview" - }, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryApiVersion.apiVersion", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "13" } ], "initializedBy": 1, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json index e0ac37b763e..3c5cb500508 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json @@ -45,7 +45,31 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfMatch.ifMatch" + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfMatch.ifMatch", + "methodParameterSegments": [ + { + "$id": "6", + "kind": "method", + "name": "ifMatch", + "serializedName": "If-Match", + "doc": "The request should only proceed if an entity matches this string.", + "type": { + "$id": "7", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfMatch.ifMatch", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -69,26 +93,7 @@ }, "parameters": [ { - "$id": "6", - "kind": "method", - "name": "ifMatch", - "serializedName": "If-Match", - "doc": "The request should only proceed if an entity matches this string.", - "type": { - "$id": "7", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfMatch.ifMatch", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "6" } ], "response": {}, @@ -130,7 +135,31 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfNoneMatch.ifNoneMatch" + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfNoneMatch.ifNoneMatch", + "methodParameterSegments": [ + { + "$id": "12", + "kind": "method", + "name": "ifNoneMatch", + "serializedName": "If-None-Match", + "doc": "The request should only proceed if no entity matches this string.", + "type": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfNoneMatch.ifNoneMatch", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -154,26 +183,7 @@ }, "parameters": [ { - "$id": "12", - "kind": "method", - "name": "ifNoneMatch", - "serializedName": "If-None-Match", - "doc": "The request should only proceed if no entity matches this string.", - "type": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfNoneMatch.ifNoneMatch", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "12" } ], "response": {}, @@ -223,7 +233,39 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.headIfModifiedSince.ifModifiedSince" + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.headIfModifiedSince.ifModifiedSince", + "methodParameterSegments": [ + { + "$id": "19", + "kind": "method", + "name": "ifModifiedSince", + "serializedName": "If-Modified-Since", + "doc": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", + "type": { + "$id": "20", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.headIfModifiedSince.ifModifiedSince", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -247,34 +289,7 @@ }, "parameters": [ { - "$id": "19", - "kind": "method", - "name": "ifModifiedSince", - "serializedName": "If-Modified-Since", - "doc": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nbeen modified since the specified time.", - "type": { - "$id": "20", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.headIfModifiedSince.ifModifiedSince", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "19" } ], "response": {}, @@ -324,7 +339,39 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfUnmodifiedSince.ifUnmodifiedSince" + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfUnmodifiedSince.ifUnmodifiedSince", + "methodParameterSegments": [ + { + "$id": "27", + "kind": "method", + "name": "ifUnmodifiedSince", + "serializedName": "If-Unmodified-Since", + "doc": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", + "type": { + "$id": "28", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "29", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfUnmodifiedSince.ifUnmodifiedSince", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -348,34 +395,7 @@ }, "parameters": [ { - "$id": "27", - "kind": "method", - "name": "ifUnmodifiedSince", - "serializedName": "If-Unmodified-Since", - "doc": "A timestamp indicating the last modified time of the resource known to the\nclient. The operation will be performed only if the resource on the service has\nnot been modified since the specified time.", - "type": { - "$id": "28", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.postIfUnmodifiedSince.ifUnmodifiedSince", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "27" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json index 77b5b5f9b5d..bf8222f35a3 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json @@ -91,20 +91,43 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess.repeatabilityRequestID" + "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess.repeatabilityRequestID", + "methodParameterSegments": [ + { + "$id": "10", + "kind": "method", + "name": "repeatabilityRequestID", + "serializedName": "Repeatability-Request-ID", + "type": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess.repeatabilityRequestID", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "10", + "$id": "12", "kind": "header", "name": "repeatabilityFirstSent", "serializedName": "Repeatability-First-Sent", "type": { - "$id": "11", + "$id": "13", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "12", + "$id": "14", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -119,7 +142,38 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess.repeatabilityFirstSent" + "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess.repeatabilityFirstSent", + "methodParameterSegments": [ + { + "$id": "15", + "kind": "method", + "name": "repeatabilityFirstSent", + "serializedName": "Repeatability-First-Sent", + "type": { + "$id": "16", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess.repeatabilityFirstSent", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -152,54 +206,10 @@ }, "parameters": [ { - "$id": "13", - "kind": "method", - "name": "repeatabilityRequestID", - "serializedName": "Repeatability-Request-ID", - "type": { - "$id": "14", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess.repeatabilityRequestID", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "10" }, { - "$id": "15", - "kind": "method", - "name": "repeatabilityFirstSent", - "serializedName": "Repeatability-First-Sent", - "type": { - "$id": "16", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "17", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess.repeatabilityFirstSent", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "15" } ], "response": {}, 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 1422540a9de..83d658dfa9c 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 @@ -2305,10 +2305,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withAnd.contentType" - }, - { - "$id": "202", + "crossLanguageDefinitionId": "SpecialWords.Models.withAnd.contentType", + "methodParameterSegments": [ + { + "$id": "202", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withAnd.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "203", "kind": "body", "name": "body", "serializedName": "body", @@ -2324,7 +2344,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withAnd.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withAnd.body", + "methodParameterSegments": [ + { + "$id": "204", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "71" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withAnd.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2351,39 +2390,10 @@ }, "parameters": [ { - "$id": "203", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "71" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withAnd.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "204" }, { - "$id": "204", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withAnd.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "202" } ], "response": {}, @@ -2419,10 +2429,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withAs.contentType" - }, - { - "$id": "208", + "crossLanguageDefinitionId": "SpecialWords.Models.withAs.contentType", + "methodParameterSegments": [ + { + "$id": "208", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withAs.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "209", "kind": "body", "name": "body", "serializedName": "body", @@ -2438,7 +2468,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withAs.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withAs.body", + "methodParameterSegments": [ + { + "$id": "210", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "74" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withAs.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2465,39 +2514,10 @@ }, "parameters": [ { - "$id": "209", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "74" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withAs.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "210" }, { - "$id": "210", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withAs.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "208" } ], "response": {}, @@ -2533,10 +2553,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withAssert.contentType" - }, - { - "$id": "214", + "crossLanguageDefinitionId": "SpecialWords.Models.withAssert.contentType", + "methodParameterSegments": [ + { + "$id": "214", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withAssert.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "215", "kind": "body", "name": "body", "serializedName": "body", @@ -2552,7 +2592,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withAssert.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withAssert.body", + "methodParameterSegments": [ + { + "$id": "216", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "77" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withAssert.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2579,39 +2638,10 @@ }, "parameters": [ { - "$id": "215", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "77" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withAssert.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "216" }, { - "$id": "216", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withAssert.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "214" } ], "response": {}, @@ -2647,10 +2677,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withAsync.contentType" - }, - { - "$id": "220", + "crossLanguageDefinitionId": "SpecialWords.Models.withAsync.contentType", + "methodParameterSegments": [ + { + "$id": "220", + "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": "SpecialWords.Models.withAsync.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "221", "kind": "body", "name": "body", "serializedName": "body", @@ -2666,7 +2716,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withAsync.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withAsync.body", + "methodParameterSegments": [ + { + "$id": "222", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "80" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withAsync.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2693,39 +2762,10 @@ }, "parameters": [ { - "$id": "221", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "80" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withAsync.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "222" }, { - "$id": "222", - "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": "SpecialWords.Models.withAsync.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "220" } ], "response": {}, @@ -2761,10 +2801,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withAwait.contentType" - }, - { - "$id": "226", + "crossLanguageDefinitionId": "SpecialWords.Models.withAwait.contentType", + "methodParameterSegments": [ + { + "$id": "226", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withAwait.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "227", "kind": "body", "name": "body", "serializedName": "body", @@ -2780,7 +2840,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withAwait.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withAwait.body", + "methodParameterSegments": [ + { + "$id": "228", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "83" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withAwait.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2807,39 +2886,10 @@ }, "parameters": [ { - "$id": "227", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "83" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withAwait.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "228" }, { - "$id": "228", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withAwait.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "226" } ], "response": {}, @@ -2875,10 +2925,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withBreak.contentType" - }, - { - "$id": "232", + "crossLanguageDefinitionId": "SpecialWords.Models.withBreak.contentType", + "methodParameterSegments": [ + { + "$id": "232", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withBreak.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "233", "kind": "body", "name": "body", "serializedName": "body", @@ -2894,7 +2964,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withBreak.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withBreak.body", + "methodParameterSegments": [ + { + "$id": "234", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "86" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withBreak.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2921,39 +3010,10 @@ }, "parameters": [ { - "$id": "233", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "86" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withBreak.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "234" }, { - "$id": "234", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withBreak.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "232" } ], "response": {}, @@ -2989,10 +3049,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withClass.contentType" - }, - { - "$id": "238", + "crossLanguageDefinitionId": "SpecialWords.Models.withClass.contentType", + "methodParameterSegments": [ + { + "$id": "238", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withClass.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "239", "kind": "body", "name": "body", "serializedName": "body", @@ -3008,7 +3088,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withClass.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withClass.body", + "methodParameterSegments": [ + { + "$id": "240", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "89" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withClass.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3035,39 +3134,10 @@ }, "parameters": [ { - "$id": "239", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "89" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withClass.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "240" }, { - "$id": "240", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withClass.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "238" } ], "response": {}, @@ -3103,10 +3173,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor.contentType" - }, - { - "$id": "244", + "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor.contentType", + "methodParameterSegments": [ + { + "$id": "244", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "245", "kind": "body", "name": "body", "serializedName": "body", @@ -3122,7 +3212,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor.body", + "methodParameterSegments": [ + { + "$id": "246", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "92" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3149,39 +3258,10 @@ }, "parameters": [ { - "$id": "245", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "92" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "246" }, { - "$id": "246", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "244" } ], "response": {}, @@ -3217,10 +3297,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withContinue.contentType" - }, - { - "$id": "250", + "crossLanguageDefinitionId": "SpecialWords.Models.withContinue.contentType", + "methodParameterSegments": [ + { + "$id": "250", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withContinue.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "251", "kind": "body", "name": "body", "serializedName": "body", @@ -3236,7 +3336,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withContinue.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withContinue.body", + "methodParameterSegments": [ + { + "$id": "252", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "95" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withContinue.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3263,39 +3382,10 @@ }, "parameters": [ { - "$id": "251", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "95" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withContinue.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "252" }, { - "$id": "252", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withContinue.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "250" } ], "response": {}, @@ -3331,10 +3421,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withDef.contentType" - }, - { - "$id": "256", + "crossLanguageDefinitionId": "SpecialWords.Models.withDef.contentType", + "methodParameterSegments": [ + { + "$id": "256", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withDef.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "257", "kind": "body", "name": "body", "serializedName": "body", @@ -3350,7 +3460,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withDef.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withDef.body", + "methodParameterSegments": [ + { + "$id": "258", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "98" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withDef.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3377,39 +3506,10 @@ }, "parameters": [ { - "$id": "257", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "98" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withDef.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "258" }, { - "$id": "258", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withDef.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "256" } ], "response": {}, @@ -3445,10 +3545,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withDel.contentType" - }, - { - "$id": "262", + "crossLanguageDefinitionId": "SpecialWords.Models.withDel.contentType", + "methodParameterSegments": [ + { + "$id": "262", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withDel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "263", "kind": "body", "name": "body", "serializedName": "body", @@ -3464,7 +3584,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withDel.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withDel.body", + "methodParameterSegments": [ + { + "$id": "264", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "101" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withDel.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3491,39 +3630,10 @@ }, "parameters": [ { - "$id": "263", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "101" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withDel.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "264" }, { - "$id": "264", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "21" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withDel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "262" } ], "response": {}, @@ -3559,10 +3669,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withElif.contentType" - }, - { - "$id": "268", + "crossLanguageDefinitionId": "SpecialWords.Models.withElif.contentType", + "methodParameterSegments": [ + { + "$id": "268", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withElif.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "269", "kind": "body", "name": "body", "serializedName": "body", @@ -3578,7 +3708,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withElif.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withElif.body", + "methodParameterSegments": [ + { + "$id": "270", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "104" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withElif.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3605,39 +3754,10 @@ }, "parameters": [ { - "$id": "269", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "104" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withElif.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "270" }, { - "$id": "270", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "23" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withElif.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "268" } ], "response": {}, @@ -3673,10 +3793,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withElse.contentType" - }, - { - "$id": "274", + "crossLanguageDefinitionId": "SpecialWords.Models.withElse.contentType", + "methodParameterSegments": [ + { + "$id": "274", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withElse.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "275", "kind": "body", "name": "body", "serializedName": "body", @@ -3692,7 +3832,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withElse.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withElse.body", + "methodParameterSegments": [ + { + "$id": "276", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "107" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withElse.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3719,39 +3878,10 @@ }, "parameters": [ { - "$id": "275", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "107" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withElse.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "276" }, { - "$id": "276", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "25" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withElse.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "274" } ], "response": {}, @@ -3787,10 +3917,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withExcept.contentType" - }, - { - "$id": "280", + "crossLanguageDefinitionId": "SpecialWords.Models.withExcept.contentType", + "methodParameterSegments": [ + { + "$id": "280", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withExcept.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "281", "kind": "body", "name": "body", "serializedName": "body", @@ -3806,7 +3956,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withExcept.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withExcept.body", + "methodParameterSegments": [ + { + "$id": "282", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "110" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withExcept.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3833,39 +4002,10 @@ }, "parameters": [ { - "$id": "281", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "110" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withExcept.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "282" }, { - "$id": "282", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "27" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withExcept.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "280" } ], "response": {}, @@ -3901,10 +4041,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withExec.contentType" - }, - { - "$id": "286", + "crossLanguageDefinitionId": "SpecialWords.Models.withExec.contentType", + "methodParameterSegments": [ + { + "$id": "286", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withExec.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "287", "kind": "body", "name": "body", "serializedName": "body", @@ -3920,7 +4080,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withExec.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withExec.body", + "methodParameterSegments": [ + { + "$id": "288", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "113" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withExec.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3947,39 +4126,10 @@ }, "parameters": [ { - "$id": "287", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "113" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withExec.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "288" }, { - "$id": "288", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "29" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withExec.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "286" } ], "response": {}, @@ -4015,10 +4165,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withFinally.contentType" - }, - { - "$id": "292", + "crossLanguageDefinitionId": "SpecialWords.Models.withFinally.contentType", + "methodParameterSegments": [ + { + "$id": "292", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withFinally.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "293", "kind": "body", "name": "body", "serializedName": "body", @@ -4034,7 +4204,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withFinally.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withFinally.body", + "methodParameterSegments": [ + { + "$id": "294", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "116" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withFinally.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4061,39 +4250,10 @@ }, "parameters": [ { - "$id": "293", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "116" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withFinally.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "294" }, { - "$id": "294", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "31" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withFinally.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "292" } ], "response": {}, @@ -4129,10 +4289,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withFor.contentType" - }, - { - "$id": "298", + "crossLanguageDefinitionId": "SpecialWords.Models.withFor.contentType", + "methodParameterSegments": [ + { + "$id": "298", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withFor.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "299", "kind": "body", "name": "body", "serializedName": "body", @@ -4148,7 +4328,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withFor.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withFor.body", + "methodParameterSegments": [ + { + "$id": "300", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "119" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withFor.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4175,39 +4374,10 @@ }, "parameters": [ { - "$id": "299", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "119" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withFor.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "300" }, { - "$id": "300", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "33" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withFor.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "298" } ], "response": {}, @@ -4243,10 +4413,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withFrom.contentType" - }, - { - "$id": "304", + "crossLanguageDefinitionId": "SpecialWords.Models.withFrom.contentType", + "methodParameterSegments": [ + { + "$id": "304", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withFrom.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "305", "kind": "body", "name": "body", "serializedName": "body", @@ -4262,7 +4452,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withFrom.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withFrom.body", + "methodParameterSegments": [ + { + "$id": "306", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "122" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withFrom.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4289,39 +4498,10 @@ }, "parameters": [ { - "$id": "305", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "122" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withFrom.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "306" }, { - "$id": "306", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "35" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withFrom.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "304" } ], "response": {}, @@ -4357,10 +4537,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal.contentType" - }, - { - "$id": "310", + "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal.contentType", + "methodParameterSegments": [ + { + "$id": "310", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "311", "kind": "body", "name": "body", "serializedName": "body", @@ -4376,7 +4576,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal.body", + "methodParameterSegments": [ + { + "$id": "312", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "125" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4403,39 +4622,10 @@ }, "parameters": [ { - "$id": "311", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "125" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "312" }, { - "$id": "312", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "37" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "310" } ], "response": {}, @@ -4471,10 +4661,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withIf.contentType" - }, - { - "$id": "316", + "crossLanguageDefinitionId": "SpecialWords.Models.withIf.contentType", + "methodParameterSegments": [ + { + "$id": "316", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withIf.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "317", "kind": "body", "name": "body", "serializedName": "body", @@ -4490,7 +4700,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withIf.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withIf.body", + "methodParameterSegments": [ + { + "$id": "318", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "128" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withIf.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4517,39 +4746,10 @@ }, "parameters": [ { - "$id": "317", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "128" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withIf.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "318" }, { - "$id": "318", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "39" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withIf.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "316" } ], "response": {}, @@ -4585,10 +4785,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withImport.contentType" - }, - { - "$id": "322", + "crossLanguageDefinitionId": "SpecialWords.Models.withImport.contentType", + "methodParameterSegments": [ + { + "$id": "322", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withImport.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "323", "kind": "body", "name": "body", "serializedName": "body", @@ -4604,7 +4824,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withImport.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withImport.body", + "methodParameterSegments": [ + { + "$id": "324", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "131" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withImport.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4631,39 +4870,10 @@ }, "parameters": [ { - "$id": "323", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "131" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withImport.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "324" }, { - "$id": "324", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "41" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withImport.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "322" } ], "response": {}, @@ -4699,10 +4909,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withIn.contentType" - }, - { - "$id": "328", + "crossLanguageDefinitionId": "SpecialWords.Models.withIn.contentType", + "methodParameterSegments": [ + { + "$id": "328", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withIn.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "329", "kind": "body", "name": "body", "serializedName": "body", @@ -4718,7 +4948,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withIn.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withIn.body", + "methodParameterSegments": [ + { + "$id": "330", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "134" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withIn.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4745,39 +4994,10 @@ }, "parameters": [ { - "$id": "329", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "134" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withIn.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "330" }, { - "$id": "330", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "43" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withIn.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "328" } ], "response": {}, @@ -4813,10 +5033,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withIs.contentType" - }, - { - "$id": "334", + "crossLanguageDefinitionId": "SpecialWords.Models.withIs.contentType", + "methodParameterSegments": [ + { + "$id": "334", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withIs.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "335", "kind": "body", "name": "body", "serializedName": "body", @@ -4832,7 +5072,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withIs.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withIs.body", + "methodParameterSegments": [ + { + "$id": "336", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "137" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withIs.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4859,39 +5118,10 @@ }, "parameters": [ { - "$id": "335", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "137" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withIs.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "336" }, { - "$id": "336", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "45" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withIs.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "334" } ], "response": {}, @@ -4927,10 +5157,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withLambda.contentType" - }, - { - "$id": "340", + "crossLanguageDefinitionId": "SpecialWords.Models.withLambda.contentType", + "methodParameterSegments": [ + { + "$id": "340", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withLambda.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "341", "kind": "body", "name": "body", "serializedName": "body", @@ -4946,7 +5196,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withLambda.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withLambda.body", + "methodParameterSegments": [ + { + "$id": "342", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "140" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withLambda.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4973,39 +5242,10 @@ }, "parameters": [ { - "$id": "341", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "140" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withLambda.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "342" }, { - "$id": "342", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "47" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withLambda.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "340" } ], "response": {}, @@ -5041,10 +5281,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withNot.contentType" - }, - { - "$id": "346", + "crossLanguageDefinitionId": "SpecialWords.Models.withNot.contentType", + "methodParameterSegments": [ + { + "$id": "346", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withNot.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "347", "kind": "body", "name": "body", "serializedName": "body", @@ -5060,7 +5320,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withNot.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withNot.body", + "methodParameterSegments": [ + { + "$id": "348", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "143" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withNot.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5087,39 +5366,10 @@ }, "parameters": [ { - "$id": "347", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "143" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withNot.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "348" }, { - "$id": "348", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "49" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withNot.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "346" } ], "response": {}, @@ -5155,10 +5405,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withOr.contentType" - }, - { - "$id": "352", + "crossLanguageDefinitionId": "SpecialWords.Models.withOr.contentType", + "methodParameterSegments": [ + { + "$id": "352", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withOr.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "353", "kind": "body", "name": "body", "serializedName": "body", @@ -5174,7 +5444,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withOr.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withOr.body", + "methodParameterSegments": [ + { + "$id": "354", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "146" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withOr.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5201,39 +5490,10 @@ }, "parameters": [ { - "$id": "353", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "146" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withOr.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "354" }, { - "$id": "354", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "51" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withOr.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "352" } ], "response": {}, @@ -5269,10 +5529,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withPass.contentType" - }, - { - "$id": "358", + "crossLanguageDefinitionId": "SpecialWords.Models.withPass.contentType", + "methodParameterSegments": [ + { + "$id": "358", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withPass.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "359", "kind": "body", "name": "body", "serializedName": "body", @@ -5288,7 +5568,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withPass.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withPass.body", + "methodParameterSegments": [ + { + "$id": "360", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "149" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withPass.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5315,39 +5614,10 @@ }, "parameters": [ { - "$id": "359", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "149" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withPass.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "360" }, { - "$id": "360", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "53" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withPass.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "358" } ], "response": {}, @@ -5383,10 +5653,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withRaise.contentType" - }, - { - "$id": "364", + "crossLanguageDefinitionId": "SpecialWords.Models.withRaise.contentType", + "methodParameterSegments": [ + { + "$id": "364", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withRaise.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "365", "kind": "body", "name": "body", "serializedName": "body", @@ -5402,7 +5692,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withRaise.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withRaise.body", + "methodParameterSegments": [ + { + "$id": "366", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "152" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withRaise.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5429,39 +5738,10 @@ }, "parameters": [ { - "$id": "365", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "152" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withRaise.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "366" }, { - "$id": "366", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "55" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withRaise.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "364" } ], "response": {}, @@ -5497,10 +5777,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withReturn.contentType" - }, - { - "$id": "370", + "crossLanguageDefinitionId": "SpecialWords.Models.withReturn.contentType", + "methodParameterSegments": [ + { + "$id": "370", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "57" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withReturn.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "371", "kind": "body", "name": "body", "serializedName": "body", @@ -5516,7 +5816,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withReturn.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withReturn.body", + "methodParameterSegments": [ + { + "$id": "372", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "155" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withReturn.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5543,39 +5862,10 @@ }, "parameters": [ { - "$id": "371", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "155" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withReturn.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "372" }, { - "$id": "372", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "57" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withReturn.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "370" } ], "response": {}, @@ -5611,10 +5901,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withTry.contentType" - }, - { - "$id": "376", + "crossLanguageDefinitionId": "SpecialWords.Models.withTry.contentType", + "methodParameterSegments": [ + { + "$id": "376", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "59" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withTry.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "377", "kind": "body", "name": "body", "serializedName": "body", @@ -5630,7 +5940,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withTry.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withTry.body", + "methodParameterSegments": [ + { + "$id": "378", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "158" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withTry.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5657,39 +5986,10 @@ }, "parameters": [ { - "$id": "377", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "158" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withTry.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "378" }, { - "$id": "378", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "59" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withTry.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "376" } ], "response": {}, @@ -5725,10 +6025,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withWhile.contentType" - }, - { - "$id": "382", + "crossLanguageDefinitionId": "SpecialWords.Models.withWhile.contentType", + "methodParameterSegments": [ + { + "$id": "382", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "61" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withWhile.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "383", "kind": "body", "name": "body", "serializedName": "body", @@ -5744,7 +6064,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withWhile.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withWhile.body", + "methodParameterSegments": [ + { + "$id": "384", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "161" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withWhile.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5771,39 +6110,10 @@ }, "parameters": [ { - "$id": "383", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "161" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withWhile.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "384" }, { - "$id": "384", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "61" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withWhile.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "382" } ], "response": {}, @@ -5839,10 +6149,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withWith.contentType" - }, - { - "$id": "388", + "crossLanguageDefinitionId": "SpecialWords.Models.withWith.contentType", + "methodParameterSegments": [ + { + "$id": "388", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "63" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withWith.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "389", "kind": "body", "name": "body", "serializedName": "body", @@ -5858,7 +6188,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withWith.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withWith.body", + "methodParameterSegments": [ + { + "$id": "390", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "164" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withWith.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5885,39 +6234,10 @@ }, "parameters": [ { - "$id": "389", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "164" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withWith.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "390" }, { - "$id": "390", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "63" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withWith.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "388" } ], "response": {}, @@ -5953,10 +6273,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models.withYield.contentType" - }, - { - "$id": "394", + "crossLanguageDefinitionId": "SpecialWords.Models.withYield.contentType", + "methodParameterSegments": [ + { + "$id": "394", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "65" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.Models.withYield.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "395", "kind": "body", "name": "body", "serializedName": "body", @@ -5972,7 +6312,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.Models.withYield.body" + "crossLanguageDefinitionId": "SpecialWords.Models.withYield.body", + "methodParameterSegments": [ + { + "$id": "396", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "167" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Models.withYield.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5999,39 +6358,10 @@ }, "parameters": [ { - "$id": "395", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "167" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Models.withYield.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "396" }, { - "$id": "396", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "65" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.Models.withYield.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "394" } ], "response": {}, @@ -6116,10 +6446,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel.contentType" - }, - { - "$id": "404", + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel.contentType", + "methodParameterSegments": [ + { + "$id": "404", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "67" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "405", "kind": "body", "name": "body", "serializedName": "body", @@ -6135,7 +6485,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel.body" + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel.body", + "methodParameterSegments": [ + { + "$id": "406", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "170" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6162,39 +6531,10 @@ }, "parameters": [ { - "$id": "405", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "170" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "406" }, { - "$id": "406", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "67" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "404" } ], "response": {}, @@ -6230,10 +6570,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.ModelProperties.dictMethods.contentType" - }, - { - "$id": "410", + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.dictMethods.contentType", + "methodParameterSegments": [ + { + "$id": "410", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "69" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.dictMethods.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] + }, + { + "$id": "411", "kind": "body", "name": "body", "serializedName": "body", @@ -6249,7 +6609,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "SpecialWords.ModelProperties.dictMethods.body" + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.dictMethods.body", + "methodParameterSegments": [ + { + "$id": "412", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "173" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.dictMethods.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6276,39 +6655,10 @@ }, "parameters": [ { - "$id": "411", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "173" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.ModelProperties.dictMethods.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "412" }, { - "$id": "412", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "69" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "SpecialWords.ModelProperties.dictMethods.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "410" } ], "response": {}, @@ -7699,7 +8049,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withAnd.and", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "491", + "kind": "method", + "name": "and", + "serializedName": "and", + "type": { + "$id": "492", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAnd.and", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7723,25 +8096,7 @@ }, "parameters": [ { - "$id": "491", - "kind": "method", - "name": "and", - "serializedName": "and", - "type": { - "$id": "492", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAnd.and", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "491" } ], "response": {}, @@ -7780,7 +8135,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withAs.as", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "497", + "kind": "method", + "name": "as", + "serializedName": "as", + "type": { + "$id": "498", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAs.as", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7804,25 +8182,7 @@ }, "parameters": [ { - "$id": "497", - "kind": "method", - "name": "as", - "serializedName": "as", - "type": { - "$id": "498", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAs.as", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "497" } ], "response": {}, @@ -7861,7 +8221,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withAssert.assert", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "503", + "kind": "method", + "name": "assert", + "serializedName": "assert", + "type": { + "$id": "504", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAssert.assert", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7885,25 +8268,7 @@ }, "parameters": [ { - "$id": "503", - "kind": "method", - "name": "assert", - "serializedName": "assert", - "type": { - "$id": "504", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAssert.assert", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "503" } ], "response": {}, @@ -7942,7 +8307,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withAsync.async", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "509", + "kind": "method", + "name": "async", + "serializedName": "async", + "type": { + "$id": "510", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAsync.async", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7966,25 +8354,7 @@ }, "parameters": [ { - "$id": "509", - "kind": "method", - "name": "async", - "serializedName": "async", - "type": { - "$id": "510", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAsync.async", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "509" } ], "response": {}, @@ -8023,7 +8393,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withAwait.await", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "515", + "kind": "method", + "name": "await", + "serializedName": "await", + "type": { + "$id": "516", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAwait.await", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8047,25 +8440,7 @@ }, "parameters": [ { - "$id": "515", - "kind": "method", - "name": "await", - "serializedName": "await", - "type": { - "$id": "516", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAwait.await", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "515" } ], "response": {}, @@ -8104,7 +8479,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withBreak.break", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "521", + "kind": "method", + "name": "break", + "serializedName": "break", + "type": { + "$id": "522", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withBreak.break", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8128,25 +8526,7 @@ }, "parameters": [ { - "$id": "521", - "kind": "method", - "name": "break", - "serializedName": "break", - "type": { - "$id": "522", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withBreak.break", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "521" } ], "response": {}, @@ -8185,7 +8565,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withClass.class", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "527", + "kind": "method", + "name": "class", + "serializedName": "class", + "type": { + "$id": "528", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withClass.class", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8209,25 +8612,7 @@ }, "parameters": [ { - "$id": "527", - "kind": "method", - "name": "class", - "serializedName": "class", - "type": { - "$id": "528", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withClass.class", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "527" } ], "response": {}, @@ -8266,7 +8651,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor.constructor", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "533", + "kind": "method", + "name": "constructor", + "serializedName": "constructor", + "type": { + "$id": "534", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor.constructor", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8290,25 +8698,7 @@ }, "parameters": [ { - "$id": "533", - "kind": "method", - "name": "constructor", - "serializedName": "constructor", - "type": { - "$id": "534", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor.constructor", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "533" } ], "response": {}, @@ -8347,7 +8737,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withContinue.continue", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "539", + "kind": "method", + "name": "continue", + "serializedName": "continue", + "type": { + "$id": "540", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withContinue.continue", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8371,25 +8784,7 @@ }, "parameters": [ { - "$id": "539", - "kind": "method", - "name": "continue", - "serializedName": "continue", - "type": { - "$id": "540", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withContinue.continue", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "539" } ], "response": {}, @@ -8428,7 +8823,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withDef.def", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "545", + "kind": "method", + "name": "def", + "serializedName": "def", + "type": { + "$id": "546", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withDef.def", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8452,25 +8870,7 @@ }, "parameters": [ { - "$id": "545", - "kind": "method", - "name": "def", - "serializedName": "def", - "type": { - "$id": "546", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withDef.def", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "545" } ], "response": {}, @@ -8509,7 +8909,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withDel.del", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "551", + "kind": "method", + "name": "del", + "serializedName": "del", + "type": { + "$id": "552", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withDel.del", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8533,25 +8956,7 @@ }, "parameters": [ { - "$id": "551", - "kind": "method", - "name": "del", - "serializedName": "del", - "type": { - "$id": "552", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withDel.del", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "551" } ], "response": {}, @@ -8590,7 +8995,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withElif.elif", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "557", + "kind": "method", + "name": "elif", + "serializedName": "elif", + "type": { + "$id": "558", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withElif.elif", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8614,25 +9042,7 @@ }, "parameters": [ { - "$id": "557", - "kind": "method", - "name": "elif", - "serializedName": "elif", - "type": { - "$id": "558", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withElif.elif", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "557" } ], "response": {}, @@ -8671,7 +9081,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withElse.else", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "563", + "kind": "method", + "name": "else", + "serializedName": "else", + "type": { + "$id": "564", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withElse.else", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8695,25 +9128,7 @@ }, "parameters": [ { - "$id": "563", - "kind": "method", - "name": "else", - "serializedName": "else", - "type": { - "$id": "564", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withElse.else", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "563" } ], "response": {}, @@ -8752,7 +9167,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withExcept.except", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "569", + "kind": "method", + "name": "except", + "serializedName": "except", + "type": { + "$id": "570", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withExcept.except", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8776,25 +9214,7 @@ }, "parameters": [ { - "$id": "569", - "kind": "method", - "name": "except", - "serializedName": "except", - "type": { - "$id": "570", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withExcept.except", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "569" } ], "response": {}, @@ -8833,7 +9253,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withExec.exec", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "575", + "kind": "method", + "name": "exec", + "serializedName": "exec", + "type": { + "$id": "576", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withExec.exec", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8857,25 +9300,7 @@ }, "parameters": [ { - "$id": "575", - "kind": "method", - "name": "exec", - "serializedName": "exec", - "type": { - "$id": "576", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withExec.exec", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "575" } ], "response": {}, @@ -8914,7 +9339,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withFinally.finally", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "581", + "kind": "method", + "name": "finally", + "serializedName": "finally", + "type": { + "$id": "582", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withFinally.finally", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8938,25 +9386,7 @@ }, "parameters": [ { - "$id": "581", - "kind": "method", - "name": "finally", - "serializedName": "finally", - "type": { - "$id": "582", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withFinally.finally", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "581" } ], "response": {}, @@ -8995,7 +9425,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withFor.for", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "587", + "kind": "method", + "name": "for", + "serializedName": "for", + "type": { + "$id": "588", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withFor.for", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9019,25 +9472,7 @@ }, "parameters": [ { - "$id": "587", - "kind": "method", - "name": "for", - "serializedName": "for", - "type": { - "$id": "588", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withFor.for", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "587" } ], "response": {}, @@ -9076,7 +9511,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withFrom.from", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "593", + "kind": "method", + "name": "from", + "serializedName": "from", + "type": { + "$id": "594", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withFrom.from", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9100,25 +9558,7 @@ }, "parameters": [ { - "$id": "593", - "kind": "method", - "name": "from", - "serializedName": "from", - "type": { - "$id": "594", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withFrom.from", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "593" } ], "response": {}, @@ -9157,7 +9597,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withGlobal.global", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "599", + "kind": "method", + "name": "global", + "serializedName": "global", + "type": { + "$id": "600", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withGlobal.global", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9181,25 +9644,7 @@ }, "parameters": [ { - "$id": "599", - "kind": "method", - "name": "global", - "serializedName": "global", - "type": { - "$id": "600", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withGlobal.global", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "599" } ], "response": {}, @@ -9238,7 +9683,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withIf.if", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "605", + "kind": "method", + "name": "if", + "serializedName": "if", + "type": { + "$id": "606", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withIf.if", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9262,25 +9730,7 @@ }, "parameters": [ { - "$id": "605", - "kind": "method", - "name": "if", - "serializedName": "if", - "type": { - "$id": "606", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withIf.if", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "605" } ], "response": {}, @@ -9319,7 +9769,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withImport.import", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "611", + "kind": "method", + "name": "import", + "serializedName": "import", + "type": { + "$id": "612", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withImport.import", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9343,25 +9816,7 @@ }, "parameters": [ { - "$id": "611", - "kind": "method", - "name": "import", - "serializedName": "import", - "type": { - "$id": "612", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withImport.import", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "611" } ], "response": {}, @@ -9400,7 +9855,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withIn.in", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "617", + "kind": "method", + "name": "in", + "serializedName": "in", + "type": { + "$id": "618", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withIn.in", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9424,25 +9902,7 @@ }, "parameters": [ { - "$id": "617", - "kind": "method", - "name": "in", - "serializedName": "in", - "type": { - "$id": "618", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withIn.in", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "617" } ], "response": {}, @@ -9481,7 +9941,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withIs.is", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "623", + "kind": "method", + "name": "is", + "serializedName": "is", + "type": { + "$id": "624", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withIs.is", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9505,25 +9988,7 @@ }, "parameters": [ { - "$id": "623", - "kind": "method", - "name": "is", - "serializedName": "is", - "type": { - "$id": "624", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withIs.is", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "623" } ], "response": {}, @@ -9562,7 +10027,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withLambda.lambda", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "629", + "kind": "method", + "name": "lambda", + "serializedName": "lambda", + "type": { + "$id": "630", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withLambda.lambda", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9586,25 +10074,7 @@ }, "parameters": [ { - "$id": "629", - "kind": "method", - "name": "lambda", - "serializedName": "lambda", - "type": { - "$id": "630", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withLambda.lambda", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "629" } ], "response": {}, @@ -9643,7 +10113,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withNot.not", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "635", + "kind": "method", + "name": "not", + "serializedName": "not", + "type": { + "$id": "636", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withNot.not", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9667,25 +10160,7 @@ }, "parameters": [ { - "$id": "635", - "kind": "method", - "name": "not", - "serializedName": "not", - "type": { - "$id": "636", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withNot.not", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "635" } ], "response": {}, @@ -9724,7 +10199,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withOr.or", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "641", + "kind": "method", + "name": "or", + "serializedName": "or", + "type": { + "$id": "642", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withOr.or", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9748,25 +10246,7 @@ }, "parameters": [ { - "$id": "641", - "kind": "method", - "name": "or", - "serializedName": "or", - "type": { - "$id": "642", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withOr.or", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "641" } ], "response": {}, @@ -9805,7 +10285,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withPass.pass", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "647", + "kind": "method", + "name": "pass", + "serializedName": "pass", + "type": { + "$id": "648", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withPass.pass", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9829,25 +10332,7 @@ }, "parameters": [ { - "$id": "647", - "kind": "method", - "name": "pass", - "serializedName": "pass", - "type": { - "$id": "648", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withPass.pass", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "647" } ], "response": {}, @@ -9886,7 +10371,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withRaise.raise", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "653", + "kind": "method", + "name": "raise", + "serializedName": "raise", + "type": { + "$id": "654", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withRaise.raise", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9910,25 +10418,7 @@ }, "parameters": [ { - "$id": "653", - "kind": "method", - "name": "raise", - "serializedName": "raise", - "type": { - "$id": "654", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withRaise.raise", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "653" } ], "response": {}, @@ -9967,7 +10457,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withReturn.return", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "659", + "kind": "method", + "name": "return", + "serializedName": "return", + "type": { + "$id": "660", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withReturn.return", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9991,25 +10504,7 @@ }, "parameters": [ { - "$id": "659", - "kind": "method", - "name": "return", - "serializedName": "return", - "type": { - "$id": "660", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withReturn.return", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "659" } ], "response": {}, @@ -10048,7 +10543,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withTry.try", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "665", + "kind": "method", + "name": "try", + "serializedName": "try", + "type": { + "$id": "666", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withTry.try", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10072,25 +10590,7 @@ }, "parameters": [ { - "$id": "665", - "kind": "method", - "name": "try", - "serializedName": "try", - "type": { - "$id": "666", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withTry.try", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "665" } ], "response": {}, @@ -10129,7 +10629,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withWhile.while", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "671", + "kind": "method", + "name": "while", + "serializedName": "while", + "type": { + "$id": "672", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withWhile.while", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10153,25 +10676,7 @@ }, "parameters": [ { - "$id": "671", - "kind": "method", - "name": "while", - "serializedName": "while", - "type": { - "$id": "672", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withWhile.while", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "671" } ], "response": {}, @@ -10210,7 +10715,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withWith.with", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "677", + "kind": "method", + "name": "with", + "serializedName": "with", + "type": { + "$id": "678", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withWith.with", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10234,25 +10762,7 @@ }, "parameters": [ { - "$id": "677", - "kind": "method", - "name": "with", - "serializedName": "with", - "type": { - "$id": "678", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withWith.with", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "677" } ], "response": {}, @@ -10291,7 +10801,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withYield.yield", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "683", + "kind": "method", + "name": "yield", + "serializedName": "yield", + "type": { + "$id": "684", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withYield.yield", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10315,25 +10848,7 @@ }, "parameters": [ { - "$id": "683", - "kind": "method", - "name": "yield", - "serializedName": "yield", - "type": { - "$id": "684", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withYield.yield", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "683" } ], "response": {}, @@ -10372,7 +10887,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "SpecialWords.Parameters.withCancellationToken.cancellationToken", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "689", + "kind": "method", + "name": "cancellationToken", + "serializedName": "cancellationToken", + "type": { + "$id": "690", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "SpecialWords.Parameters.withCancellationToken.cancellationToken", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10396,25 +10934,7 @@ }, "parameters": [ { - "$id": "689", - "kind": "method", - "name": "cancellationToken", - "serializedName": "cancellationToken", - "type": { - "$id": "690", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "SpecialWords.Parameters.withCancellationToken.cancellationToken", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "689" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json index af8ed45b7da..64ede2f251a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json @@ -603,7 +603,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.Int32Value.get.accept" + "crossLanguageDefinitionId": "Type.Array.Int32Value.get.accept", + "methodParameterSegments": [ + { + "$id": "70", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.Int32Value.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -612,11 +631,11 @@ 200 ], "bodyType": { - "$id": "70", + "$id": "71", "kind": "array", "name": "Array", "valueType": { - "$id": "71", + "$id": "72", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -644,26 +663,12 @@ }, "parameters": [ { - "$id": "72", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.Int32Value.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "70" } ], "response": { "type": { - "$ref": "70" + "$ref": "71" } }, "isOverride": false, @@ -698,15 +703,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.Int32Value.put.contentType" + "crossLanguageDefinitionId": "Type.Array.Int32Value.put.contentType", + "methodParameterSegments": [ + { + "$id": "76", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.Int32Value.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "76", + "$id": "77", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "70" + "$ref": "71" }, "isApiVersion": false, "contentTypes": [ @@ -717,7 +742,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Array.Int32Value.put.body" + "crossLanguageDefinitionId": "Type.Array.Int32Value.put.body", + "methodParameterSegments": [ + { + "$id": "78", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "71" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Array.Int32Value.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -744,39 +788,10 @@ }, "parameters": [ { - "$id": "77", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "70" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Array.Int32Value.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "78" }, { - "$id": "78", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.Int32Value.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "76" } ], "response": {}, @@ -860,7 +875,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.Int64Value.get.accept" + "crossLanguageDefinitionId": "Type.Array.Int64Value.get.accept", + "methodParameterSegments": [ + { + "$id": "86", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.Int64Value.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -869,11 +903,11 @@ 200 ], "bodyType": { - "$id": "86", + "$id": "87", "kind": "array", "name": "Array1", "valueType": { - "$id": "87", + "$id": "88", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -901,26 +935,12 @@ }, "parameters": [ { - "$id": "88", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.Int64Value.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "86" } ], "response": { "type": { - "$ref": "86" + "$ref": "87" } }, "isOverride": false, @@ -955,15 +975,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.Int64Value.put.contentType" + "crossLanguageDefinitionId": "Type.Array.Int64Value.put.contentType", + "methodParameterSegments": [ + { + "$id": "92", + "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": "Type.Array.Int64Value.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "92", + "$id": "93", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "86" + "$ref": "87" }, "isApiVersion": false, "contentTypes": [ @@ -974,7 +1014,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Array.Int64Value.put.body" + "crossLanguageDefinitionId": "Type.Array.Int64Value.put.body", + "methodParameterSegments": [ + { + "$id": "94", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "87" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Array.Int64Value.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1001,39 +1060,10 @@ }, "parameters": [ { - "$id": "93", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "86" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Array.Int64Value.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "94" }, { - "$id": "94", - "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": "Type.Array.Int64Value.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "92" } ], "response": {}, @@ -1117,7 +1147,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.BooleanValue.get.accept" + "crossLanguageDefinitionId": "Type.Array.BooleanValue.get.accept", + "methodParameterSegments": [ + { + "$id": "102", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.BooleanValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1126,11 +1175,11 @@ 200 ], "bodyType": { - "$id": "102", + "$id": "103", "kind": "array", "name": "Array2", "valueType": { - "$id": "103", + "$id": "104", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1158,26 +1207,12 @@ }, "parameters": [ { - "$id": "104", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.BooleanValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "102" } ], "response": { "type": { - "$ref": "102" + "$ref": "103" } }, "isOverride": false, @@ -1212,15 +1247,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.BooleanValue.put.contentType" + "crossLanguageDefinitionId": "Type.Array.BooleanValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "108", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.BooleanValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "108", + "$id": "109", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "102" + "$ref": "103" }, "isApiVersion": false, "contentTypes": [ @@ -1231,7 +1286,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Array.BooleanValue.put.body" + "crossLanguageDefinitionId": "Type.Array.BooleanValue.put.body", + "methodParameterSegments": [ + { + "$id": "110", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "103" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Array.BooleanValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1258,39 +1332,10 @@ }, "parameters": [ { - "$id": "109", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "102" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Array.BooleanValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "110" }, { - "$id": "110", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.BooleanValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "108" } ], "response": {}, @@ -1374,7 +1419,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.StringValue.get.accept" + "crossLanguageDefinitionId": "Type.Array.StringValue.get.accept", + "methodParameterSegments": [ + { + "$id": "118", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.StringValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1383,11 +1447,11 @@ 200 ], "bodyType": { - "$id": "118", + "$id": "119", "kind": "array", "name": "Array3", "valueType": { - "$id": "119", + "$id": "120", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1415,26 +1479,12 @@ }, "parameters": [ { - "$id": "120", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.StringValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "118" } ], "response": { "type": { - "$ref": "118" + "$ref": "119" } }, "isOverride": false, @@ -1469,15 +1519,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.StringValue.put.contentType" + "crossLanguageDefinitionId": "Type.Array.StringValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "124", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.StringValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "124", + "$id": "125", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "118" + "$ref": "119" }, "isApiVersion": false, "contentTypes": [ @@ -1488,7 +1558,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Array.StringValue.put.body" + "crossLanguageDefinitionId": "Type.Array.StringValue.put.body", + "methodParameterSegments": [ + { + "$id": "126", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "119" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Array.StringValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1515,39 +1604,10 @@ }, "parameters": [ { - "$id": "125", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "118" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Array.StringValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "126" }, { - "$id": "126", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.StringValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "124" } ], "response": {}, @@ -1631,7 +1691,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.Float32Value.get.accept" + "crossLanguageDefinitionId": "Type.Array.Float32Value.get.accept", + "methodParameterSegments": [ + { + "$id": "134", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.Float32Value.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1640,11 +1719,11 @@ 200 ], "bodyType": { - "$id": "134", + "$id": "135", "kind": "array", "name": "Array4", "valueType": { - "$id": "135", + "$id": "136", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1672,26 +1751,12 @@ }, "parameters": [ { - "$id": "136", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.Float32Value.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "134" } ], "response": { "type": { - "$ref": "134" + "$ref": "135" } }, "isOverride": false, @@ -1726,15 +1791,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.Float32Value.put.contentType" + "crossLanguageDefinitionId": "Type.Array.Float32Value.put.contentType", + "methodParameterSegments": [ + { + "$id": "140", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.Float32Value.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "140", + "$id": "141", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "134" + "$ref": "135" }, "isApiVersion": false, "contentTypes": [ @@ -1745,7 +1830,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Array.Float32Value.put.body" + "crossLanguageDefinitionId": "Type.Array.Float32Value.put.body", + "methodParameterSegments": [ + { + "$id": "142", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "135" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Array.Float32Value.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1772,39 +1876,10 @@ }, "parameters": [ { - "$id": "141", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "134" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Array.Float32Value.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "142" }, { - "$id": "142", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.Float32Value.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "140" } ], "response": {}, @@ -1888,7 +1963,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.DatetimeValue.get.accept" + "crossLanguageDefinitionId": "Type.Array.DatetimeValue.get.accept", + "methodParameterSegments": [ + { + "$id": "150", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.DatetimeValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1897,16 +1991,16 @@ 200 ], "bodyType": { - "$id": "150", + "$id": "151", "kind": "array", "name": "Array5", "valueType": { - "$id": "151", + "$id": "152", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "152", + "$id": "153", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1937,26 +2031,12 @@ }, "parameters": [ { - "$id": "153", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "21" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.DatetimeValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "150" } ], "response": { "type": { - "$ref": "150" + "$ref": "151" } }, "isOverride": false, @@ -1991,15 +2071,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.DatetimeValue.put.contentType" + "crossLanguageDefinitionId": "Type.Array.DatetimeValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "157", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.DatetimeValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "157", + "$id": "158", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "150" + "$ref": "151" }, "isApiVersion": false, "contentTypes": [ @@ -2010,7 +2110,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Array.DatetimeValue.put.body" + "crossLanguageDefinitionId": "Type.Array.DatetimeValue.put.body", + "methodParameterSegments": [ + { + "$id": "159", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "151" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Array.DatetimeValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2037,39 +2156,10 @@ }, "parameters": [ { - "$id": "158", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "150" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Array.DatetimeValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "159" }, { - "$id": "159", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "23" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.DatetimeValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "157" } ], "response": {}, @@ -2153,7 +2243,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.DurationValue.get.accept" + "crossLanguageDefinitionId": "Type.Array.DurationValue.get.accept", + "methodParameterSegments": [ + { + "$id": "167", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.DurationValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2162,16 +2271,16 @@ 200 ], "bodyType": { - "$id": "167", + "$id": "168", "kind": "array", "name": "Array6", "valueType": { - "$id": "168", + "$id": "169", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "169", + "$id": "170", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2202,26 +2311,12 @@ }, "parameters": [ { - "$id": "170", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "25" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.DurationValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "167" } ], "response": { "type": { - "$ref": "167" + "$ref": "168" } }, "isOverride": false, @@ -2256,15 +2351,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.DurationValue.put.contentType" + "crossLanguageDefinitionId": "Type.Array.DurationValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "174", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.DurationValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "174", + "$id": "175", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "167" + "$ref": "168" }, "isApiVersion": false, "contentTypes": [ @@ -2275,7 +2390,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Array.DurationValue.put.body" + "crossLanguageDefinitionId": "Type.Array.DurationValue.put.body", + "methodParameterSegments": [ + { + "$id": "176", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "168" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Array.DurationValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2302,39 +2436,10 @@ }, "parameters": [ { - "$id": "175", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "167" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Array.DurationValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "176" }, { - "$id": "176", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "27" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.DurationValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "174" } ], "response": {}, @@ -2418,7 +2523,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.UnknownValue.get.accept" + "crossLanguageDefinitionId": "Type.Array.UnknownValue.get.accept", + "methodParameterSegments": [ + { + "$id": "184", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.UnknownValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2427,11 +2551,11 @@ 200 ], "bodyType": { - "$id": "184", + "$id": "185", "kind": "array", "name": "Array7", "valueType": { - "$id": "185", + "$id": "186", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2459,26 +2583,12 @@ }, "parameters": [ { - "$id": "186", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "29" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.UnknownValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "184" } ], "response": { "type": { - "$ref": "184" + "$ref": "185" } }, "isOverride": false, @@ -2513,15 +2623,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.UnknownValue.put.contentType" + "crossLanguageDefinitionId": "Type.Array.UnknownValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "190", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.UnknownValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "190", + "$id": "191", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "184" + "$ref": "185" }, "isApiVersion": false, "contentTypes": [ @@ -2532,7 +2662,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Array.UnknownValue.put.body" + "crossLanguageDefinitionId": "Type.Array.UnknownValue.put.body", + "methodParameterSegments": [ + { + "$id": "192", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "185" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Array.UnknownValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2559,39 +2708,10 @@ }, "parameters": [ { - "$id": "191", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "184" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Array.UnknownValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "192" }, { - "$id": "192", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "31" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.UnknownValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "190" } ], "response": {}, @@ -2675,7 +2795,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.ModelValue.get.accept" + "crossLanguageDefinitionId": "Type.Array.ModelValue.get.accept", + "methodParameterSegments": [ + { + "$id": "200", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.ModelValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2705,21 +2844,7 @@ }, "parameters": [ { - "$id": "200", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "33" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.ModelValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "200" } ], "response": { @@ -2759,10 +2884,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.ModelValue.put.contentType" + "crossLanguageDefinitionId": "Type.Array.ModelValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "204", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.ModelValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "204", + "$id": "205", "kind": "body", "name": "body", "serializedName": "body", @@ -2778,7 +2923,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Array.ModelValue.put.body" + "crossLanguageDefinitionId": "Type.Array.ModelValue.put.body", + "methodParameterSegments": [ + { + "$id": "206", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "61" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Array.ModelValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2805,39 +2969,10 @@ }, "parameters": [ { - "$id": "205", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "61" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Array.ModelValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "206" }, { - "$id": "206", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "35" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.ModelValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "204" } ], "response": {}, @@ -2921,7 +3056,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.get.accept" + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.get.accept", + "methodParameterSegments": [ + { + "$id": "214", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2930,14 +3084,14 @@ 200 ], "bodyType": { - "$id": "214", + "$id": "215", "kind": "array", "name": "Array8", "valueType": { - "$id": "215", + "$id": "216", "kind": "nullable", "type": { - "$id": "216", + "$id": "217", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -2967,26 +3121,12 @@ }, "parameters": [ { - "$id": "217", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "37" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "214" } ], "response": { "type": { - "$ref": "214" + "$ref": "215" } }, "isOverride": false, @@ -3021,15 +3161,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.put.contentType" + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "221", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "221", + "$id": "222", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "214" + "$ref": "215" }, "isApiVersion": false, "contentTypes": [ @@ -3040,7 +3200,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.put.body" + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.put.body", + "methodParameterSegments": [ + { + "$id": "223", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "215" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3067,39 +3246,10 @@ }, "parameters": [ { - "$id": "222", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "214" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "223" }, { - "$id": "223", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "39" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "221" } ], "response": {}, @@ -3183,7 +3333,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.get.accept" + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.get.accept", + "methodParameterSegments": [ + { + "$id": "231", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3192,14 +3361,14 @@ 200 ], "bodyType": { - "$id": "231", + "$id": "232", "kind": "array", "name": "Array9", "valueType": { - "$id": "232", + "$id": "233", "kind": "nullable", "type": { - "$id": "233", + "$id": "234", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -3229,26 +3398,12 @@ }, "parameters": [ { - "$id": "234", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "41" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "231" } ], "response": { "type": { - "$ref": "231" + "$ref": "232" } }, "isOverride": false, @@ -3283,15 +3438,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.put.contentType" + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.put.contentType", + "methodParameterSegments": [ + { + "$id": "238", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "238", + "$id": "239", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "231" + "$ref": "232" }, "isApiVersion": false, "contentTypes": [ @@ -3302,7 +3477,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.put.body" + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.put.body", + "methodParameterSegments": [ + { + "$id": "240", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "232" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3329,39 +3523,10 @@ }, "parameters": [ { - "$id": "239", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "231" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "240" }, { - "$id": "240", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "43" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "238" } ], "response": {}, @@ -3445,7 +3610,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get.accept" + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get.accept", + "methodParameterSegments": [ + { + "$id": "248", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3454,14 +3638,14 @@ 200 ], "bodyType": { - "$id": "248", + "$id": "249", "kind": "array", "name": "Array10", "valueType": { - "$id": "249", + "$id": "250", "kind": "nullable", "type": { - "$id": "250", + "$id": "251", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -3491,26 +3675,12 @@ }, "parameters": [ { - "$id": "251", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "45" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "248" } ], "response": { "type": { - "$ref": "248" + "$ref": "249" } }, "isOverride": false, @@ -3545,15 +3715,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put.contentType" + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "255", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "255", + "$id": "256", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "248" + "$ref": "249" }, "isApiVersion": false, "contentTypes": [ @@ -3564,7 +3754,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put.body" + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put.body", + "methodParameterSegments": [ + { + "$id": "257", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "249" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3591,39 +3800,10 @@ }, "parameters": [ { - "$id": "256", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "248" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "257" }, { - "$id": "257", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "47" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "255" } ], "response": {}, @@ -3707,7 +3887,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableStringValue.get.accept" + "crossLanguageDefinitionId": "Type.Array.NullableStringValue.get.accept", + "methodParameterSegments": [ + { + "$id": "265", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.NullableStringValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3716,14 +3915,14 @@ 200 ], "bodyType": { - "$id": "265", + "$id": "266", "kind": "array", "name": "Array11", "valueType": { - "$id": "266", + "$id": "267", "kind": "nullable", "type": { - "$id": "267", + "$id": "268", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3753,26 +3952,12 @@ }, "parameters": [ { - "$id": "268", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "49" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.NullableStringValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "265" } ], "response": { "type": { - "$ref": "265" + "$ref": "266" } }, "isOverride": false, @@ -3807,15 +3992,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableStringValue.put.contentType" + "crossLanguageDefinitionId": "Type.Array.NullableStringValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "272", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.NullableStringValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "272", + "$id": "273", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "265" + "$ref": "266" }, "isApiVersion": false, "contentTypes": [ @@ -3826,7 +4031,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Array.NullableStringValue.put.body" + "crossLanguageDefinitionId": "Type.Array.NullableStringValue.put.body", + "methodParameterSegments": [ + { + "$id": "274", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "266" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Array.NullableStringValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3853,39 +4077,10 @@ }, "parameters": [ { - "$id": "273", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "265" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Array.NullableStringValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "274" }, { - "$id": "274", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "51" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.NullableStringValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "272" } ], "response": {}, @@ -3969,7 +4164,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableModelValue.get.accept" + "crossLanguageDefinitionId": "Type.Array.NullableModelValue.get.accept", + "methodParameterSegments": [ + { + "$id": "282", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.NullableModelValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3978,11 +4192,11 @@ 200 ], "bodyType": { - "$id": "282", + "$id": "283", "kind": "array", "name": "Array12", "valueType": { - "$id": "283", + "$id": "284", "kind": "nullable", "type": { "$ref": "57" @@ -4011,26 +4225,12 @@ }, "parameters": [ { - "$id": "284", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "53" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.NullableModelValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "282" } ], "response": { "type": { - "$ref": "282" + "$ref": "283" } }, "isOverride": false, @@ -4065,15 +4265,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put.contentType" + "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "288", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "288", + "$id": "289", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "282" + "$ref": "283" }, "isApiVersion": false, "contentTypes": [ @@ -4084,7 +4304,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put.body" + "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put.body", + "methodParameterSegments": [ + { + "$id": "290", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "283" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4111,39 +4350,10 @@ }, "parameters": [ { - "$id": "289", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "282" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "290" }, { - "$id": "290", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "55" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "288" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json index 84df9ea4255..14afff5a0b1 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json @@ -512,7 +512,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.get.accept" + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.get.accept", + "methodParameterSegments": [ + { + "$id": "59", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -521,17 +540,17 @@ 200 ], "bodyType": { - "$id": "59", + "$id": "60", "kind": "dict", "keyType": { - "$id": "60", + "$id": "61", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "61", + "$id": "62", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -558,26 +577,12 @@ }, "parameters": [ { - "$id": "62", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "59" } ], "response": { "type": { - "$ref": "59" + "$ref": "60" } }, "isOverride": false, @@ -612,15 +617,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.put.contentType" + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.put.contentType", + "methodParameterSegments": [ + { + "$id": "66", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "66", + "$id": "67", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "59" + "$ref": "60" }, "isApiVersion": false, "contentTypes": [ @@ -631,7 +656,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.put.body" + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.put.body", + "methodParameterSegments": [ + { + "$id": "68", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "60" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -658,39 +702,10 @@ }, "parameters": [ { - "$id": "67", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "59" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "68" }, { - "$id": "68", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "66" } ], "response": {}, @@ -774,7 +789,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.get.accept" + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.get.accept", + "methodParameterSegments": [ + { + "$id": "76", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -783,17 +817,17 @@ 200 ], "bodyType": { - "$id": "76", + "$id": "77", "kind": "dict", "keyType": { - "$id": "77", + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "78", + "$id": "79", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -820,26 +854,12 @@ }, "parameters": [ { - "$id": "79", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "76" } ], "response": { "type": { - "$ref": "76" + "$ref": "77" } }, "isOverride": false, @@ -874,15 +894,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.put.contentType" + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.put.contentType", + "methodParameterSegments": [ + { + "$id": "83", + "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": "Type.Dictionary.Int64Value.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "83", + "$id": "84", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "76" + "$ref": "77" }, "isApiVersion": false, "contentTypes": [ @@ -893,7 +933,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.put.body" + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.put.body", + "methodParameterSegments": [ + { + "$id": "85", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "77" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -920,39 +979,10 @@ }, "parameters": [ { - "$id": "84", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "76" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "85" }, { - "$id": "85", - "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": "Type.Dictionary.Int64Value.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "83" } ], "response": {}, @@ -1036,7 +1066,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get.accept" + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get.accept", + "methodParameterSegments": [ + { + "$id": "93", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1045,17 +1094,17 @@ 200 ], "bodyType": { - "$id": "93", + "$id": "94", "kind": "dict", "keyType": { - "$id": "94", + "$id": "95", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "95", + "$id": "96", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1082,26 +1131,12 @@ }, "parameters": [ { - "$id": "96", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "93" } ], "response": { "type": { - "$ref": "93" + "$ref": "94" } }, "isOverride": false, @@ -1136,15 +1171,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put.contentType" + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "100", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "100", + "$id": "101", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "93" + "$ref": "94" }, "isApiVersion": false, "contentTypes": [ @@ -1155,7 +1210,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put.body" + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put.body", + "methodParameterSegments": [ + { + "$id": "102", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "94" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1182,39 +1256,10 @@ }, "parameters": [ { - "$id": "101", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "93" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "102" }, { - "$id": "102", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "100" } ], "response": {}, @@ -1298,7 +1343,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.StringValue.get.accept" + "crossLanguageDefinitionId": "Type.Dictionary.StringValue.get.accept", + "methodParameterSegments": [ + { + "$id": "110", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.StringValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1307,17 +1371,17 @@ 200 ], "bodyType": { - "$id": "110", + "$id": "111", "kind": "dict", "keyType": { - "$id": "111", + "$id": "112", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "112", + "$id": "113", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1344,26 +1408,12 @@ }, "parameters": [ { - "$id": "113", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.StringValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "110" } ], "response": { "type": { - "$ref": "110" + "$ref": "111" } }, "isOverride": false, @@ -1398,15 +1448,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.StringValue.put.contentType" + "crossLanguageDefinitionId": "Type.Dictionary.StringValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "117", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.StringValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "117", + "$id": "118", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "110" + "$ref": "111" }, "isApiVersion": false, "contentTypes": [ @@ -1417,7 +1487,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Dictionary.StringValue.put.body" + "crossLanguageDefinitionId": "Type.Dictionary.StringValue.put.body", + "methodParameterSegments": [ + { + "$id": "119", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "111" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Dictionary.StringValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1444,39 +1533,10 @@ }, "parameters": [ { - "$id": "118", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "110" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Dictionary.StringValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "119" }, { - "$id": "119", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.StringValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "117" } ], "response": {}, @@ -1560,7 +1620,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.get.accept" + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.get.accept", + "methodParameterSegments": [ + { + "$id": "127", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1569,17 +1648,17 @@ 200 ], "bodyType": { - "$id": "127", + "$id": "128", "kind": "dict", "keyType": { - "$id": "128", + "$id": "129", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "129", + "$id": "130", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1606,26 +1685,12 @@ }, "parameters": [ { - "$id": "130", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "127" } ], "response": { "type": { - "$ref": "127" + "$ref": "128" } }, "isOverride": false, @@ -1660,15 +1725,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.put.contentType" + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.put.contentType", + "methodParameterSegments": [ + { + "$id": "134", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "134", + "$id": "135", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "127" + "$ref": "128" }, "isApiVersion": false, "contentTypes": [ @@ -1679,7 +1764,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.put.body" + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.put.body", + "methodParameterSegments": [ + { + "$id": "136", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "128" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1706,39 +1810,10 @@ }, "parameters": [ { - "$id": "135", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "127" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "136" }, { - "$id": "136", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "134" } ], "response": {}, @@ -1822,7 +1897,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get.accept" + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get.accept", + "methodParameterSegments": [ + { + "$id": "144", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1831,22 +1925,22 @@ 200 ], "bodyType": { - "$id": "144", + "$id": "145", "kind": "dict", "keyType": { - "$id": "145", + "$id": "146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "146", + "$id": "147", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "147", + "$id": "148", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1876,26 +1970,12 @@ }, "parameters": [ { - "$id": "148", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "21" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "144" } ], "response": { "type": { - "$ref": "144" + "$ref": "145" } }, "isOverride": false, @@ -1930,15 +2010,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put.contentType" + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "152", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "152", + "$id": "153", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "144" + "$ref": "145" }, "isApiVersion": false, "contentTypes": [ @@ -1949,7 +2049,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put.body" + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put.body", + "methodParameterSegments": [ + { + "$id": "154", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "145" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1976,39 +2095,10 @@ }, "parameters": [ { - "$id": "153", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "144" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "154" }, { - "$id": "154", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "23" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "152" } ], "response": {}, @@ -2092,7 +2182,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.get.accept" + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.get.accept", + "methodParameterSegments": [ + { + "$id": "162", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2101,22 +2210,22 @@ 200 ], "bodyType": { - "$id": "162", + "$id": "163", "kind": "dict", "keyType": { - "$id": "163", + "$id": "164", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "164", + "$id": "165", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "165", + "$id": "166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2146,26 +2255,12 @@ }, "parameters": [ { - "$id": "166", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "25" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "162" } ], "response": { "type": { - "$ref": "162" + "$ref": "163" } }, "isOverride": false, @@ -2200,15 +2295,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.put.contentType" + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "170", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "170", + "$id": "171", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "162" + "$ref": "163" }, "isApiVersion": false, "contentTypes": [ @@ -2219,7 +2334,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.put.body" + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.put.body", + "methodParameterSegments": [ + { + "$id": "172", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "163" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2246,39 +2380,10 @@ }, "parameters": [ { - "$id": "171", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "162" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "172" }, { - "$id": "172", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "27" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "170" } ], "response": {}, @@ -2362,7 +2467,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get.accept" + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get.accept", + "methodParameterSegments": [ + { + "$id": "180", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2371,17 +2495,17 @@ 200 ], "bodyType": { - "$id": "180", + "$id": "181", "kind": "dict", "keyType": { - "$id": "181", + "$id": "182", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "182", + "$id": "183", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2408,26 +2532,12 @@ }, "parameters": [ { - "$id": "183", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "29" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "180" } ], "response": { "type": { - "$ref": "180" + "$ref": "181" } }, "isOverride": false, @@ -2462,15 +2572,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put.contentType" + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "187", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "187", + "$id": "188", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "180" + "$ref": "181" }, "isApiVersion": false, "contentTypes": [ @@ -2481,7 +2611,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put.body" + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put.body", + "methodParameterSegments": [ + { + "$id": "189", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "181" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2508,39 +2657,10 @@ }, "parameters": [ { - "$id": "188", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "180" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "189" }, { - "$id": "189", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "31" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "187" } ], "response": {}, @@ -2624,7 +2744,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.get.accept" + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.get.accept", + "methodParameterSegments": [ + { + "$id": "197", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2654,21 +2793,7 @@ }, "parameters": [ { - "$id": "197", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "33" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "197" } ], "response": { @@ -2708,10 +2833,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put.contentType" + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "201", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "201", + "$id": "202", "kind": "body", "name": "body", "serializedName": "body", @@ -2727,7 +2872,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put.body" + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put.body", + "methodParameterSegments": [ + { + "$id": "203", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "49" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2754,39 +2918,10 @@ }, "parameters": [ { - "$id": "202", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "49" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "203" }, { - "$id": "203", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "35" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "201" } ], "response": {}, @@ -2870,7 +3005,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get.accept" + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get.accept", + "methodParameterSegments": [ + { + "$id": "211", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2900,21 +3054,7 @@ }, "parameters": [ { - "$id": "211", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "37" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "211" } ], "response": { @@ -2954,10 +3094,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put.contentType" + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "215", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "215", + "$id": "216", "kind": "body", "name": "body", "serializedName": "body", @@ -2973,7 +3133,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put.body" + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put.body", + "methodParameterSegments": [ + { + "$id": "217", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "49" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3000,39 +3179,10 @@ }, "parameters": [ { - "$id": "216", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "49" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "217" }, { - "$id": "217", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "39" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "215" } ], "response": {}, @@ -3116,7 +3266,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get.accept" + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get.accept", + "methodParameterSegments": [ + { + "$id": "225", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3125,20 +3294,20 @@ 200 ], "bodyType": { - "$id": "225", + "$id": "226", "kind": "dict", "keyType": { - "$id": "226", + "$id": "227", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "227", + "$id": "228", "kind": "nullable", "type": { - "$id": "228", + "$id": "229", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -3167,26 +3336,12 @@ }, "parameters": [ { - "$id": "229", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "41" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "225" } ], "response": { "type": { - "$ref": "225" + "$ref": "226" } }, "isOverride": false, @@ -3221,15 +3376,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put.contentType" + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "233", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "233", + "$id": "234", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "225" + "$ref": "226" }, "isApiVersion": false, "contentTypes": [ @@ -3240,7 +3415,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put.body" + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put.body", + "methodParameterSegments": [ + { + "$id": "235", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "226" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3267,39 +3461,10 @@ }, "parameters": [ { - "$id": "234", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "225" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "235" }, { - "$id": "235", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "43" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "233" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json index 0d029e9ad26..a65fc452d37 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json @@ -329,7 +329,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue.accept" + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue.accept", + "methodParameterSegments": [ + { + "$id": "34", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "10" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -367,21 +386,7 @@ }, "parameters": [ { - "$id": "34", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "34" } ], "response": { @@ -420,7 +425,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue.accept" + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue.accept", + "methodParameterSegments": [ + { + "$id": "38", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -458,21 +482,7 @@ }, "parameters": [ { - "$id": "38", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "38" } ], "response": { @@ -511,10 +521,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue.contentType" + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue.contentType", + "methodParameterSegments": [ + { + "$id": "42", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "18" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "42", + "$id": "43", "kind": "body", "name": "body", "serializedName": "body", @@ -530,7 +559,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue.body" + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue.body", + "methodParameterSegments": [ + { + "$id": "44", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "1" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -557,38 +605,10 @@ }, "parameters": [ { - "$id": "43", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "42" }, { - "$id": "44", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "1" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "44" } ], "response": {}, @@ -623,10 +643,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue.contentType" + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue.contentType", + "methodParameterSegments": [ + { + "$id": "48", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "22" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "48", + "$id": "49", "kind": "body", "name": "body", "serializedName": "body", @@ -642,7 +681,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue.body" + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue.body", + "methodParameterSegments": [ + { + "$id": "50", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "1" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -669,38 +727,10 @@ }, "parameters": [ { - "$id": "49", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "48" }, { - "$id": "50", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "1" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "50" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json index e3b49081a5a..5ed79814651 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json @@ -299,7 +299,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue.accept" + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue.accept", + "methodParameterSegments": [ + { + "$id": "30", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "10" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -337,21 +356,7 @@ }, "parameters": [ { - "$id": "30", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "30" } ], "response": { @@ -392,10 +397,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue.contentType" + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue.contentType", + "methodParameterSegments": [ + { + "$id": "34", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "34", + "$id": "35", "kind": "body", "name": "body", "serializedName": "body", @@ -412,7 +436,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue.body" + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue.body", + "methodParameterSegments": [ + { + "$id": "36", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "_", + "type": { + "$ref": "1" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -439,39 +483,10 @@ }, "parameters": [ { - "$id": "35", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "34" }, { - "$id": "36", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "_", - "type": { - "$ref": "1" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "36" } ], "response": {}, @@ -508,10 +523,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue.contentType" + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue.contentType", + "methodParameterSegments": [ + { + "$id": "40", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "18" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "40", + "$id": "41", "kind": "body", "name": "body", "serializedName": "body", @@ -528,7 +562,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue.body" + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue.body", + "methodParameterSegments": [ + { + "$id": "42", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "_", + "type": { + "$ref": "1" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -555,39 +609,10 @@ }, "parameters": [ { - "$id": "41", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "40" }, { - "$id": "42", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "_", - "type": { - "$ref": "1" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "42" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json index 2e8c0cbc1b7..2912ee63507 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json @@ -153,10 +153,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Empty.putEmpty.contentType" + "crossLanguageDefinitionId": "Type.Model.Empty.putEmpty.contentType", + "methodParameterSegments": [ + { + "$id": "16", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Empty.putEmpty.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "16", + "$id": "17", "kind": "body", "name": "input", "serializedName": "input", @@ -172,7 +192,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Empty.putEmpty.input" + "crossLanguageDefinitionId": "Type.Model.Empty.putEmpty.input", + "methodParameterSegments": [ + { + "$id": "18", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Empty.putEmpty.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -199,39 +238,10 @@ }, "parameters": [ { - "$id": "17", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "9" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Empty.putEmpty.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "18" }, { - "$id": "18", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Empty.putEmpty.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "16" } ], "response": {}, @@ -266,7 +276,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Empty.getEmpty.accept" + "crossLanguageDefinitionId": "Type.Model.Empty.getEmpty.accept", + "methodParameterSegments": [ + { + "$id": "22", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Empty.getEmpty.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -296,21 +325,7 @@ }, "parameters": [ { - "$id": "22", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Empty.getEmpty.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "22" } ], "response": { @@ -350,10 +365,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty.contentType" + "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty.contentType", + "methodParameterSegments": [ + { + "$id": "26", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "26", + "$id": "27", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -366,10 +401,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty.accept" + "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty.accept", + "methodParameterSegments": [ + { + "$id": "28", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "27", + "$id": "29", "kind": "body", "name": "body", "serializedName": "body", @@ -385,7 +439,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty.body" + "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty.body", + "methodParameterSegments": [ + { + "$id": "30", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "11" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -418,56 +491,13 @@ }, "parameters": [ { - "$id": "28", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "11" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "30" }, { - "$id": "29", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "26" }, { - "$id": "30", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Empty.postRoundTripEmpty.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "28" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json index 7252d578d83..98567d53ff2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json @@ -571,7 +571,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModel.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModel.accept", + "methodParameterSegments": [ + { + "$id": "47", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModel.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -601,21 +620,7 @@ }, "parameters": [ { - "$id": "47", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModel.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "47" } ], "response": { @@ -657,10 +662,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel.contentType" + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel.contentType", + "methodParameterSegments": [ + { + "$id": "51", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "51", + "$id": "52", "kind": "body", "name": "input", "serializedName": "input", @@ -677,7 +702,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel.input" + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel.input", + "methodParameterSegments": [ + { + "$id": "53", + "kind": "method", + "name": "input", + "serializedName": "input", + "doc": "Dog to create", + "type": { + "$ref": "23" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -704,40 +749,10 @@ }, "parameters": [ { - "$id": "52", - "kind": "method", - "name": "input", - "serializedName": "input", - "doc": "Dog to create", - "type": { - "$ref": "23" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "53" }, { - "$id": "53", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "51" } ], "response": {}, @@ -774,7 +789,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelMissingDiscriminator.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelMissingDiscriminator.accept", + "methodParameterSegments": [ + { + "$id": "57", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelMissingDiscriminator.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -804,21 +838,7 @@ }, "parameters": [ { - "$id": "57", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelMissingDiscriminator.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "57" } ], "response": { @@ -859,7 +879,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelWrongDiscriminator.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelWrongDiscriminator.accept", + "methodParameterSegments": [ + { + "$id": "61", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelWrongDiscriminator.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -889,21 +928,7 @@ }, "parameters": [ { - "$id": "61", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelWrongDiscriminator.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "61" } ], "response": { @@ -944,7 +969,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModel.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModel.accept", + "methodParameterSegments": [ + { + "$id": "65", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModel.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -974,21 +1018,7 @@ }, "parameters": [ { - "$id": "65", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModel.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "65" } ], "response": { @@ -1030,10 +1060,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel.contentType" + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel.contentType", + "methodParameterSegments": [ + { + "$id": "69", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "69", + "$id": "70", "kind": "body", "name": "input", "serializedName": "input", @@ -1050,7 +1100,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel.input" + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel.input", + "methodParameterSegments": [ + { + "$id": "71", + "kind": "method", + "name": "input", + "serializedName": "input", + "doc": "Snake to create", + "type": { + "$ref": "33" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1077,40 +1147,10 @@ }, "parameters": [ { - "$id": "70", - "kind": "method", - "name": "input", - "serializedName": "input", - "doc": "Snake to create", - "type": { - "$ref": "33" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "71" }, { - "$id": "71", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "69" } ], "response": {}, @@ -1147,7 +1187,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelMissingDiscriminator.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelMissingDiscriminator.accept", + "methodParameterSegments": [ + { + "$id": "75", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelMissingDiscriminator.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1177,21 +1236,7 @@ }, "parameters": [ { - "$id": "75", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelMissingDiscriminator.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "75" } ], "response": { @@ -1232,7 +1277,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelWrongDiscriminator.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelWrongDiscriminator.accept", + "methodParameterSegments": [ + { + "$id": "79", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelWrongDiscriminator.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1262,21 +1326,7 @@ }, "parameters": [ { - "$id": "79", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "21" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelWrongDiscriminator.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "79" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json index aa5a2a9490e..d307b65ceef 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json @@ -565,7 +565,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getModel.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getModel.accept", + "methodParameterSegments": [ + { + "$id": "46", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getModel.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -595,21 +614,7 @@ }, "parameters": [ { - "$id": "46", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getModel.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "46" } ], "response": { @@ -649,10 +654,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putModel.contentType" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putModel.contentType", + "methodParameterSegments": [ + { + "$id": "50", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "50", + "$id": "51", "kind": "body", "name": "input", "serializedName": "input", @@ -668,7 +693,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putModel.input" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putModel.input", + "methodParameterSegments": [ + { + "$id": "52", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "21" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putModel.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -695,39 +739,10 @@ }, "parameters": [ { - "$id": "51", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "21" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putModel.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "52" }, { - "$id": "52", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "50" } ], "response": {}, @@ -762,7 +777,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getRecursiveModel.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getRecursiveModel.accept", + "methodParameterSegments": [ + { + "$id": "56", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getRecursiveModel.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -792,21 +826,7 @@ }, "parameters": [ { - "$id": "56", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getRecursiveModel.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "56" } ], "response": { @@ -846,10 +866,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putRecursiveModel.contentType" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putRecursiveModel.contentType", + "methodParameterSegments": [ + { + "$id": "60", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putRecursiveModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "60", + "$id": "61", "kind": "body", "name": "input", "serializedName": "input", @@ -865,7 +905,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putRecursiveModel.input" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putRecursiveModel.input", + "methodParameterSegments": [ + { + "$id": "62", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "21" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putRecursiveModel.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -892,39 +951,10 @@ }, "parameters": [ { - "$id": "61", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "21" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putRecursiveModel.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "62" }, { - "$id": "62", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putRecursiveModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "60" } ], "response": {}, @@ -959,7 +989,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getMissingDiscriminator.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getMissingDiscriminator.accept", + "methodParameterSegments": [ + { + "$id": "66", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getMissingDiscriminator.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -989,21 +1038,7 @@ }, "parameters": [ { - "$id": "66", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getMissingDiscriminator.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "66" } ], "response": { @@ -1042,7 +1077,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getWrongDiscriminator.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getWrongDiscriminator.accept", + "methodParameterSegments": [ + { + "$id": "70", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getWrongDiscriminator.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1072,21 +1126,7 @@ }, "parameters": [ { - "$id": "70", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getWrongDiscriminator.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "70" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json index f6b350ad159..3e2ff9c1a62 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json @@ -237,10 +237,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.postValid.contentType" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.postValid.contentType", + "methodParameterSegments": [ + { + "$id": "22", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.postValid.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "22", + "$id": "23", "kind": "body", "name": "input", "serializedName": "input", @@ -256,7 +276,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.postValid.input" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.postValid.input", + "methodParameterSegments": [ + { + "$id": "24", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.postValid.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -283,39 +322,10 @@ }, "parameters": [ { - "$id": "23", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "9" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.postValid.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "24" }, { - "$id": "24", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.postValid.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "22" } ], "response": {}, @@ -350,7 +360,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.getValid.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.getValid.accept", + "methodParameterSegments": [ + { + "$id": "28", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.getValid.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -380,21 +409,7 @@ }, "parameters": [ { - "$id": "28", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.getValid.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "28" } ], "response": { @@ -434,10 +449,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid.contentType" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid.contentType", + "methodParameterSegments": [ + { + "$id": "32", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "32", + "$id": "33", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -450,10 +485,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid.accept", + "methodParameterSegments": [ + { + "$id": "34", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "33", + "$id": "35", "kind": "body", "name": "input", "serializedName": "input", @@ -469,7 +523,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid.input" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid.input", + "methodParameterSegments": [ + { + "$id": "36", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -502,56 +575,13 @@ }, "parameters": [ { - "$id": "34", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "9" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "36" }, { - "$id": "35", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "32" }, { - "$id": "36", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.putValid.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "34" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json index 9a8c123dcbc..5abbda8b209 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json @@ -163,10 +163,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.put.contentType" + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.put.contentType", + "methodParameterSegments": [ + { + "$id": "15", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "15", + "$id": "16", "kind": "body", "name": "input", "serializedName": "input", @@ -182,7 +202,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.put.input" + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.put.input", + "methodParameterSegments": [ + { + "$id": "17", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "5" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -209,39 +248,10 @@ }, "parameters": [ { - "$id": "16", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "5" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.put.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "17" }, { - "$id": "17", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "15" } ], "response": {}, @@ -276,7 +286,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.get.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.get.accept", + "methodParameterSegments": [ + { + "$id": "21", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -306,21 +335,7 @@ }, "parameters": [ { - "$id": "21", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "21" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json index 746fa3c0fbd..b0dd918ac2e 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json @@ -684,7 +684,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getModel.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getModel.accept", + "methodParameterSegments": [ + { + "$id": "55", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getModel.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -714,21 +733,7 @@ }, "parameters": [ { - "$id": "55", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getModel.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "55" } ], "response": { @@ -768,10 +773,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putModel.contentType" + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putModel.contentType", + "methodParameterSegments": [ + { + "$id": "59", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "59", + "$id": "60", "kind": "body", "name": "input", "serializedName": "input", @@ -787,7 +812,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putModel.input" + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putModel.input", + "methodParameterSegments": [ + { + "$id": "61", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "25" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putModel.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -814,39 +858,10 @@ }, "parameters": [ { - "$id": "60", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "25" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putModel.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "61" }, { - "$id": "61", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "59" } ], "response": {}, @@ -881,7 +896,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getRecursiveModel.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getRecursiveModel.accept", + "methodParameterSegments": [ + { + "$id": "65", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getRecursiveModel.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -911,21 +945,7 @@ }, "parameters": [ { - "$id": "65", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getRecursiveModel.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "65" } ], "response": { @@ -965,10 +985,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putRecursiveModel.contentType" + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putRecursiveModel.contentType", + "methodParameterSegments": [ + { + "$id": "69", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putRecursiveModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "69", + "$id": "70", "kind": "body", "name": "input", "serializedName": "input", @@ -984,7 +1024,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putRecursiveModel.input" + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putRecursiveModel.input", + "methodParameterSegments": [ + { + "$id": "71", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "25" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putRecursiveModel.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1011,39 +1070,10 @@ }, "parameters": [ { - "$id": "70", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "25" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putRecursiveModel.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "71" }, { - "$id": "71", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putRecursiveModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "69" } ], "response": {}, @@ -1078,7 +1108,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getMissingDiscriminator.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getMissingDiscriminator.accept", + "methodParameterSegments": [ + { + "$id": "75", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getMissingDiscriminator.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1108,21 +1157,7 @@ }, "parameters": [ { - "$id": "75", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getMissingDiscriminator.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "75" } ], "response": { @@ -1161,7 +1196,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getWrongDiscriminator.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getWrongDiscriminator.accept", + "methodParameterSegments": [ + { + "$id": "79", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getWrongDiscriminator.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1191,21 +1245,7 @@ }, "parameters": [ { - "$id": "79", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "21" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getWrongDiscriminator.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "79" } ], "response": { @@ -1244,7 +1284,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getLegacyModel.accept" + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getLegacyModel.accept", + "methodParameterSegments": [ + { + "$id": "83", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getLegacyModel.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1274,21 +1333,7 @@ }, "parameters": [ { - "$id": "83", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "23" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getLegacyModel.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "83" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json index 5c8712ee703..597af5f4e4d 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json @@ -231,10 +231,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Usage.input.contentType" + "crossLanguageDefinitionId": "Type.Model.Usage.input.contentType", + "methodParameterSegments": [ + { + "$id": "22", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Usage.input.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "22", + "$id": "23", "kind": "body", "name": "input", "serializedName": "input", @@ -250,7 +270,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Usage.input.input" + "crossLanguageDefinitionId": "Type.Model.Usage.input.input", + "methodParameterSegments": [ + { + "$id": "24", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Usage.input.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -277,39 +316,10 @@ }, "parameters": [ { - "$id": "23", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "9" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Usage.input.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "24" }, { - "$id": "24", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Usage.input.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "22" } ], "response": {}, @@ -344,7 +354,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Usage.output.accept" + "crossLanguageDefinitionId": "Type.Model.Usage.output.accept", + "methodParameterSegments": [ + { + "$id": "28", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Usage.output.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -374,21 +403,7 @@ }, "parameters": [ { - "$id": "28", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Usage.output.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "28" } ], "response": { @@ -428,10 +443,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput.contentType" + "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput.contentType", + "methodParameterSegments": [ + { + "$id": "32", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "32", + "$id": "33", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -444,10 +479,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput.accept" + "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput.accept", + "methodParameterSegments": [ + { + "$id": "34", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "33", + "$id": "35", "kind": "body", "name": "body", "serializedName": "body", @@ -463,7 +517,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput.body" + "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput.body", + "methodParameterSegments": [ + { + "$id": "36", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "15" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -496,56 +569,13 @@ }, "parameters": [ { - "$id": "34", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "15" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "36" }, { - "$id": "35", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "32" }, { - "$id": "36", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Usage.inputAndOutput.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "34" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json index 6262ae644a5..3173d004c54 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json @@ -432,10 +432,47 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.queryProp", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "44", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Visibility.getModel.input", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$id": "45", + "kind": "method", + "name": "queryProp", + "serializedName": "queryProp", + "doc": "Required int32, illustrating a query property.", + "type": { + "$ref": "23" + }, + "location": "", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.queryProp", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "44", + "$id": "46", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -449,10 +486,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.getModel.contentType" + "crossLanguageDefinitionId": "Type.Model.Visibility.getModel.contentType", + "methodParameterSegments": [ + { + "$id": "47", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Visibility.getModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "45", + "$id": "48", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -465,10 +522,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.getModel.accept" + "crossLanguageDefinitionId": "Type.Model.Visibility.getModel.accept", + "methodParameterSegments": [ + { + "$id": "49", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Visibility.getModel.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "46", + "$id": "50", "kind": "body", "name": "input", "serializedName": "input", @@ -484,7 +560,12 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Visibility.getModel.input" + "crossLanguageDefinitionId": "Type.Model.Visibility.getModel.input", + "methodParameterSegments": [ + { + "$ref": "44" + } + ] } ], "responses": [ @@ -517,56 +598,13 @@ }, "parameters": [ { - "$id": "47", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "19" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Visibility.getModel.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "44" }, { - "$id": "48", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Visibility.getModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "47" }, { - "$id": "49", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Visibility.getModel.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "49" } ], "response": { @@ -580,25 +618,25 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.getModel" }, { - "$id": "50", + "$id": "51", "kind": "basic", "name": "headModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "51", + "$id": "52", "name": "headModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "52", + "$id": "53", "kind": "query", "name": "queryProp", "serializedName": "queryProp", "doc": "Required int32, illustrating a query property.", "type": { - "$id": "53", + "$id": "54", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -610,10 +648,32 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.queryProp", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "55", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Visibility.headModel.input", + "readOnly": false, + "access": "public", + "decorators": [] + }, + { + "$ref": "45" + } + ] }, { - "$id": "54", + "$id": "56", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -627,10 +687,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.headModel.contentType" + "crossLanguageDefinitionId": "Type.Model.Visibility.headModel.contentType", + "methodParameterSegments": [ + { + "$id": "57", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Visibility.headModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "55", + "$id": "58", "kind": "body", "name": "input", "serializedName": "input", @@ -646,7 +726,12 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Visibility.headModel.input" + "crossLanguageDefinitionId": "Type.Model.Visibility.headModel.input", + "methodParameterSegments": [ + { + "$ref": "55" + } + ] } ], "responses": [ @@ -673,39 +758,10 @@ }, "parameters": [ { - "$id": "56", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "19" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Visibility.headModel.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "55" }, { - "$id": "57", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Visibility.headModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "57" } ], "response": {}, @@ -715,19 +771,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.headModel" }, { - "$id": "58", + "$id": "59", "kind": "basic", "name": "putModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "59", + "$id": "60", "name": "putModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "60", + "$id": "61", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -741,10 +797,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.putModel.contentType" + "crossLanguageDefinitionId": "Type.Model.Visibility.putModel.contentType", + "methodParameterSegments": [ + { + "$id": "62", + "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": "Type.Model.Visibility.putModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "61", + "$id": "63", "kind": "body", "name": "input", "serializedName": "input", @@ -760,7 +836,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Visibility.putModel.input" + "crossLanguageDefinitionId": "Type.Model.Visibility.putModel.input", + "methodParameterSegments": [ + { + "$id": "64", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Visibility.putModel.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -787,39 +882,10 @@ }, "parameters": [ { - "$id": "62", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "19" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Visibility.putModel.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "64" }, { - "$id": "63", - "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": "Type.Model.Visibility.putModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "62" } ], "response": {}, @@ -829,19 +895,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.putModel" }, { - "$id": "64", + "$id": "65", "kind": "basic", "name": "patchModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "65", + "$id": "66", "name": "patchModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "66", + "$id": "67", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -855,10 +921,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel.contentType" + "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel.contentType", + "methodParameterSegments": [ + { + "$id": "68", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "67", + "$id": "69", "kind": "body", "name": "input", "serializedName": "input", @@ -874,7 +960,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel.input" + "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel.input", + "methodParameterSegments": [ + { + "$id": "70", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -901,39 +1006,10 @@ }, "parameters": [ { - "$id": "68", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "19" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "70" }, { - "$id": "69", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "68" } ], "response": {}, @@ -943,19 +1019,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.patchModel" }, { - "$id": "70", + "$id": "71", "kind": "basic", "name": "postModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "71", + "$id": "72", "name": "postModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "72", + "$id": "73", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -969,10 +1045,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.postModel.contentType" + "crossLanguageDefinitionId": "Type.Model.Visibility.postModel.contentType", + "methodParameterSegments": [ + { + "$id": "74", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Visibility.postModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "73", + "$id": "75", "kind": "body", "name": "input", "serializedName": "input", @@ -988,7 +1084,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Visibility.postModel.input" + "crossLanguageDefinitionId": "Type.Model.Visibility.postModel.input", + "methodParameterSegments": [ + { + "$id": "76", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Visibility.postModel.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1015,39 +1130,10 @@ }, "parameters": [ { - "$id": "74", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "19" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Visibility.postModel.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "76" }, { - "$id": "75", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Visibility.postModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "74" } ], "response": {}, @@ -1057,19 +1143,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.postModel" }, { - "$id": "76", + "$id": "77", "kind": "basic", "name": "deleteModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "77", + "$id": "78", "name": "deleteModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "78", + "$id": "79", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -1083,10 +1169,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel.contentType" + "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel.contentType", + "methodParameterSegments": [ + { + "$id": "80", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "79", + "$id": "81", "kind": "body", "name": "input", "serializedName": "input", @@ -1102,7 +1208,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel.input" + "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel.input", + "methodParameterSegments": [ + { + "$id": "82", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1129,39 +1254,10 @@ }, "parameters": [ { - "$id": "80", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "19" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "82" }, { - "$id": "81", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "80" } ], "response": {}, @@ -1171,19 +1267,19 @@ "crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel" }, { - "$id": "82", + "$id": "83", "kind": "basic", "name": "putReadOnlyModel", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "83", + "$id": "84", "name": "putReadOnlyModel", "resourceName": "Visibility", "accessibility": "public", "parameters": [ { - "$id": "84", + "$id": "85", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -1197,10 +1293,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel.contentType" + "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel.contentType", + "methodParameterSegments": [ + { + "$id": "86", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "85", + "$id": "87", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1213,10 +1329,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel.accept" + "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel.accept", + "methodParameterSegments": [ + { + "$id": "88", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "86", + "$id": "89", "kind": "body", "name": "input", "serializedName": "input", @@ -1232,7 +1367,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel.input" + "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel.input", + "methodParameterSegments": [ + { + "$id": "90", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "32" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1265,56 +1419,13 @@ }, "parameters": [ { - "$id": "87", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "32" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "90" }, { - "$id": "88", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "86" }, { - "$id": "89", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Model.Visibility.putReadOnlyModel.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "88" } ], "response": { @@ -1330,13 +1441,13 @@ ], "parameters": [ { - "$id": "90", + "$id": "91", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "91", + "$id": "92", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1347,7 +1458,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "92", + "$id": "93", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json index b55638a8b28..47fa09be329 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json @@ -3254,7 +3254,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get.accept", + "methodParameterSegments": [ + { + "$id": "289", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3284,21 +3303,7 @@ }, "parameters": [ { - "$id": "289", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "289" } ], "response": { @@ -3340,10 +3345,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put.contentType", + "methodParameterSegments": [ + { + "$id": "293", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "293", + "$id": "294", "kind": "body", "name": "body", "serializedName": "body", @@ -3360,7 +3385,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put.body", + "methodParameterSegments": [ + { + "$id": "295", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "135" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3387,40 +3432,10 @@ }, "parameters": [ { - "$id": "294", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "135" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "295" }, { - "$id": "295", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "293" } ], "response": {}, @@ -3505,7 +3520,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get.accept", + "methodParameterSegments": [ + { + "$id": "303", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3535,21 +3569,7 @@ }, "parameters": [ { - "$id": "303", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "303" } ], "response": { @@ -3591,10 +3611,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put.contentType", + "methodParameterSegments": [ + { + "$id": "307", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "307", + "$id": "308", "kind": "body", "name": "body", "serializedName": "body", @@ -3611,7 +3651,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put.body", + "methodParameterSegments": [ + { + "$id": "309", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "139" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3638,40 +3698,10 @@ }, "parameters": [ { - "$id": "308", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "139" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "309" }, { - "$id": "309", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "307" } ], "response": {}, @@ -3756,7 +3786,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get.accept", + "methodParameterSegments": [ + { + "$id": "317", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3786,21 +3835,7 @@ }, "parameters": [ { - "$id": "317", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "317" } ], "response": { @@ -3842,10 +3877,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put.contentType", + "methodParameterSegments": [ + { + "$id": "321", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "321", + "$id": "322", "kind": "body", "name": "body", "serializedName": "body", @@ -3862,7 +3917,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put.body", + "methodParameterSegments": [ + { + "$id": "323", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "144" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3889,40 +3964,10 @@ }, "parameters": [ { - "$id": "322", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "144" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "323" }, { - "$id": "323", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "21" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "321" } ], "response": {}, @@ -4007,7 +4052,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get.accept", + "methodParameterSegments": [ + { + "$id": "331", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4037,21 +4101,7 @@ }, "parameters": [ { - "$id": "331", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "23" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "331" } ], "response": { @@ -4093,10 +4143,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put.contentType", + "methodParameterSegments": [ + { + "$id": "335", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "335", + "$id": "336", "kind": "body", "name": "body", "serializedName": "body", @@ -4113,7 +4183,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put.body", + "methodParameterSegments": [ + { + "$id": "337", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "155" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4140,40 +4230,10 @@ }, "parameters": [ { - "$id": "336", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "155" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "337" }, { - "$id": "337", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "25" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "335" } ], "response": {}, @@ -4258,7 +4318,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get.accept", + "methodParameterSegments": [ + { + "$id": "345", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4288,21 +4367,7 @@ }, "parameters": [ { - "$id": "345", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "27" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "345" } ], "response": { @@ -4344,10 +4409,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put.contentType", + "methodParameterSegments": [ + { + "$id": "349", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "349", + "$id": "350", "kind": "body", "name": "body", "serializedName": "body", @@ -4364,7 +4449,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put.body", + "methodParameterSegments": [ + { + "$id": "351", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "159" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4391,40 +4496,10 @@ }, "parameters": [ { - "$id": "350", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "159" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "351" }, { - "$id": "351", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "29" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "349" } ], "response": {}, @@ -4509,7 +4584,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get.accept", + "methodParameterSegments": [ + { + "$id": "359", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4539,21 +4633,7 @@ }, "parameters": [ { - "$id": "359", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "31" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "359" } ], "response": { @@ -4595,10 +4675,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put.contentType", + "methodParameterSegments": [ + { + "$id": "363", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "363", + "$id": "364", "kind": "body", "name": "body", "serializedName": "body", @@ -4615,7 +4715,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put.body", + "methodParameterSegments": [ + { + "$id": "365", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "164" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4642,40 +4762,10 @@ }, "parameters": [ { - "$id": "364", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "164" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "365" }, { - "$id": "365", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "33" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "363" } ], "response": {}, @@ -4760,7 +4850,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get.accept", + "methodParameterSegments": [ + { + "$id": "373", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4790,21 +4899,7 @@ }, "parameters": [ { - "$id": "373", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "35" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "373" } ], "response": { @@ -4846,10 +4941,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put.contentType", + "methodParameterSegments": [ + { + "$id": "377", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "377", + "$id": "378", "kind": "body", "name": "body", "serializedName": "body", @@ -4866,7 +4981,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put.body", + "methodParameterSegments": [ + { + "$id": "379", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "176" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4893,40 +5028,10 @@ }, "parameters": [ { - "$id": "378", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "176" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "379" }, { - "$id": "379", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "37" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "377" } ], "response": {}, @@ -5011,7 +5116,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get.accept", + "methodParameterSegments": [ + { + "$id": "387", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5041,21 +5165,7 @@ }, "parameters": [ { - "$id": "387", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "39" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "387" } ], "response": { @@ -5097,10 +5207,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put.contentType", + "methodParameterSegments": [ + { + "$id": "391", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "391", + "$id": "392", "kind": "body", "name": "body", "serializedName": "body", @@ -5117,7 +5247,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put.body", + "methodParameterSegments": [ + { + "$id": "393", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "180" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5144,40 +5294,10 @@ }, "parameters": [ { - "$id": "392", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "180" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "393" }, { - "$id": "393", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "41" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "391" } ], "response": {}, @@ -5262,7 +5382,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get.accept", + "methodParameterSegments": [ + { + "$id": "401", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5292,21 +5431,7 @@ }, "parameters": [ { - "$id": "401", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "43" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "401" } ], "response": { @@ -5348,10 +5473,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put.contentType", + "methodParameterSegments": [ + { + "$id": "405", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "405", + "$id": "406", "kind": "body", "name": "body", "serializedName": "body", @@ -5368,7 +5513,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put.body", + "methodParameterSegments": [ + { + "$id": "407", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "184" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5395,40 +5560,10 @@ }, "parameters": [ { - "$id": "406", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "184" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "407" }, { - "$id": "407", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "45" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "405" } ], "response": {}, @@ -5513,7 +5648,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get.accept", + "methodParameterSegments": [ + { + "$id": "415", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5543,21 +5697,7 @@ }, "parameters": [ { - "$id": "415", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "47" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "415" } ], "response": { @@ -5599,10 +5739,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put.contentType", + "methodParameterSegments": [ + { + "$id": "419", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "419", + "$id": "420", "kind": "body", "name": "body", "serializedName": "body", @@ -5619,7 +5779,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put.body", + "methodParameterSegments": [ + { + "$id": "421", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "188" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5646,40 +5826,10 @@ }, "parameters": [ { - "$id": "420", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "188" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "421" }, { - "$id": "421", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "49" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "419" } ], "response": {}, @@ -5764,7 +5914,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get.accept", + "methodParameterSegments": [ + { + "$id": "429", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5794,21 +5963,7 @@ }, "parameters": [ { - "$id": "429", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "51" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "429" } ], "response": { @@ -5850,10 +6005,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put.contentType", + "methodParameterSegments": [ + { + "$id": "433", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "433", + "$id": "434", "kind": "body", "name": "body", "serializedName": "body", @@ -5870,7 +6045,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put.body", + "methodParameterSegments": [ + { + "$id": "435", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "192" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5897,40 +6092,10 @@ }, "parameters": [ { - "$id": "434", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "192" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "435" }, { - "$id": "435", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "53" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "433" } ], "response": {}, @@ -6015,7 +6180,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get.accept", + "methodParameterSegments": [ + { + "$id": "443", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6045,21 +6229,7 @@ }, "parameters": [ { - "$id": "443", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "55" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "443" } ], "response": { @@ -6101,10 +6271,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put.contentType", + "methodParameterSegments": [ + { + "$id": "447", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "57" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "447", + "$id": "448", "kind": "body", "name": "body", "serializedName": "body", @@ -6121,7 +6311,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put.body", + "methodParameterSegments": [ + { + "$id": "449", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "196" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6148,40 +6358,10 @@ }, "parameters": [ { - "$id": "448", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "196" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "449" }, { - "$id": "449", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "57" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "447" } ], "response": {}, @@ -6266,7 +6446,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get.accept", + "methodParameterSegments": [ + { + "$id": "457", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "59" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6296,21 +6495,7 @@ }, "parameters": [ { - "$id": "457", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "59" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "457" } ], "response": { @@ -6352,10 +6537,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put.contentType", + "methodParameterSegments": [ + { + "$id": "461", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "61" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "461", + "$id": "462", "kind": "body", "name": "body", "serializedName": "body", @@ -6372,7 +6577,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put.body", + "methodParameterSegments": [ + { + "$id": "463", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "200" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6399,40 +6624,10 @@ }, "parameters": [ { - "$id": "462", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "200" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "463" }, { - "$id": "463", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "61" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "461" } ], "response": {}, @@ -6517,7 +6712,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get.accept", + "methodParameterSegments": [ + { + "$id": "471", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "63" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6547,21 +6761,7 @@ }, "parameters": [ { - "$id": "471", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "63" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "471" } ], "response": { @@ -6603,10 +6803,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put.contentType", + "methodParameterSegments": [ + { + "$id": "475", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "65" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "475", + "$id": "476", "kind": "body", "name": "body", "serializedName": "body", @@ -6623,7 +6843,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put.body", + "methodParameterSegments": [ + { + "$id": "477", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "205" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6650,40 +6890,10 @@ }, "parameters": [ { - "$id": "476", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "205" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "477" }, { - "$id": "477", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "65" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "475" } ], "response": {}, @@ -6768,7 +6978,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get.accept", + "methodParameterSegments": [ + { + "$id": "485", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "67" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6798,21 +7027,7 @@ }, "parameters": [ { - "$id": "485", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "67" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "485" } ], "response": { @@ -6854,10 +7069,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put.contentType", + "methodParameterSegments": [ + { + "$id": "489", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "69" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "489", + "$id": "490", "kind": "body", "name": "body", "serializedName": "body", @@ -6874,7 +7109,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put.body", + "methodParameterSegments": [ + { + "$id": "491", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "207" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6901,40 +7156,10 @@ }, "parameters": [ { - "$id": "490", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "207" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "491" }, { - "$id": "491", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "69" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "489" } ], "response": {}, @@ -7019,7 +7244,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get.accept", + "methodParameterSegments": [ + { + "$id": "499", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "71" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7049,21 +7293,7 @@ }, "parameters": [ { - "$id": "499", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "71" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "499" } ], "response": { @@ -7105,10 +7335,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put.contentType", + "methodParameterSegments": [ + { + "$id": "503", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "73" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "503", + "$id": "504", "kind": "body", "name": "body", "serializedName": "body", @@ -7125,7 +7375,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put.body", + "methodParameterSegments": [ + { + "$id": "505", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "209" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7152,40 +7422,10 @@ }, "parameters": [ { - "$id": "504", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "209" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "505" }, { - "$id": "505", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "73" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "503" } ], "response": {}, @@ -7270,7 +7510,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get.accept", + "methodParameterSegments": [ + { + "$id": "513", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "75" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7300,21 +7559,7 @@ }, "parameters": [ { - "$id": "513", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "75" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "513" } ], "response": { @@ -7356,10 +7601,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put.contentType", + "methodParameterSegments": [ + { + "$id": "517", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "77" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "517", + "$id": "518", "kind": "body", "name": "body", "serializedName": "body", @@ -7376,7 +7641,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put.body", + "methodParameterSegments": [ + { + "$id": "519", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "212" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7403,40 +7688,10 @@ }, "parameters": [ { - "$id": "518", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "212" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "519" }, { - "$id": "519", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "77" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "517" } ], "response": {}, @@ -7521,7 +7776,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get.accept", + "methodParameterSegments": [ + { + "$id": "527", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "79" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7551,21 +7825,7 @@ }, "parameters": [ { - "$id": "527", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "79" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "527" } ], "response": { @@ -7607,10 +7867,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put.contentType", + "methodParameterSegments": [ + { + "$id": "531", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "81" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "531", + "$id": "532", "kind": "body", "name": "body", "serializedName": "body", @@ -7627,7 +7907,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put.body", + "methodParameterSegments": [ + { + "$id": "533", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "214" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7654,40 +7954,10 @@ }, "parameters": [ { - "$id": "532", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "214" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "533" }, { - "$id": "533", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "81" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "531" } ], "response": {}, @@ -7772,7 +8042,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get.accept", + "methodParameterSegments": [ + { + "$id": "541", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "83" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7802,21 +8091,7 @@ }, "parameters": [ { - "$id": "541", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "83" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "541" } ], "response": { @@ -7858,10 +8133,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put.contentType", + "methodParameterSegments": [ + { + "$id": "545", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "85" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "545", + "$id": "546", "kind": "body", "name": "body", "serializedName": "body", @@ -7878,7 +8173,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put.body", + "methodParameterSegments": [ + { + "$id": "547", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "216" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7905,40 +8220,10 @@ }, "parameters": [ { - "$id": "546", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "216" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "547" }, { - "$id": "547", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "85" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "545" } ], "response": {}, @@ -8023,7 +8308,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get.accept", + "methodParameterSegments": [ + { + "$id": "555", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "87" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8053,21 +8357,7 @@ }, "parameters": [ { - "$id": "555", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "87" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "555" } ], "response": { @@ -8109,10 +8399,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put.contentType", + "methodParameterSegments": [ + { + "$id": "559", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "89" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "559", + "$id": "560", "kind": "body", "name": "body", "serializedName": "body", @@ -8129,7 +8439,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put.body", + "methodParameterSegments": [ + { + "$id": "561", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "220" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8156,40 +8486,10 @@ }, "parameters": [ { - "$id": "560", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "220" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "561" }, { - "$id": "561", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "89" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "559" } ], "response": {}, @@ -8274,7 +8574,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get.accept", + "methodParameterSegments": [ + { + "$id": "569", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "91" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8304,21 +8623,7 @@ }, "parameters": [ { - "$id": "569", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "91" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "569" } ], "response": { @@ -8360,10 +8665,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put.contentType", + "methodParameterSegments": [ + { + "$id": "573", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "93" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "573", + "$id": "574", "kind": "body", "name": "body", "serializedName": "body", @@ -8380,7 +8705,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put.body", + "methodParameterSegments": [ + { + "$id": "575", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "224" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8407,40 +8752,10 @@ }, "parameters": [ { - "$id": "574", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "224" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "575" }, { - "$id": "575", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "93" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "573" } ], "response": {}, @@ -8525,7 +8840,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get.accept", + "methodParameterSegments": [ + { + "$id": "583", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "95" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8555,21 +8889,7 @@ }, "parameters": [ { - "$id": "583", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "95" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "583" } ], "response": { @@ -8611,10 +8931,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put.contentType", + "methodParameterSegments": [ + { + "$id": "587", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "97" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "587", + "$id": "588", "kind": "body", "name": "body", "serializedName": "body", @@ -8631,7 +8971,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put.body", + "methodParameterSegments": [ + { + "$id": "589", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "227" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8658,40 +9018,10 @@ }, "parameters": [ { - "$id": "588", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "227" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "589" }, { - "$id": "589", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "97" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "587" } ], "response": {}, @@ -8776,7 +9106,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get.accept", + "methodParameterSegments": [ + { + "$id": "597", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "99" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8806,21 +9155,7 @@ }, "parameters": [ { - "$id": "597", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "99" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "597" } ], "response": { @@ -8862,10 +9197,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put.contentType", + "methodParameterSegments": [ + { + "$id": "601", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "101" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "601", + "$id": "602", "kind": "body", "name": "body", "serializedName": "body", @@ -8882,7 +9237,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put.body", + "methodParameterSegments": [ + { + "$id": "603", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "230" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8909,40 +9284,10 @@ }, "parameters": [ { - "$id": "602", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "230" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "603" }, { - "$id": "603", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "101" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "601" } ], "response": {}, @@ -9027,7 +9372,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get.accept", + "methodParameterSegments": [ + { + "$id": "611", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "103" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9057,21 +9421,7 @@ }, "parameters": [ { - "$id": "611", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "103" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "611" } ], "response": { @@ -9113,10 +9463,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put.contentType", + "methodParameterSegments": [ + { + "$id": "615", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "105" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "615", + "$id": "616", "kind": "body", "name": "body", "serializedName": "body", @@ -9133,7 +9503,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put.body", + "methodParameterSegments": [ + { + "$id": "617", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "233" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9160,40 +9550,10 @@ }, "parameters": [ { - "$id": "616", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "233" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "617" }, { - "$id": "617", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "105" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "615" } ], "response": {}, @@ -9278,7 +9638,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get.accept", + "methodParameterSegments": [ + { + "$id": "625", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "107" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9308,21 +9687,7 @@ }, "parameters": [ { - "$id": "625", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "107" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "625" } ], "response": { @@ -9364,10 +9729,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put.contentType", + "methodParameterSegments": [ + { + "$id": "629", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "109" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "629", + "$id": "630", "kind": "body", "name": "body", "serializedName": "body", @@ -9384,7 +9769,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put.body", + "methodParameterSegments": [ + { + "$id": "631", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "236" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9411,40 +9816,10 @@ }, "parameters": [ { - "$id": "630", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "236" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "631" }, { - "$id": "631", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "109" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "629" } ], "response": {}, @@ -9529,7 +9904,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get.accept", + "methodParameterSegments": [ + { + "$id": "639", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "111" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9559,21 +9953,7 @@ }, "parameters": [ { - "$id": "639", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "111" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "639" } ], "response": { @@ -9615,10 +9995,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put.contentType", + "methodParameterSegments": [ + { + "$id": "643", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "113" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "643", + "$id": "644", "kind": "body", "name": "body", "serializedName": "body", @@ -9635,7 +10035,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put.body", + "methodParameterSegments": [ + { + "$id": "645", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "238" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9662,40 +10082,10 @@ }, "parameters": [ { - "$id": "644", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "238" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "645" }, { - "$id": "645", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "113" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "643" } ], "response": {}, @@ -9780,7 +10170,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get.accept", + "methodParameterSegments": [ + { + "$id": "653", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "115" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9810,21 +10219,7 @@ }, "parameters": [ { - "$id": "653", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "115" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "653" } ], "response": { @@ -9866,10 +10261,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put.contentType", + "methodParameterSegments": [ + { + "$id": "657", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "117" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "657", + "$id": "658", "kind": "body", "name": "body", "serializedName": "body", @@ -9886,7 +10301,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put.body", + "methodParameterSegments": [ + { + "$id": "659", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "240" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9913,40 +10348,10 @@ }, "parameters": [ { - "$id": "658", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "240" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "659" }, { - "$id": "659", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "117" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "657" } ], "response": {}, @@ -10031,7 +10436,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get.accept", + "methodParameterSegments": [ + { + "$id": "667", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "119" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10061,21 +10485,7 @@ }, "parameters": [ { - "$id": "667", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "119" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "667" } ], "response": { @@ -10117,10 +10527,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put.contentType", + "methodParameterSegments": [ + { + "$id": "671", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "121" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "671", + "$id": "672", "kind": "body", "name": "body", "serializedName": "body", @@ -10137,7 +10567,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put.body", + "methodParameterSegments": [ + { + "$id": "673", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "246" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10164,40 +10614,10 @@ }, "parameters": [ { - "$id": "672", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "246" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "673" }, { - "$id": "673", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "121" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "671" } ], "response": {}, @@ -10282,7 +10702,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get.accept", + "methodParameterSegments": [ + { + "$id": "681", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "123" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10312,21 +10751,7 @@ }, "parameters": [ { - "$id": "681", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "123" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "681" } ], "response": { @@ -10368,10 +10793,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put.contentType", + "methodParameterSegments": [ + { + "$id": "685", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "125" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "685", + "$id": "686", "kind": "body", "name": "body", "serializedName": "body", @@ -10388,7 +10833,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put.body", + "methodParameterSegments": [ + { + "$id": "687", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "252" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10415,40 +10880,10 @@ }, "parameters": [ { - "$id": "686", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "252" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "687" }, { - "$id": "687", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "125" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "685" } ], "response": {}, @@ -10533,7 +10968,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get.accept", + "methodParameterSegments": [ + { + "$id": "695", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "127" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10563,21 +11017,7 @@ }, "parameters": [ { - "$id": "695", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "127" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "695" } ], "response": { @@ -10619,10 +11059,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put.contentType", + "methodParameterSegments": [ + { + "$id": "699", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "129" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "699", + "$id": "700", "kind": "body", "name": "body", "serializedName": "body", @@ -10639,7 +11099,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put.body", + "methodParameterSegments": [ + { + "$id": "701", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "268" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10666,40 +11146,10 @@ }, "parameters": [ { - "$id": "700", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "268" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "701" }, { - "$id": "701", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "129" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "699" } ], "response": {}, @@ -10784,7 +11234,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get.accept" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get.accept", + "methodParameterSegments": [ + { + "$id": "709", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "131" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10814,21 +11283,7 @@ }, "parameters": [ { - "$id": "709", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "131" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "709" } ], "response": { @@ -10870,10 +11325,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put.contentType" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put.contentType", + "methodParameterSegments": [ + { + "$id": "713", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "133" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "713", + "$id": "714", "kind": "body", "name": "body", "serializedName": "body", @@ -10890,7 +11365,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put.body" + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put.body", + "methodParameterSegments": [ + { + "$id": "715", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "276" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -10917,40 +11412,10 @@ }, "parameters": [ { - "$id": "714", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "276" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "715" }, { - "$id": "715", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "133" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "713" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json index cd72d77e3c2..698359c7ce6 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json @@ -1353,7 +1353,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNonNull.accept" + "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNonNull.accept", + "methodParameterSegments": [ + { + "$id": "142", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNonNull.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1383,21 +1402,7 @@ }, "parameters": [ { - "$id": "142", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNonNull.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "142" } ], "response": { @@ -1438,7 +1443,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNull.accept" + "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNull.accept", + "methodParameterSegments": [ + { + "$id": "146", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNull.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1468,21 +1492,7 @@ }, "parameters": [ { - "$id": "146", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNull.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "146" } ], "response": { @@ -1524,10 +1534,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull.contentType" + "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull.contentType", + "methodParameterSegments": [ + { + "$id": "150", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "150", + "$id": "151", "kind": "body", "name": "body", "serializedName": "body", @@ -1543,7 +1573,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull.body" + "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull.body", + "methodParameterSegments": [ + { + "$id": "152", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "85" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1570,39 +1619,10 @@ }, "parameters": [ { - "$id": "151", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "150" }, { - "$id": "152", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "85" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "152" } ], "response": {}, @@ -1640,10 +1660,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull.contentType" + "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull.contentType", + "methodParameterSegments": [ + { + "$id": "156", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "156", + "$id": "157", "kind": "body", "name": "body", "serializedName": "body", @@ -1659,7 +1699,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull.body" + "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull.body", + "methodParameterSegments": [ + { + "$id": "158", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "85" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1686,39 +1745,10 @@ }, "parameters": [ { - "$id": "157", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "156" }, { - "$id": "158", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "85" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "158" } ], "response": {}, @@ -1803,7 +1833,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNonNull.accept" + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNonNull.accept", + "methodParameterSegments": [ + { + "$id": "166", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNonNull.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1833,21 +1882,7 @@ }, "parameters": [ { - "$id": "166", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNonNull.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "166" } ], "response": { @@ -1888,7 +1923,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNull.accept" + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNull.accept", + "methodParameterSegments": [ + { + "$id": "170", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNull.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1918,21 +1972,7 @@ }, "parameters": [ { - "$id": "170", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNull.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "170" } ], "response": { @@ -1974,10 +2014,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull.contentType" + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull.contentType", + "methodParameterSegments": [ + { + "$id": "174", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "174", + "$id": "175", "kind": "body", "name": "body", "serializedName": "body", @@ -1993,7 +2053,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull.body" + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull.body", + "methodParameterSegments": [ + { + "$id": "176", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "91" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2020,39 +2099,10 @@ }, "parameters": [ { - "$id": "175", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "174" }, { - "$id": "176", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "91" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "176" } ], "response": {}, @@ -2090,10 +2140,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull.contentType" + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull.contentType", + "methodParameterSegments": [ + { + "$id": "180", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "180", + "$id": "181", "kind": "body", "name": "body", "serializedName": "body", @@ -2109,7 +2179,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull.body" + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull.body", + "methodParameterSegments": [ + { + "$id": "182", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "91" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2136,39 +2225,10 @@ }, "parameters": [ { - "$id": "181", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "21" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "180" }, { - "$id": "182", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "91" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "182" } ], "response": {}, @@ -2253,7 +2313,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNonNull.accept" + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNonNull.accept", + "methodParameterSegments": [ + { + "$id": "190", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNonNull.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2283,21 +2362,7 @@ }, "parameters": [ { - "$id": "190", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "25" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNonNull.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "190" } ], "response": { @@ -2338,7 +2403,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNull.accept" + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNull.accept", + "methodParameterSegments": [ + { + "$id": "194", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNull.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2368,21 +2452,7 @@ }, "parameters": [ { - "$id": "194", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "27" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNull.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "194" } ], "response": { @@ -2424,10 +2494,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull.contentType" + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull.contentType", + "methodParameterSegments": [ + { + "$id": "198", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "198", + "$id": "199", "kind": "body", "name": "body", "serializedName": "body", @@ -2443,7 +2533,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull.body" + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull.body", + "methodParameterSegments": [ + { + "$id": "200", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "97" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2470,39 +2579,10 @@ }, "parameters": [ { - "$id": "199", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "29" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "198" }, { - "$id": "200", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "97" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "200" } ], "response": {}, @@ -2540,10 +2620,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull.contentType" + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull.contentType", + "methodParameterSegments": [ + { + "$id": "204", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "204", + "$id": "205", "kind": "body", "name": "body", "serializedName": "body", @@ -2559,7 +2659,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull.body" + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull.body", + "methodParameterSegments": [ + { + "$id": "206", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "97" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2586,39 +2705,10 @@ }, "parameters": [ { - "$id": "205", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "33" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "204" }, { - "$id": "206", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "97" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "206" } ], "response": {}, @@ -2703,7 +2793,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNonNull.accept" + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNonNull.accept", + "methodParameterSegments": [ + { + "$id": "214", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNonNull.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2733,21 +2842,7 @@ }, "parameters": [ { - "$id": "214", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "37" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNonNull.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "214" } ], "response": { @@ -2788,7 +2883,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNull.accept" + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNull.accept", + "methodParameterSegments": [ + { + "$id": "218", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNull.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2818,21 +2932,7 @@ }, "parameters": [ { - "$id": "218", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "39" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNull.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "218" } ], "response": { @@ -2874,10 +2974,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull.contentType" + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull.contentType", + "methodParameterSegments": [ + { + "$id": "222", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "222", + "$id": "223", "kind": "body", "name": "body", "serializedName": "body", @@ -2893,7 +3013,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull.body" + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull.body", + "methodParameterSegments": [ + { + "$id": "224", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "104" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2920,39 +3059,10 @@ }, "parameters": [ { - "$id": "223", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "41" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "222" }, { - "$id": "224", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "104" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "224" } ], "response": {}, @@ -2990,10 +3100,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull.contentType" + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull.contentType", + "methodParameterSegments": [ + { + "$id": "228", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "228", + "$id": "229", "kind": "body", "name": "body", "serializedName": "body", @@ -3009,7 +3139,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull.body" + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull.body", + "methodParameterSegments": [ + { + "$id": "230", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "104" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3036,39 +3185,10 @@ }, "parameters": [ { - "$id": "229", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "45" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "228" }, { - "$id": "230", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "104" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "230" } ], "response": {}, @@ -3153,7 +3273,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNonNull.accept" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNonNull.accept", + "methodParameterSegments": [ + { + "$id": "238", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNonNull.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3183,21 +3322,7 @@ }, "parameters": [ { - "$id": "238", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "49" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNonNull.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "238" } ], "response": { @@ -3238,7 +3363,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNull.accept" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNull.accept", + "methodParameterSegments": [ + { + "$id": "242", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNull.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3268,21 +3412,7 @@ }, "parameters": [ { - "$id": "242", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "51" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNull.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "242" } ], "response": { @@ -3324,10 +3454,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull.contentType" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull.contentType", + "methodParameterSegments": [ + { + "$id": "246", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "246", + "$id": "247", "kind": "body", "name": "body", "serializedName": "body", @@ -3343,7 +3493,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull.body" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull.body", + "methodParameterSegments": [ + { + "$id": "248", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "111" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3370,39 +3539,10 @@ }, "parameters": [ { - "$id": "247", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "53" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "246" }, { - "$id": "248", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "111" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "248" } ], "response": {}, @@ -3440,10 +3580,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull.contentType" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull.contentType", + "methodParameterSegments": [ + { + "$id": "252", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "57" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "252", + "$id": "253", "kind": "body", "name": "body", "serializedName": "body", @@ -3459,7 +3619,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull.body" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull.body", + "methodParameterSegments": [ + { + "$id": "254", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "111" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3486,39 +3665,10 @@ }, "parameters": [ { - "$id": "253", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "57" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "252" }, { - "$id": "254", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "111" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "254" } ], "response": {}, @@ -3603,7 +3753,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNonNull.accept" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNonNull.accept", + "methodParameterSegments": [ + { + "$id": "262", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "61" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNonNull.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3633,21 +3802,7 @@ }, "parameters": [ { - "$id": "262", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "61" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNonNull.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "262" } ], "response": { @@ -3688,7 +3843,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNull.accept" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNull.accept", + "methodParameterSegments": [ + { + "$id": "266", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "63" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNull.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3718,21 +3892,7 @@ }, "parameters": [ { - "$id": "266", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "63" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNull.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "266" } ], "response": { @@ -3774,10 +3934,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull.contentType" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull.contentType", + "methodParameterSegments": [ + { + "$id": "270", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "65" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "270", + "$id": "271", "kind": "body", "name": "body", "serializedName": "body", @@ -3793,7 +3973,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull.body" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull.body", + "methodParameterSegments": [ + { + "$id": "272", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "118" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3820,39 +4019,10 @@ }, "parameters": [ { - "$id": "271", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "65" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "270" }, { - "$id": "272", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "118" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "272" } ], "response": {}, @@ -3890,10 +4060,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull.contentType" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull.contentType", + "methodParameterSegments": [ + { + "$id": "276", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "69" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "276", + "$id": "277", "kind": "body", "name": "body", "serializedName": "body", @@ -3909,7 +4099,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull.body" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull.body", + "methodParameterSegments": [ + { + "$id": "278", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "118" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3936,39 +4145,10 @@ }, "parameters": [ { - "$id": "277", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "69" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "276" }, { - "$id": "278", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "118" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "278" } ], "response": {}, @@ -4053,7 +4233,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNonNull.accept" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNonNull.accept", + "methodParameterSegments": [ + { + "$id": "286", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "73" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNonNull.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4083,21 +4282,7 @@ }, "parameters": [ { - "$id": "286", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "73" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNonNull.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "286" } ], "response": { @@ -4138,7 +4323,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNull.accept" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNull.accept", + "methodParameterSegments": [ + { + "$id": "290", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "75" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNull.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4168,21 +4372,7 @@ }, "parameters": [ { - "$id": "290", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "75" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNull.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "290" } ], "response": { @@ -4224,10 +4414,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull.contentType" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull.contentType", + "methodParameterSegments": [ + { + "$id": "294", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "77" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "294", + "$id": "295", "kind": "body", "name": "body", "serializedName": "body", @@ -4243,7 +4453,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull.body" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull.body", + "methodParameterSegments": [ + { + "$id": "296", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "127" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4270,39 +4499,10 @@ }, "parameters": [ { - "$id": "295", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "77" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "294" }, { - "$id": "296", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "127" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "296" } ], "response": {}, @@ -4340,10 +4540,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull.contentType" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull.contentType", + "methodParameterSegments": [ + { + "$id": "300", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$ref": "81" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "300", + "$id": "301", "kind": "body", "name": "body", "serializedName": "body", @@ -4359,7 +4579,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull.body" + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull.body", + "methodParameterSegments": [ + { + "$id": "302", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "127" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4386,39 +4625,10 @@ }, "parameters": [ { - "$id": "301", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$ref": "81" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "300" }, { - "$id": "302", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "127" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "302" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json index 4b2dec8bbd4..729792586e3 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json @@ -2092,7 +2092,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.String.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.String.getAll.accept", + "methodParameterSegments": [ + { + "$id": "209", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.String.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2122,21 +2141,7 @@ }, "parameters": [ { - "$id": "209", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "27" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.String.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "209" } ], "response": { @@ -2177,7 +2182,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.String.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.String.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "213", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.String.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2207,21 +2231,7 @@ }, "parameters": [ { - "$id": "213", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "29" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.String.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "213" } ], "response": { @@ -2263,10 +2273,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.String.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.String.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "217", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "31" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.String.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "217", + "$id": "218", "kind": "body", "name": "body", "serializedName": "body", @@ -2282,7 +2312,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.String.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.String.putAll.body", + "methodParameterSegments": [ + { + "$id": "219", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "155" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.String.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2309,39 +2358,10 @@ }, "parameters": [ { - "$id": "218", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "155" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.String.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "219" }, { - "$id": "219", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "31" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.String.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "217" } ], "response": {}, @@ -2379,10 +2399,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.String.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.String.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "223", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.String.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "223", + "$id": "224", "kind": "body", "name": "body", "serializedName": "body", @@ -2398,7 +2438,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.String.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.String.putDefault.body", + "methodParameterSegments": [ + { + "$id": "225", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "155" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.String.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2425,39 +2484,10 @@ }, "parameters": [ { - "$id": "224", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "155" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.String.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "225" }, { - "$id": "225", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "33" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.String.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "223" } ], "response": {}, @@ -2542,7 +2572,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll.accept", + "methodParameterSegments": [ + { + "$id": "233", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "35" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2572,21 +2621,7 @@ }, "parameters": [ { - "$id": "233", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "35" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "233" } ], "response": { @@ -2627,7 +2662,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "237", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2657,21 +2711,7 @@ }, "parameters": [ { - "$id": "237", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "37" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "237" } ], "response": { @@ -2713,10 +2753,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "241", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "39" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "241", + "$id": "242", "kind": "body", "name": "body", "serializedName": "body", @@ -2732,7 +2792,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll.body", + "methodParameterSegments": [ + { + "$id": "243", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "158" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2759,39 +2838,10 @@ }, "parameters": [ { - "$id": "242", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "158" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "243" }, { - "$id": "243", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "39" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "241" } ], "response": {}, @@ -2829,10 +2879,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "247", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "247", + "$id": "248", "kind": "body", "name": "body", "serializedName": "body", @@ -2848,7 +2918,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault.body", + "methodParameterSegments": [ + { + "$id": "249", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "158" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2875,39 +2964,10 @@ }, "parameters": [ { - "$id": "248", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "158" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "249" }, { - "$id": "249", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "41" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "247" } ], "response": {}, @@ -2992,7 +3052,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getAll.accept", + "methodParameterSegments": [ + { + "$id": "257", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "43" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3022,21 +3101,7 @@ }, "parameters": [ { - "$id": "257", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "43" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "257" } ], "response": { @@ -3077,7 +3142,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "261", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "45" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3107,21 +3191,7 @@ }, "parameters": [ { - "$id": "261", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "45" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "261" } ], "response": { @@ -3163,10 +3233,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "265", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "265", + "$id": "266", "kind": "body", "name": "body", "serializedName": "body", @@ -3182,7 +3272,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll.body", + "methodParameterSegments": [ + { + "$id": "267", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "161" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3209,39 +3318,10 @@ }, "parameters": [ { - "$id": "266", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "161" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "267" }, { - "$id": "267", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "47" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "265" } ], "response": {}, @@ -3279,10 +3359,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "271", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "271", + "$id": "272", "kind": "body", "name": "body", "serializedName": "body", @@ -3298,7 +3398,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault.body", + "methodParameterSegments": [ + { + "$id": "273", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "161" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3325,39 +3444,10 @@ }, "parameters": [ { - "$id": "272", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "161" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "273" }, { - "$id": "273", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "49" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "271" } ], "response": {}, @@ -3442,7 +3532,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll.accept", + "methodParameterSegments": [ + { + "$id": "281", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "51" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3472,21 +3581,7 @@ }, "parameters": [ { - "$id": "281", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "51" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "281" } ], "response": { @@ -3527,7 +3622,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "285", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "53" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3557,21 +3671,7 @@ }, "parameters": [ { - "$id": "285", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "53" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "285" } ], "response": { @@ -3613,10 +3713,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "289", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "55" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "289", + "$id": "290", "kind": "body", "name": "body", "serializedName": "body", @@ -3632,7 +3752,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll.body", + "methodParameterSegments": [ + { + "$id": "291", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "165" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3659,39 +3798,10 @@ }, "parameters": [ { - "$id": "290", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "165" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "291" }, { - "$id": "291", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "55" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "289" } ], "response": {}, @@ -3729,10 +3839,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "295", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "57" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "295", + "$id": "296", "kind": "body", "name": "body", "serializedName": "body", @@ -3748,7 +3878,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault.body", + "methodParameterSegments": [ + { + "$id": "297", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "165" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3775,39 +3924,10 @@ }, "parameters": [ { - "$id": "296", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "165" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "297" }, { - "$id": "297", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "57" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "295" } ], "response": {}, @@ -3892,7 +4012,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll.accept", + "methodParameterSegments": [ + { + "$id": "305", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "59" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3922,21 +4061,7 @@ }, "parameters": [ { - "$id": "305", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "59" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "305" } ], "response": { @@ -3977,7 +4102,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "309", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "61" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4007,21 +4151,7 @@ }, "parameters": [ { - "$id": "309", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "61" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "309" } ], "response": { @@ -4063,10 +4193,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "313", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "63" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "313", + "$id": "314", "kind": "body", "name": "body", "serializedName": "body", @@ -4082,7 +4232,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll.body", + "methodParameterSegments": [ + { + "$id": "315", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "169" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4109,39 +4278,10 @@ }, "parameters": [ { - "$id": "314", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "169" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "315" }, { - "$id": "315", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "63" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "313" } ], "response": {}, @@ -4179,10 +4319,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "319", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "65" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "319", + "$id": "320", "kind": "body", "name": "body", "serializedName": "body", @@ -4198,7 +4358,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault.body", + "methodParameterSegments": [ + { + "$id": "321", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "169" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4225,39 +4404,10 @@ }, "parameters": [ { - "$id": "320", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "169" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "321" }, { - "$id": "321", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "65" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "319" } ], "response": {}, @@ -4342,7 +4492,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll.accept", + "methodParameterSegments": [ + { + "$id": "329", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "67" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4372,21 +4541,7 @@ }, "parameters": [ { - "$id": "329", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "67" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "329" } ], "response": { @@ -4427,7 +4582,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "333", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "69" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4457,21 +4631,7 @@ }, "parameters": [ { - "$id": "333", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "69" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "333" } ], "response": { @@ -4513,10 +4673,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "337", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "71" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "337", + "$id": "338", "kind": "body", "name": "body", "serializedName": "body", @@ -4532,7 +4712,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll.body", + "methodParameterSegments": [ + { + "$id": "339", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "172" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4559,39 +4758,10 @@ }, "parameters": [ { - "$id": "338", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "172" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "339" }, { - "$id": "339", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "71" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "337" } ], "response": {}, @@ -4629,10 +4799,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "343", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "73" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "343", + "$id": "344", "kind": "body", "name": "body", "serializedName": "body", @@ -4648,7 +4838,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault.body", + "methodParameterSegments": [ + { + "$id": "345", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "172" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4675,39 +4884,10 @@ }, "parameters": [ { - "$id": "344", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "172" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "345" }, { - "$id": "345", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "73" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "343" } ], "response": {}, @@ -4792,7 +4972,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll.accept", + "methodParameterSegments": [ + { + "$id": "353", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "75" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4822,21 +5021,7 @@ }, "parameters": [ { - "$id": "353", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "75" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "353" } ], "response": { @@ -4877,7 +5062,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "357", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "77" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4907,21 +5111,7 @@ }, "parameters": [ { - "$id": "357", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "77" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "357" } ], "response": { @@ -4963,10 +5153,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "361", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "79" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "361", + "$id": "362", "kind": "body", "name": "body", "serializedName": "body", @@ -4982,7 +5192,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll.body", + "methodParameterSegments": [ + { + "$id": "363", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "175" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5009,39 +5238,10 @@ }, "parameters": [ { - "$id": "362", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "175" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "363" }, { - "$id": "363", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "79" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "361" } ], "response": {}, @@ -5079,10 +5279,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "367", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "81" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "367", + "$id": "368", "kind": "body", "name": "body", "serializedName": "body", @@ -5098,7 +5318,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault.body", + "methodParameterSegments": [ + { + "$id": "369", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "175" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5125,39 +5364,10 @@ }, "parameters": [ { - "$id": "368", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "175" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "369" }, { - "$id": "369", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "81" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "367" } ], "response": {}, @@ -5242,7 +5452,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll.accept", + "methodParameterSegments": [ + { + "$id": "377", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "83" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5272,21 +5501,7 @@ }, "parameters": [ { - "$id": "377", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "83" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "377" } ], "response": { @@ -5327,7 +5542,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "381", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "85" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5357,21 +5591,7 @@ }, "parameters": [ { - "$id": "381", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "85" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "381" } ], "response": { @@ -5413,10 +5633,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "385", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "87" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "385", + "$id": "386", "kind": "body", "name": "body", "serializedName": "body", @@ -5432,7 +5672,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll.body", + "methodParameterSegments": [ + { + "$id": "387", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "179" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5459,39 +5718,10 @@ }, "parameters": [ { - "$id": "386", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "179" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "387" }, { - "$id": "387", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "87" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "385" } ], "response": {}, @@ -5529,10 +5759,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "391", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "89" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "391", + "$id": "392", "kind": "body", "name": "body", "serializedName": "body", @@ -5548,7 +5798,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault.body", + "methodParameterSegments": [ + { + "$id": "393", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "179" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5575,39 +5844,10 @@ }, "parameters": [ { - "$id": "392", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "179" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "393" }, { - "$id": "393", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "89" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "391" } ], "response": {}, @@ -5692,7 +5932,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll.accept", + "methodParameterSegments": [ + { + "$id": "401", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "91" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5722,21 +5981,7 @@ }, "parameters": [ { - "$id": "401", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "91" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "401" } ], "response": { @@ -5777,7 +6022,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "405", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "93" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5807,21 +6071,7 @@ }, "parameters": [ { - "$id": "405", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "93" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "405" } ], "response": { @@ -5863,10 +6113,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "409", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "95" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "409", + "$id": "410", "kind": "body", "name": "body", "serializedName": "body", @@ -5882,7 +6152,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll.body", + "methodParameterSegments": [ + { + "$id": "411", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "182" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5909,39 +6198,10 @@ }, "parameters": [ { - "$id": "410", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "182" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "411" }, { - "$id": "411", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "95" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "409" } ], "response": {}, @@ -5979,10 +6239,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "415", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "97" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "415", + "$id": "416", "kind": "body", "name": "body", "serializedName": "body", @@ -5998,7 +6278,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault.body", + "methodParameterSegments": [ + { + "$id": "417", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "182" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6025,39 +6324,10 @@ }, "parameters": [ { - "$id": "416", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "182" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "417" }, { - "$id": "417", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "97" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "415" } ], "response": {}, @@ -6142,7 +6412,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll.accept", + "methodParameterSegments": [ + { + "$id": "425", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "99" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6172,21 +6461,7 @@ }, "parameters": [ { - "$id": "425", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "99" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "425" } ], "response": { @@ -6227,7 +6502,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "429", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "101" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6257,21 +6551,7 @@ }, "parameters": [ { - "$id": "429", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "101" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "429" } ], "response": { @@ -6313,10 +6593,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "433", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "103" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "433", + "$id": "434", "kind": "body", "name": "body", "serializedName": "body", @@ -6332,7 +6632,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll.body", + "methodParameterSegments": [ + { + "$id": "435", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "184" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6359,39 +6678,10 @@ }, "parameters": [ { - "$id": "434", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "184" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "435" }, { - "$id": "435", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "103" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "433" } ], "response": {}, @@ -6429,10 +6719,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "439", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "105" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "439", + "$id": "440", "kind": "body", "name": "body", "serializedName": "body", @@ -6448,7 +6758,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault.body", + "methodParameterSegments": [ + { + "$id": "441", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "184" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6475,39 +6804,10 @@ }, "parameters": [ { - "$id": "440", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "184" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "441" }, { - "$id": "441", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "105" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "439" } ], "response": {}, @@ -6592,7 +6892,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll.accept", + "methodParameterSegments": [ + { + "$id": "449", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "107" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6622,21 +6941,7 @@ }, "parameters": [ { - "$id": "449", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "107" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "449" } ], "response": { @@ -6677,7 +6982,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "453", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "109" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6707,21 +7031,7 @@ }, "parameters": [ { - "$id": "453", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "109" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "453" } ], "response": { @@ -6763,10 +7073,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "457", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "111" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "457", + "$id": "458", "kind": "body", "name": "body", "serializedName": "body", @@ -6782,7 +7112,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll.body", + "methodParameterSegments": [ + { + "$id": "459", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "186" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6809,39 +7158,10 @@ }, "parameters": [ { - "$id": "458", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "186" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "459" }, { - "$id": "459", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "111" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "457" } ], "response": {}, @@ -6879,10 +7199,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "463", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "113" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "463", + "$id": "464", "kind": "body", "name": "body", "serializedName": "body", @@ -6898,7 +7238,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault.body", + "methodParameterSegments": [ + { + "$id": "465", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "186" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6925,39 +7284,10 @@ }, "parameters": [ { - "$id": "464", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "186" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "465" }, { - "$id": "465", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "113" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "463" } ], "response": {}, @@ -7042,7 +7372,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll.accept", + "methodParameterSegments": [ + { + "$id": "473", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "115" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7072,21 +7421,7 @@ }, "parameters": [ { - "$id": "473", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "115" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "473" } ], "response": { @@ -7127,7 +7462,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "477", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "117" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7157,21 +7511,7 @@ }, "parameters": [ { - "$id": "477", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "117" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "477" } ], "response": { @@ -7213,10 +7553,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "481", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "119" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "481", + "$id": "482", "kind": "body", "name": "body", "serializedName": "body", @@ -7232,7 +7592,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll.body", + "methodParameterSegments": [ + { + "$id": "483", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "188" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7259,39 +7638,10 @@ }, "parameters": [ { - "$id": "482", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "188" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "483" }, { - "$id": "483", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "119" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "481" } ], "response": {}, @@ -7329,10 +7679,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "487", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "121" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "487", + "$id": "488", "kind": "body", "name": "body", "serializedName": "body", @@ -7348,7 +7718,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault.body", + "methodParameterSegments": [ + { + "$id": "489", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "188" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7375,39 +7764,10 @@ }, "parameters": [ { - "$id": "488", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "188" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "489" }, { - "$id": "489", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "121" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "487" } ], "response": {}, @@ -7492,7 +7852,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll.accept", + "methodParameterSegments": [ + { + "$id": "497", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "123" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7522,21 +7901,7 @@ }, "parameters": [ { - "$id": "497", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "123" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "497" } ], "response": { @@ -7577,7 +7942,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "501", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "125" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7607,21 +7991,7 @@ }, "parameters": [ { - "$id": "501", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "125" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "501" } ], "response": { @@ -7663,10 +8033,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "505", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "127" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "505", + "$id": "506", "kind": "body", "name": "body", "serializedName": "body", @@ -7682,7 +8072,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll.body", + "methodParameterSegments": [ + { + "$id": "507", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "190" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7709,39 +8118,10 @@ }, "parameters": [ { - "$id": "506", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "190" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "507" }, { - "$id": "507", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "127" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "505" } ], "response": {}, @@ -7779,10 +8159,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "511", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "129" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "511", + "$id": "512", "kind": "body", "name": "body", "serializedName": "body", @@ -7798,7 +8198,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault.body", + "methodParameterSegments": [ + { + "$id": "513", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "190" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7825,39 +8244,10 @@ }, "parameters": [ { - "$id": "512", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "190" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "513" }, { - "$id": "513", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "129" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "511" } ], "response": {}, @@ -7942,7 +8332,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll.accept", + "methodParameterSegments": [ + { + "$id": "521", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "131" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7972,21 +8381,7 @@ }, "parameters": [ { - "$id": "521", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "131" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "521" } ], "response": { @@ -8027,7 +8422,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "525", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "133" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8057,21 +8471,7 @@ }, "parameters": [ { - "$id": "525", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "133" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "525" } ], "response": { @@ -8113,10 +8513,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "529", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "135" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "529", + "$id": "530", "kind": "body", "name": "body", "serializedName": "body", @@ -8132,7 +8552,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll.body", + "methodParameterSegments": [ + { + "$id": "531", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "192" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8159,39 +8598,10 @@ }, "parameters": [ { - "$id": "530", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "192" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "531" }, { - "$id": "531", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "135" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "529" } ], "response": {}, @@ -8229,10 +8639,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "535", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "137" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "535", + "$id": "536", "kind": "body", "name": "body", "serializedName": "body", @@ -8248,7 +8678,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault.body", + "methodParameterSegments": [ + { + "$id": "537", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "192" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8275,39 +8724,10 @@ }, "parameters": [ { - "$id": "536", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "192" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "537" }, { - "$id": "537", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "137" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "535" } ], "response": {}, @@ -8392,7 +8812,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll.accept", + "methodParameterSegments": [ + { + "$id": "545", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "139" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8422,21 +8861,7 @@ }, "parameters": [ { - "$id": "545", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "139" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "545" } ], "response": { @@ -8477,7 +8902,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault.accept", + "methodParameterSegments": [ + { + "$id": "549", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "141" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8507,21 +8951,7 @@ }, "parameters": [ { - "$id": "549", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "141" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "549" } ], "response": { @@ -8563,10 +8993,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "553", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "143" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "553", + "$id": "554", "kind": "body", "name": "body", "serializedName": "body", @@ -8582,7 +9032,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll.body", + "methodParameterSegments": [ + { + "$id": "555", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "194" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8609,39 +9078,10 @@ }, "parameters": [ { - "$id": "554", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "194" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "555" }, { - "$id": "555", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "143" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "553" } ], "response": {}, @@ -8679,10 +9119,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault.contentType", + "methodParameterSegments": [ + { + "$id": "559", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "145" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "559", + "$id": "560", "kind": "body", "name": "body", "serializedName": "body", @@ -8698,7 +9158,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault.body" + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault.body", + "methodParameterSegments": [ + { + "$id": "561", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "194" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8725,39 +9204,10 @@ }, "parameters": [ { - "$id": "560", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "194" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "561" }, { - "$id": "561", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "145" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "559" } ], "response": {}, @@ -8843,7 +9293,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getAll.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getAll.accept", + "methodParameterSegments": [ + { + "$id": "569", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "147" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getAll.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8873,21 +9342,7 @@ }, "parameters": [ { - "$id": "569", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "147" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getAll.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "569" } ], "response": { @@ -8928,7 +9383,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly.accept" + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly.accept", + "methodParameterSegments": [ + { + "$id": "573", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "149" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8958,21 +9432,7 @@ }, "parameters": [ { - "$id": "573", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "149" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "573" } ], "response": { @@ -9014,10 +9474,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll.contentType", + "methodParameterSegments": [ + { + "$id": "577", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "151" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "577", + "$id": "578", "kind": "body", "name": "body", "serializedName": "body", @@ -9033,7 +9513,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll.body" + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll.body", + "methodParameterSegments": [ + { + "$id": "579", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "196" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9060,39 +9559,10 @@ }, "parameters": [ { - "$id": "578", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "196" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "579" }, { - "$id": "579", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "151" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "577" } ], "response": {}, @@ -9130,10 +9600,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly.contentType" + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly.contentType", + "methodParameterSegments": [ + { + "$id": "583", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "153" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "583", + "$id": "584", "kind": "body", "name": "body", "serializedName": "body", @@ -9149,7 +9639,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly.body" + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly.body", + "methodParameterSegments": [ + { + "$id": "585", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "196" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9176,39 +9685,10 @@ }, "parameters": [ { - "$id": "584", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "196" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "585" }, { - "$id": "585", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "153" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "583" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json index ee363bfbb50..a5b1e521f53 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json @@ -2658,7 +2658,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get.accept", + "methodParameterSegments": [ + { + "$id": "243", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "32" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2688,21 +2707,7 @@ }, "parameters": [ { - "$id": "243", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "32" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "243" } ], "response": { @@ -2744,10 +2749,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put.contentType", + "methodParameterSegments": [ + { + "$id": "247", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "34" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "247", + "$id": "248", "kind": "body", "name": "body", "serializedName": "body", @@ -2764,7 +2789,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put.body", + "methodParameterSegments": [ + { + "$id": "249", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "148" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2791,40 +2836,10 @@ }, "parameters": [ { - "$id": "248", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "148" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "249" }, { - "$id": "249", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "34" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "247" } ], "response": {}, @@ -2909,7 +2924,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.get.accept", + "methodParameterSegments": [ + { + "$id": "257", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "36" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2939,21 +2973,7 @@ }, "parameters": [ { - "$id": "257", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "36" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "257" } ], "response": { @@ -2995,10 +3015,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.put.contentType", + "methodParameterSegments": [ + { + "$id": "261", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "38" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "261", + "$id": "262", "kind": "body", "name": "body", "serializedName": "body", @@ -3015,7 +3055,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.put.body", + "methodParameterSegments": [ + { + "$id": "263", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "151" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3042,40 +3102,10 @@ }, "parameters": [ { - "$id": "262", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "151" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "263" }, { - "$id": "263", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "38" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "261" } ], "response": {}, @@ -3160,7 +3190,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get.accept", + "methodParameterSegments": [ + { + "$id": "271", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "40" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3190,21 +3239,7 @@ }, "parameters": [ { - "$id": "271", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "40" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "271" } ], "response": { @@ -3246,10 +3281,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put.contentType", + "methodParameterSegments": [ + { + "$id": "275", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "42" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "275", + "$id": "276", "kind": "body", "name": "body", "serializedName": "body", @@ -3266,7 +3321,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put.body", + "methodParameterSegments": [ + { + "$id": "277", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "154" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3293,40 +3368,10 @@ }, "parameters": [ { - "$id": "276", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "154" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "277" }, { - "$id": "277", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "42" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "275" } ], "response": {}, @@ -3411,7 +3456,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get.accept", + "methodParameterSegments": [ + { + "$id": "285", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "44" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3441,21 +3505,7 @@ }, "parameters": [ { - "$id": "285", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "285" } ], "response": { @@ -3497,10 +3547,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put.contentType", + "methodParameterSegments": [ + { + "$id": "289", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "46" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "289", + "$id": "290", "kind": "body", "name": "body", "serializedName": "body", @@ -3517,7 +3587,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put.body", + "methodParameterSegments": [ + { + "$id": "291", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "157" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3544,40 +3634,10 @@ }, "parameters": [ { - "$id": "290", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "157" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "291" }, { - "$id": "291", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "289" } ], "response": {}, @@ -3662,7 +3722,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get.accept", + "methodParameterSegments": [ + { + "$id": "299", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "48" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3692,21 +3771,7 @@ }, "parameters": [ { - "$id": "299", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "299" } ], "response": { @@ -3748,10 +3813,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put.contentType", + "methodParameterSegments": [ + { + "$id": "303", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "50" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "303", + "$id": "304", "kind": "body", "name": "body", "serializedName": "body", @@ -3768,7 +3853,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put.body", + "methodParameterSegments": [ + { + "$id": "305", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "160" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3795,40 +3900,10 @@ }, "parameters": [ { - "$id": "304", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "160" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "305" }, { - "$id": "305", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "303" } ], "response": {}, @@ -3913,7 +3988,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get.accept", + "methodParameterSegments": [ + { + "$id": "313", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "52" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3943,21 +4037,7 @@ }, "parameters": [ { - "$id": "313", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "313" } ], "response": { @@ -3999,10 +4079,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put.contentType", + "methodParameterSegments": [ + { + "$id": "317", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "54" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "317", + "$id": "318", "kind": "body", "name": "body", "serializedName": "body", @@ -4019,7 +4119,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put.body", + "methodParameterSegments": [ + { + "$id": "319", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "163" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4046,40 +4166,10 @@ }, "parameters": [ { - "$id": "318", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "163" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "319" }, { - "$id": "319", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "54" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "317" } ], "response": {}, @@ -4164,7 +4254,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get.accept", + "methodParameterSegments": [ + { + "$id": "327", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "56" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4194,21 +4303,7 @@ }, "parameters": [ { - "$id": "327", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "56" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "327" } ], "response": { @@ -4250,10 +4345,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put.contentType", + "methodParameterSegments": [ + { + "$id": "331", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "58" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "331", + "$id": "332", "kind": "body", "name": "body", "serializedName": "body", @@ -4270,7 +4385,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put.body", + "methodParameterSegments": [ + { + "$id": "333", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "166" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4297,40 +4432,10 @@ }, "parameters": [ { - "$id": "332", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "166" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "333" }, { - "$id": "333", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "58" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "331" } ], "response": {}, @@ -4415,7 +4520,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get.accept", + "methodParameterSegments": [ + { + "$id": "341", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "60" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4445,21 +4569,7 @@ }, "parameters": [ { - "$id": "341", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "60" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "341" } ], "response": { @@ -4501,10 +4611,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put.contentType", + "methodParameterSegments": [ + { + "$id": "345", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "62" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "345", + "$id": "346", "kind": "body", "name": "body", "serializedName": "body", @@ -4521,7 +4651,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put.body", + "methodParameterSegments": [ + { + "$id": "347", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "169" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4548,40 +4698,10 @@ }, "parameters": [ { - "$id": "346", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "169" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "347" }, { - "$id": "347", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "62" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "345" } ], "response": {}, @@ -4666,7 +4786,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get.accept", + "methodParameterSegments": [ + { + "$id": "355", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "64" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4696,21 +4835,7 @@ }, "parameters": [ { - "$id": "355", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "64" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "355" } ], "response": { @@ -4752,10 +4877,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put.contentType", + "methodParameterSegments": [ + { + "$id": "359", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "66" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "359", + "$id": "360", "kind": "body", "name": "body", "serializedName": "body", @@ -4772,7 +4917,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put.body", + "methodParameterSegments": [ + { + "$id": "361", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "173" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4799,40 +4964,10 @@ }, "parameters": [ { - "$id": "360", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "173" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "361" }, { - "$id": "361", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "66" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "359" } ], "response": {}, @@ -4917,7 +5052,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get.accept", + "methodParameterSegments": [ + { + "$id": "369", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "68" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4947,21 +5101,7 @@ }, "parameters": [ { - "$id": "369", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "68" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "369" } ], "response": { @@ -5003,10 +5143,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put.contentType", + "methodParameterSegments": [ + { + "$id": "373", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "70" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "373", + "$id": "374", "kind": "body", "name": "body", "serializedName": "body", @@ -5023,7 +5183,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put.body", + "methodParameterSegments": [ + { + "$id": "375", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "177" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5050,40 +5230,10 @@ }, "parameters": [ { - "$id": "374", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "177" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "375" }, { - "$id": "375", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "70" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "373" } ], "response": {}, @@ -5168,7 +5318,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get.accept", + "methodParameterSegments": [ + { + "$id": "383", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "72" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5198,21 +5367,7 @@ }, "parameters": [ { - "$id": "383", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "72" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "383" } ], "response": { @@ -5254,10 +5409,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put.contentType", + "methodParameterSegments": [ + { + "$id": "387", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "74" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "387", + "$id": "388", "kind": "body", "name": "body", "serializedName": "body", @@ -5274,7 +5449,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put.body", + "methodParameterSegments": [ + { + "$id": "389", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "179" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5301,40 +5496,10 @@ }, "parameters": [ { - "$id": "388", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "179" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "389" }, { - "$id": "389", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "74" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "387" } ], "response": {}, @@ -5419,7 +5584,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get.accept", + "methodParameterSegments": [ + { + "$id": "397", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "76" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5449,21 +5633,7 @@ }, "parameters": [ { - "$id": "397", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "76" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "397" } ], "response": { @@ -5505,10 +5675,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put.contentType", + "methodParameterSegments": [ + { + "$id": "401", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "78" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "401", + "$id": "402", "kind": "body", "name": "body", "serializedName": "body", @@ -5525,7 +5715,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put.body", + "methodParameterSegments": [ + { + "$id": "403", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "181" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5552,40 +5762,10 @@ }, "parameters": [ { - "$id": "402", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "181" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "403" }, { - "$id": "403", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "78" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "401" } ], "response": {}, @@ -5670,7 +5850,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get.accept", + "methodParameterSegments": [ + { + "$id": "411", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "80" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5700,21 +5899,7 @@ }, "parameters": [ { - "$id": "411", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "80" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "411" } ], "response": { @@ -5756,10 +5941,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put.contentType", + "methodParameterSegments": [ + { + "$id": "415", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "82" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "415", + "$id": "416", "kind": "body", "name": "body", "serializedName": "body", @@ -5776,7 +5981,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put.body", + "methodParameterSegments": [ + { + "$id": "417", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "186" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5803,40 +6028,10 @@ }, "parameters": [ { - "$id": "416", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "186" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "417" }, { - "$id": "417", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "82" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "415" } ], "response": {}, @@ -5921,7 +6116,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get.accept", + "methodParameterSegments": [ + { + "$id": "425", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "84" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -5951,21 +6165,7 @@ }, "parameters": [ { - "$id": "425", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "84" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "425" } ], "response": { @@ -6007,10 +6207,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put.contentType", + "methodParameterSegments": [ + { + "$id": "429", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "86" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "429", + "$id": "430", "kind": "body", "name": "body", "serializedName": "body", @@ -6027,7 +6247,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put.body", + "methodParameterSegments": [ + { + "$id": "431", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "190" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6054,40 +6294,10 @@ }, "parameters": [ { - "$id": "430", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "190" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "431" }, { - "$id": "431", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "86" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "429" } ], "response": {}, @@ -6172,7 +6382,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get.accept", + "methodParameterSegments": [ + { + "$id": "439", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "88" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6202,21 +6431,7 @@ }, "parameters": [ { - "$id": "439", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "88" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "439" } ], "response": { @@ -6258,10 +6473,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put.contentType", + "methodParameterSegments": [ + { + "$id": "443", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "90" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "443", + "$id": "444", "kind": "body", "name": "body", "serializedName": "body", @@ -6278,7 +6513,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put.body", + "methodParameterSegments": [ + { + "$id": "445", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "194" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6305,40 +6560,10 @@ }, "parameters": [ { - "$id": "444", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "194" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "445" }, { - "$id": "445", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "90" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "443" } ], "response": {}, @@ -6423,7 +6648,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get.accept", + "methodParameterSegments": [ + { + "$id": "453", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "92" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6453,21 +6697,7 @@ }, "parameters": [ { - "$id": "453", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "92" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "453" } ], "response": { @@ -6509,10 +6739,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put.contentType", + "methodParameterSegments": [ + { + "$id": "457", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "94" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "457", + "$id": "458", "kind": "body", "name": "body", "serializedName": "body", @@ -6529,7 +6779,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put.body", + "methodParameterSegments": [ + { + "$id": "459", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "197" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6556,40 +6826,10 @@ }, "parameters": [ { - "$id": "458", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "197" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "459" }, { - "$id": "459", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "94" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "457" } ], "response": {}, @@ -6674,7 +6914,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get.accept", + "methodParameterSegments": [ + { + "$id": "467", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "96" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6704,21 +6963,7 @@ }, "parameters": [ { - "$id": "467", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "96" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "467" } ], "response": { @@ -6760,10 +7005,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put.contentType", + "methodParameterSegments": [ + { + "$id": "471", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "98" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "471", + "$id": "472", "kind": "body", "name": "body", "serializedName": "body", @@ -6780,7 +7045,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put.body", + "methodParameterSegments": [ + { + "$id": "473", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "202" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6807,40 +7092,10 @@ }, "parameters": [ { - "$id": "472", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "202" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "473" }, { - "$id": "473", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "98" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "471" } ], "response": {}, @@ -6925,7 +7180,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get.accept", + "methodParameterSegments": [ + { + "$id": "481", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "100" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -6955,21 +7229,7 @@ }, "parameters": [ { - "$id": "481", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "100" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "481" } ], "response": { @@ -7011,10 +7271,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put.contentType", + "methodParameterSegments": [ + { + "$id": "485", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "102" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "485", + "$id": "486", "kind": "body", "name": "body", "serializedName": "body", @@ -7031,7 +7311,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put.body", + "methodParameterSegments": [ + { + "$id": "487", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "203" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7058,40 +7358,10 @@ }, "parameters": [ { - "$id": "486", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "203" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "487" }, { - "$id": "487", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "102" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "485" } ], "response": {}, @@ -7176,7 +7446,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get.accept", + "methodParameterSegments": [ + { + "$id": "495", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "104" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7206,21 +7495,7 @@ }, "parameters": [ { - "$id": "495", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "104" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "495" } ], "response": { @@ -7262,10 +7537,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put.contentType", + "methodParameterSegments": [ + { + "$id": "499", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "106" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "499", + "$id": "500", "kind": "body", "name": "body", "serializedName": "body", @@ -7282,7 +7577,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put.body", + "methodParameterSegments": [ + { + "$id": "501", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "206" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7309,40 +7624,10 @@ }, "parameters": [ { - "$id": "500", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "206" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "501" }, { - "$id": "501", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "106" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "499" } ], "response": {}, @@ -7427,7 +7712,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get.accept", + "methodParameterSegments": [ + { + "$id": "509", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "108" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7457,21 +7761,7 @@ }, "parameters": [ { - "$id": "509", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "108" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "509" } ], "response": { @@ -7513,10 +7803,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put.contentType", + "methodParameterSegments": [ + { + "$id": "513", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "110" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "513", + "$id": "514", "kind": "body", "name": "body", "serializedName": "body", @@ -7533,7 +7843,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put.body", + "methodParameterSegments": [ + { + "$id": "515", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "209" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7560,40 +7890,10 @@ }, "parameters": [ { - "$id": "514", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "209" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "515" }, { - "$id": "515", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "110" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "513" } ], "response": {}, @@ -7678,7 +7978,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get.accept", + "methodParameterSegments": [ + { + "$id": "523", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "112" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7708,21 +8027,7 @@ }, "parameters": [ { - "$id": "523", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "112" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "523" } ], "response": { @@ -7764,10 +8069,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put.contentType", + "methodParameterSegments": [ + { + "$id": "527", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "114" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "527", + "$id": "528", "kind": "body", "name": "body", "serializedName": "body", @@ -7784,7 +8109,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put.body", + "methodParameterSegments": [ + { + "$id": "529", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "212" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7811,40 +8156,10 @@ }, "parameters": [ { - "$id": "528", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "212" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "529" }, { - "$id": "529", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "114" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "527" } ], "response": {}, @@ -7929,7 +8244,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get.accept", + "methodParameterSegments": [ + { + "$id": "537", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "116" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -7959,21 +8293,7 @@ }, "parameters": [ { - "$id": "537", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "116" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "537" } ], "response": { @@ -8015,10 +8335,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put.contentType", + "methodParameterSegments": [ + { + "$id": "541", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "118" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "541", + "$id": "542", "kind": "body", "name": "body", "serializedName": "body", @@ -8035,7 +8375,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put.body", + "methodParameterSegments": [ + { + "$id": "543", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "215" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8062,40 +8422,10 @@ }, "parameters": [ { - "$id": "542", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "215" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "543" }, { - "$id": "543", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "118" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "541" } ], "response": {}, @@ -8180,7 +8510,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get.accept", + "methodParameterSegments": [ + { + "$id": "551", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "120" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8210,21 +8559,7 @@ }, "parameters": [ { - "$id": "551", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "120" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "551" } ], "response": { @@ -8266,10 +8601,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put.contentType", + "methodParameterSegments": [ + { + "$id": "555", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "122" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "555", + "$id": "556", "kind": "body", "name": "body", "serializedName": "body", @@ -8286,7 +8641,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put.body", + "methodParameterSegments": [ + { + "$id": "557", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "217" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8313,40 +8688,10 @@ }, "parameters": [ { - "$id": "556", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "217" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "557" }, { - "$id": "557", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "122" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "555" } ], "response": {}, @@ -8431,7 +8776,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get.accept", + "methodParameterSegments": [ + { + "$id": "565", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "124" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8461,21 +8825,7 @@ }, "parameters": [ { - "$id": "565", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "124" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "565" } ], "response": { @@ -8517,10 +8867,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put.contentType", + "methodParameterSegments": [ + { + "$id": "569", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "126" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "569", + "$id": "570", "kind": "body", "name": "body", "serializedName": "body", @@ -8537,7 +8907,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put.body", + "methodParameterSegments": [ + { + "$id": "571", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "219" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8564,40 +8954,10 @@ }, "parameters": [ { - "$id": "570", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "219" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "571" }, { - "$id": "571", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "126" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "569" } ], "response": {}, @@ -8682,7 +9042,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get.accept", + "methodParameterSegments": [ + { + "$id": "579", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "128" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8712,21 +9091,7 @@ }, "parameters": [ { - "$id": "579", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "128" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "579" } ], "response": { @@ -8768,10 +9133,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put.contentType", + "methodParameterSegments": [ + { + "$id": "583", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "130" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "583", + "$id": "584", "kind": "body", "name": "body", "serializedName": "body", @@ -8788,7 +9173,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put.body", + "methodParameterSegments": [ + { + "$id": "585", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "221" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8815,40 +9220,10 @@ }, "parameters": [ { - "$id": "584", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "221" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "585" }, { - "$id": "585", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "130" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "583" } ], "response": {}, @@ -8933,7 +9308,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get.accept", + "methodParameterSegments": [ + { + "$id": "593", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "132" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -8963,21 +9357,7 @@ }, "parameters": [ { - "$id": "593", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "132" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "593" } ], "response": { @@ -9019,10 +9399,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put.contentType", + "methodParameterSegments": [ + { + "$id": "597", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "134" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "597", + "$id": "598", "kind": "body", "name": "body", "serializedName": "body", @@ -9039,7 +9439,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put.body", + "methodParameterSegments": [ + { + "$id": "599", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "223" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9066,40 +9486,10 @@ }, "parameters": [ { - "$id": "598", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "223" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "599" }, { - "$id": "599", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "134" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "597" } ], "response": {}, @@ -9184,7 +9574,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get.accept", + "methodParameterSegments": [ + { + "$id": "607", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "136" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9214,21 +9623,7 @@ }, "parameters": [ { - "$id": "607", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "136" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "607" } ], "response": { @@ -9270,10 +9665,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put.contentType", + "methodParameterSegments": [ + { + "$id": "611", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "138" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "611", + "$id": "612", "kind": "body", "name": "body", "serializedName": "body", @@ -9290,7 +9705,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put.body", + "methodParameterSegments": [ + { + "$id": "613", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "225" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9317,40 +9752,10 @@ }, "parameters": [ { - "$id": "612", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "225" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "613" }, { - "$id": "613", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "138" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "611" } ], "response": {}, @@ -9435,7 +9840,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get.accept", + "methodParameterSegments": [ + { + "$id": "621", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "140" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9465,21 +9889,7 @@ }, "parameters": [ { - "$id": "621", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "140" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "621" } ], "response": { @@ -9521,10 +9931,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put.contentType", + "methodParameterSegments": [ + { + "$id": "625", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "142" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "625", + "$id": "626", "kind": "body", "name": "body", "serializedName": "body", @@ -9541,7 +9971,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put.body", + "methodParameterSegments": [ + { + "$id": "627", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "227" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9568,40 +10018,10 @@ }, "parameters": [ { - "$id": "626", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "227" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "627" }, { - "$id": "627", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "142" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "625" } ], "response": {}, @@ -9686,7 +10106,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get.accept" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get.accept", + "methodParameterSegments": [ + { + "$id": "635", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "144" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9716,21 +10155,7 @@ }, "parameters": [ { - "$id": "635", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "144" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "635" } ], "response": { @@ -9772,10 +10197,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put.contentType" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put.contentType", + "methodParameterSegments": [ + { + "$id": "639", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "146" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "639", + "$id": "640", "kind": "body", "name": "body", "serializedName": "body", @@ -9792,7 +10237,27 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put.body" + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put.body", + "methodParameterSegments": [ + { + "$id": "641", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "body", + "type": { + "$ref": "229" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -9819,40 +10284,10 @@ }, "parameters": [ { - "$id": "640", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "body", - "type": { - "$ref": "229" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "641" }, { - "$id": "641", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "146" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "639" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json index c5f20e56718..35f3093689a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json @@ -483,7 +483,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.String.get.accept" + "crossLanguageDefinitionId": "Type.Scalar.String.get.accept", + "methodParameterSegments": [ + { + "$id": "59", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Scalar.String.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -492,7 +511,7 @@ 200 ], "bodyType": { - "$id": "59", + "$id": "60", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -525,26 +544,12 @@ }, "parameters": [ { - "$id": "60", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Scalar.String.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "59" } ], "response": { "type": { - "$ref": "59" + "$ref": "60" } }, "isOverride": false, @@ -580,16 +585,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.String.put.contentType" + "crossLanguageDefinitionId": "Type.Scalar.String.put.contentType", + "methodParameterSegments": [ + { + "$id": "64", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Scalar.String.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "64", + "$id": "65", "kind": "body", "name": "body", "serializedName": "body", "doc": "_", "type": { - "$id": "65", + "$id": "66", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -604,7 +628,31 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Scalar.String.put.body" + "crossLanguageDefinitionId": "Type.Scalar.String.put.body", + "methodParameterSegments": [ + { + "$id": "67", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "_", + "type": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Scalar.String.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -631,43 +679,10 @@ }, "parameters": [ { - "$id": "66", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Scalar.String.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "64" }, { - "$id": "67", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "_", - "type": { - "$id": "68", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Scalar.String.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "67" } ], "response": {}, @@ -752,7 +767,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Boolean.get.accept" + "crossLanguageDefinitionId": "Type.Scalar.Boolean.get.accept", + "methodParameterSegments": [ + { + "$id": "76", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Scalar.Boolean.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -761,7 +795,7 @@ 200 ], "bodyType": { - "$id": "76", + "$id": "77", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -794,26 +828,12 @@ }, "parameters": [ { - "$id": "77", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Scalar.Boolean.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "76" } ], "response": { "type": { - "$ref": "76" + "$ref": "77" } }, "isOverride": false, @@ -849,16 +869,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Boolean.put.contentType" + "crossLanguageDefinitionId": "Type.Scalar.Boolean.put.contentType", + "methodParameterSegments": [ + { + "$id": "81", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Scalar.Boolean.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "81", + "$id": "82", "kind": "body", "name": "body", "serializedName": "body", "doc": "_", "type": { - "$id": "82", + "$id": "83", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -873,7 +912,31 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Scalar.Boolean.put.body" + "crossLanguageDefinitionId": "Type.Scalar.Boolean.put.body", + "methodParameterSegments": [ + { + "$id": "84", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "_", + "type": { + "$id": "85", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Scalar.Boolean.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -900,43 +963,10 @@ }, "parameters": [ { - "$id": "83", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Scalar.Boolean.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "81" }, { - "$id": "84", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "_", - "type": { - "$id": "85", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Scalar.Boolean.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "84" } ], "response": {}, @@ -1021,7 +1051,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Unknown.get.accept" + "crossLanguageDefinitionId": "Type.Scalar.Unknown.get.accept", + "methodParameterSegments": [ + { + "$id": "93", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Scalar.Unknown.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1030,7 +1079,7 @@ 200 ], "bodyType": { - "$id": "93", + "$id": "94", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1063,26 +1112,12 @@ }, "parameters": [ { - "$id": "94", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Scalar.Unknown.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "93" } ], "response": { "type": { - "$ref": "93" + "$ref": "94" } }, "isOverride": false, @@ -1118,16 +1153,35 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Unknown.put.contentType" + "crossLanguageDefinitionId": "Type.Scalar.Unknown.put.contentType", + "methodParameterSegments": [ + { + "$id": "98", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Scalar.Unknown.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "98", + "$id": "99", "kind": "body", "name": "body", "serializedName": "body", "doc": "_", "type": { - "$id": "99", + "$id": "100", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -1142,7 +1196,31 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Scalar.Unknown.put.body" + "crossLanguageDefinitionId": "Type.Scalar.Unknown.put.body", + "methodParameterSegments": [ + { + "$id": "101", + "kind": "method", + "name": "body", + "serializedName": "body", + "doc": "_", + "type": { + "$id": "102", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Scalar.Unknown.put.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1169,43 +1247,10 @@ }, "parameters": [ { - "$id": "100", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "21" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Scalar.Unknown.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "98" }, { - "$id": "101", - "kind": "method", - "name": "body", - "serializedName": "body", - "doc": "_", - "type": { - "$id": "102", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Scalar.Unknown.put.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "101" } ], "response": {}, @@ -1289,7 +1334,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.DecimalType.responseBody.accept" + "crossLanguageDefinitionId": "Type.Scalar.DecimalType.responseBody.accept", + "methodParameterSegments": [ + { + "$id": "110", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Scalar.DecimalType.responseBody.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1298,7 +1362,7 @@ 200 ], "bodyType": { - "$id": "110", + "$id": "111", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -1331,26 +1395,12 @@ }, "parameters": [ { - "$id": "111", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "25" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Scalar.DecimalType.responseBody.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "110" } ], "response": { "type": { - "$ref": "110" + "$ref": "111" } }, "isOverride": false, @@ -1384,15 +1434,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody.contentType" + "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody.contentType", + "methodParameterSegments": [ + { + "$id": "115", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "115", + "$id": "116", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$id": "116", + "$id": "117", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -1407,7 +1476,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody.body" + "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody.body", + "methodParameterSegments": [ + { + "$id": "118", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$id": "119", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1434,42 +1526,10 @@ }, "parameters": [ { - "$id": "117", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "29" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "115" }, { - "$id": "118", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$id": "119", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "118" } ], "response": {}, @@ -1508,7 +1568,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestParameter.value", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "124", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "125", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestParameter.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1532,25 +1615,7 @@ }, "parameters": [ { - "$id": "124", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "125", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestParameter.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "124" } ], "response": {}, @@ -1634,7 +1699,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.responseBody.accept" + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.responseBody.accept", + "methodParameterSegments": [ + { + "$id": "133", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "33" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.responseBody.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1643,7 +1727,7 @@ 200 ], "bodyType": { - "$id": "133", + "$id": "134", "kind": "decimal128", "name": "decimal128", "crossLanguageDefinitionId": "TypeSpec.decimal128", @@ -1676,26 +1760,12 @@ }, "parameters": [ { - "$id": "134", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "33" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.responseBody.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "133" } ], "response": { "type": { - "$ref": "133" + "$ref": "134" } }, "isOverride": false, @@ -1729,15 +1799,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody.contentType" + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody.contentType", + "methodParameterSegments": [ + { + "$id": "138", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "37" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "138", + "$id": "139", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$id": "139", + "$id": "140", "kind": "decimal128", "name": "decimal128", "crossLanguageDefinitionId": "TypeSpec.decimal128", @@ -1752,7 +1841,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody.body" + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody.body", + "methodParameterSegments": [ + { + "$id": "141", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$id": "142", + "kind": "decimal128", + "name": "decimal128", + "crossLanguageDefinitionId": "TypeSpec.decimal128", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1779,42 +1891,10 @@ }, "parameters": [ { - "$id": "140", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "37" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "138" }, { - "$id": "141", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$id": "142", - "kind": "decimal128", - "name": "decimal128", - "crossLanguageDefinitionId": "TypeSpec.decimal128", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "141" } ], "response": {}, @@ -1853,7 +1933,30 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestParameter.value", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "147", + "kind": "method", + "name": "value", + "serializedName": "value", + "type": { + "$id": "148", + "kind": "decimal128", + "name": "decimal128", + "crossLanguageDefinitionId": "TypeSpec.decimal128", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestParameter.value", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1877,25 +1980,7 @@ }, "parameters": [ { - "$id": "147", - "kind": "method", - "name": "value", - "serializedName": "value", - "type": { - "$id": "148", - "kind": "decimal128", - "name": "decimal128", - "crossLanguageDefinitionId": "TypeSpec.decimal128", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestParameter.value", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "147" } ], "response": {}, @@ -1979,7 +2064,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.prepareVerify.accept" + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.prepareVerify.accept", + "methodParameterSegments": [ + { + "$id": "156", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "41" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.prepareVerify.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1988,11 +2092,11 @@ 200 ], "bodyType": { - "$id": "156", + "$id": "157", "kind": "array", "name": "Array", "valueType": { - "$id": "157", + "$id": "158", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -2020,26 +2124,12 @@ }, "parameters": [ { - "$id": "158", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "41" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.prepareVerify.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "156" } ], "response": { "type": { - "$ref": "156" + "$ref": "157" } }, "isOverride": false, @@ -2073,15 +2163,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify.contentType" + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify.contentType", + "methodParameterSegments": [ + { + "$id": "162", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "49" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "162", + "$id": "163", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$id": "163", + "$id": "164", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -2096,7 +2205,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify.body" + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify.body", + "methodParameterSegments": [ + { + "$id": "165", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$id": "166", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2123,42 +2255,10 @@ }, "parameters": [ { - "$id": "164", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "49" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "162" }, { - "$id": "165", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$id": "166", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "165" } ], "response": {}, @@ -2242,7 +2342,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify.accept" + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify.accept", + "methodParameterSegments": [ + { + "$id": "174", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "47" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2251,7 +2370,7 @@ 200 ], "bodyType": { - "$ref": "156" + "$ref": "157" }, "headers": [], "isErrorResponse": false, @@ -2272,26 +2391,12 @@ }, "parameters": [ { - "$id": "174", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "47" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "174" } ], "response": { "type": { - "$ref": "156" + "$ref": "157" } }, "isOverride": false, @@ -2325,7 +2430,12 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify.contentType" + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify.contentType", + "methodParameterSegments": [ + { + "$ref": "162" + } + ] }, { "$id": "178", @@ -2348,7 +2458,12 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify.body" + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify.body", + "methodParameterSegments": [ + { + "$ref": "165" + } + ] } ], "responses": [ @@ -2375,7 +2490,7 @@ }, "parameters": [ { - "$ref": "164" + "$ref": "162" }, { "$ref": "165" diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/discriminated/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/discriminated/tspCodeModel.json index 846dab9a573..9cf0639cf54 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/discriminated/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/discriminated/tspCodeModel.json @@ -503,10 +503,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.get.kind", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "52", + "kind": "method", + "name": "kind", + "serializedName": "kind", + "type": { + "$id": "53", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.get.kind", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "52", + "$id": "54", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -519,7 +542,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.get.accept" + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.get.accept", + "methodParameterSegments": [ + { + "$id": "55", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "1" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -528,7 +570,7 @@ 200 ], "bodyType": { - "$id": "53", + "$id": "56", "kind": "union", "name": "PetWithEnvelope", "variantTypes": [ @@ -561,47 +603,15 @@ }, "parameters": [ { - "$id": "54", - "kind": "method", - "name": "kind", - "serializedName": "kind", - "type": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.get.kind", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "52" }, { - "$id": "56", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "1" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "55" } ], "response": { "type": { - "$ref": "53" + "$ref": "56" } }, "isOverride": false, @@ -636,10 +646,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.put.contentType" + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.put.contentType", + "methodParameterSegments": [ + { + "$id": "60", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "3" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "60", + "$id": "61", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -652,15 +682,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.put.accept" + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.put.accept", + "methodParameterSegments": [ + { + "$id": "62", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.put.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "61", + "$id": "63", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "53" + "$ref": "56" }, "isApiVersion": false, "contentTypes": [ @@ -671,7 +720,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.put.input" + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.put.input", + "methodParameterSegments": [ + { + "$id": "64", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "56" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -680,7 +748,7 @@ 200 ], "bodyType": { - "$ref": "53" + "$ref": "56" }, "headers": [], "isErrorResponse": false, @@ -704,61 +772,18 @@ }, "parameters": [ { - "$id": "62", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "53" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.put.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "64" }, { - "$id": "63", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "3" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "60" }, { - "$id": "64", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default.put.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "62" } ], "response": { "type": { - "$ref": "53" + "$ref": "56" } }, "isOverride": false, @@ -844,10 +869,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.get.petType", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "73", + "kind": "method", + "name": "petType", + "serializedName": "petType", + "type": { + "$id": "74", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.get.petType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "73", + "$id": "75", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -860,7 +908,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.get.accept" + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.get.accept", + "methodParameterSegments": [ + { + "$id": "76", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -869,7 +936,7 @@ 200 ], "bodyType": { - "$id": "74", + "$id": "77", "kind": "union", "name": "PetWithCustomNames", "variantTypes": [ @@ -902,47 +969,15 @@ }, "parameters": [ { - "$id": "75", - "kind": "method", - "name": "petType", - "serializedName": "petType", - "type": { - "$id": "76", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.get.petType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "73" }, { - "$id": "77", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "76" } ], "response": { "type": { - "$ref": "74" + "$ref": "77" } }, "isOverride": false, @@ -977,10 +1012,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.put.contentType" + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.put.contentType", + "methodParameterSegments": [ + { + "$id": "81", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "81", + "$id": "82", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -993,15 +1048,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.put.accept" + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.put.accept", + "methodParameterSegments": [ + { + "$id": "83", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.put.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "82", + "$id": "84", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "74" + "$ref": "77" }, "isApiVersion": false, "contentTypes": [ @@ -1012,7 +1086,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.put.input" + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.put.input", + "methodParameterSegments": [ + { + "$id": "85", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "77" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1021,7 +1114,7 @@ 200 ], "bodyType": { - "$ref": "74" + "$ref": "77" }, "headers": [], "isErrorResponse": false, @@ -1045,61 +1138,18 @@ }, "parameters": [ { - "$id": "83", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "74" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.put.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "85" }, { - "$id": "84", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "81" }, { - "$id": "85", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties.put.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "83" } ], "response": { "type": { - "$ref": "74" + "$ref": "77" } }, "isOverride": false, @@ -1237,10 +1287,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.get.kind", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "98", + "kind": "method", + "name": "kind", + "serializedName": "kind", + "type": { + "$id": "99", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.get.kind", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "98", + "$id": "100", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1253,7 +1326,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.get.accept" + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.get.accept", + "methodParameterSegments": [ + { + "$id": "101", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1262,7 +1354,7 @@ 200 ], "bodyType": { - "$id": "99", + "$id": "102", "kind": "union", "name": "PetInline", "variantTypes": [ @@ -1295,47 +1387,15 @@ }, "parameters": [ { - "$id": "100", - "kind": "method", - "name": "kind", - "serializedName": "kind", - "type": { - "$id": "101", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.get.kind", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "98" }, { - "$id": "102", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "101" } ], "response": { "type": { - "$ref": "99" + "$ref": "102" } }, "isOverride": false, @@ -1370,10 +1430,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.put.contentType" + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.put.contentType", + "methodParameterSegments": [ + { + "$id": "106", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "106", + "$id": "107", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1386,15 +1466,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.put.accept" + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.put.accept", + "methodParameterSegments": [ + { + "$id": "108", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.put.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "107", + "$id": "109", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "99" + "$ref": "102" }, "isApiVersion": false, "contentTypes": [ @@ -1405,7 +1504,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.put.input" + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.put.input", + "methodParameterSegments": [ + { + "$id": "110", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "102" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1414,7 +1532,7 @@ 200 ], "bodyType": { - "$ref": "99" + "$ref": "102" }, "headers": [], "isErrorResponse": false, @@ -1438,61 +1556,18 @@ }, "parameters": [ { - "$id": "108", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "99" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.put.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "110" }, { - "$id": "109", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "106" }, { - "$id": "110", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default.put.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "108" } ], "response": { "type": { - "$ref": "99" + "$ref": "102" } }, "isOverride": false, @@ -1578,10 +1653,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.get.type", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "119", + "kind": "method", + "name": "type", + "serializedName": "type", + "type": { + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.get.type", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "119", + "$id": "121", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1594,7 +1692,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.get.accept" + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.get.accept", + "methodParameterSegments": [ + { + "$id": "122", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1603,7 +1720,7 @@ 200 ], "bodyType": { - "$id": "120", + "$id": "123", "kind": "union", "name": "PetInlineWithCustomDiscriminator", "variantTypes": [ @@ -1636,47 +1753,15 @@ }, "parameters": [ { - "$id": "121", - "kind": "method", - "name": "type", - "serializedName": "type", - "type": { - "$id": "122", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.get.type", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "119" }, { - "$id": "123", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "122" } ], "response": { "type": { - "$ref": "120" + "$ref": "123" } }, "isOverride": false, @@ -1711,10 +1796,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.put.contentType" + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.put.contentType", + "methodParameterSegments": [ + { + "$id": "127", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.put.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "127", + "$id": "128", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1727,15 +1832,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.put.accept" + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.put.accept", + "methodParameterSegments": [ + { + "$id": "129", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.put.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "128", + "$id": "130", "kind": "body", "name": "input", "serializedName": "input", "type": { - "$ref": "120" + "$ref": "123" }, "isApiVersion": false, "contentTypes": [ @@ -1746,7 +1870,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.put.input" + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.put.input", + "methodParameterSegments": [ + { + "$id": "131", + "kind": "method", + "name": "input", + "serializedName": "input", + "type": { + "$ref": "123" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.put.input", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1755,7 +1898,7 @@ 200 ], "bodyType": { - "$ref": "120" + "$ref": "123" }, "headers": [], "isErrorResponse": false, @@ -1779,61 +1922,18 @@ }, "parameters": [ { - "$id": "129", - "kind": "method", - "name": "input", - "serializedName": "input", - "type": { - "$ref": "120" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.put.input", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "131" }, { - "$id": "130", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "21" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.put.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "127" }, { - "$id": "131", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "23" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator.put.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "129" } ], "response": { "type": { - "$ref": "120" + "$ref": "123" } }, "isOverride": false, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json index 2f02bc4094c..7b5c6d926d3 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json @@ -2150,7 +2150,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringsOnly.get.accept" + "crossLanguageDefinitionId": "Type.Union.StringsOnly.get.accept", + "methodParameterSegments": [ + { + "$id": "167", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "44" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.StringsOnly.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2180,21 +2199,7 @@ }, "parameters": [ { - "$id": "167", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "44" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.StringsOnly.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "167" } ], "response": { @@ -2234,10 +2239,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringsOnly.send.contentType" + "crossLanguageDefinitionId": "Type.Union.StringsOnly.send.contentType", + "methodParameterSegments": [ + { + "$id": "171", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "46" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.StringsOnly.send.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "171", + "$id": "172", "kind": "body", "name": "sendRequest", "serializedName": "sendRequest", @@ -2253,7 +2278,26 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Union.StringsOnly.send.body" + "crossLanguageDefinitionId": "Type.Union.StringsOnly.send.body", + "methodParameterSegments": [ + { + "$id": "173", + "kind": "method", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "1" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.StringsOnly.send.prop", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2280,39 +2324,10 @@ }, "parameters": [ { - "$id": "172", - "kind": "method", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "1" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.StringsOnly.send.prop", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "173" }, { - "$id": "173", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "46" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.StringsOnly.send.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "171" } ], "response": {}, @@ -2396,7 +2411,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringExtensible.get.accept" + "crossLanguageDefinitionId": "Type.Union.StringExtensible.get.accept", + "methodParameterSegments": [ + { + "$id": "181", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "48" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.StringExtensible.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2426,21 +2460,7 @@ }, "parameters": [ { - "$id": "181", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "48" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.StringExtensible.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "181" } ], "response": { @@ -2480,10 +2500,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringExtensible.send.contentType" + "crossLanguageDefinitionId": "Type.Union.StringExtensible.send.contentType", + "methodParameterSegments": [ + { + "$id": "185", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "50" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.StringExtensible.send.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "185", + "$id": "186", "kind": "body", "name": "sendRequest1", "serializedName": "sendRequest1", @@ -2499,7 +2539,26 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Union.StringExtensible.send.body" + "crossLanguageDefinitionId": "Type.Union.StringExtensible.send.body", + "methodParameterSegments": [ + { + "$id": "187", + "kind": "method", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "6" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.StringExtensible.send.prop", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2526,39 +2585,10 @@ }, "parameters": [ { - "$id": "186", - "kind": "method", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "6" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.StringExtensible.send.prop", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "187" }, { - "$id": "187", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "50" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.StringExtensible.send.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "185" } ], "response": {}, @@ -2642,7 +2672,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get.accept" + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get.accept", + "methodParameterSegments": [ + { + "$id": "195", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "52" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2672,21 +2721,7 @@ }, "parameters": [ { - "$id": "195", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "52" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "195" } ], "response": { @@ -2726,10 +2761,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send.contentType" + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send.contentType", + "methodParameterSegments": [ + { + "$id": "199", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "54" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "199", + "$id": "200", "kind": "body", "name": "sendRequest2", "serializedName": "sendRequest2", @@ -2745,7 +2800,26 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send.body" + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send.body", + "methodParameterSegments": [ + { + "$id": "201", + "kind": "method", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "10" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send.prop", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2772,39 +2846,10 @@ }, "parameters": [ { - "$id": "200", - "kind": "method", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "10" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send.prop", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "201" }, { - "$id": "201", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "54" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "199" } ], "response": {}, @@ -2888,7 +2933,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.IntsOnly.get.accept" + "crossLanguageDefinitionId": "Type.Union.IntsOnly.get.accept", + "methodParameterSegments": [ + { + "$id": "209", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "56" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.IntsOnly.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -2918,21 +2982,7 @@ }, "parameters": [ { - "$id": "209", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "56" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.IntsOnly.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "209" } ], "response": { @@ -2972,10 +3022,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.IntsOnly.send.contentType" + "crossLanguageDefinitionId": "Type.Union.IntsOnly.send.contentType", + "methodParameterSegments": [ + { + "$id": "213", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "58" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.IntsOnly.send.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "213", + "$id": "214", "kind": "body", "name": "sendRequest3", "serializedName": "sendRequest3", @@ -2991,7 +3061,26 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Union.IntsOnly.send.body" + "crossLanguageDefinitionId": "Type.Union.IntsOnly.send.body", + "methodParameterSegments": [ + { + "$id": "215", + "kind": "method", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "14" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.IntsOnly.send.prop", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3018,39 +3107,10 @@ }, "parameters": [ { - "$id": "214", - "kind": "method", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "14" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.IntsOnly.send.prop", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "215" }, { - "$id": "215", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "58" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.IntsOnly.send.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "213" } ], "response": {}, @@ -3134,7 +3194,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.FloatsOnly.get.accept" + "crossLanguageDefinitionId": "Type.Union.FloatsOnly.get.accept", + "methodParameterSegments": [ + { + "$id": "223", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "60" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.FloatsOnly.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3164,21 +3243,7 @@ }, "parameters": [ { - "$id": "223", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "60" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.FloatsOnly.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "223" } ], "response": { @@ -3218,10 +3283,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send.contentType" + "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send.contentType", + "methodParameterSegments": [ + { + "$id": "227", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "62" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "227", + "$id": "228", "kind": "body", "name": "sendRequest4", "serializedName": "sendRequest4", @@ -3237,7 +3322,26 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send.body" + "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send.body", + "methodParameterSegments": [ + { + "$id": "229", + "kind": "method", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "19" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send.prop", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3264,39 +3368,10 @@ }, "parameters": [ { - "$id": "228", - "kind": "method", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "19" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send.prop", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "229" }, { - "$id": "229", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "62" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "227" } ], "response": {}, @@ -3380,7 +3455,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.ModelsOnly.get.accept" + "crossLanguageDefinitionId": "Type.Union.ModelsOnly.get.accept", + "methodParameterSegments": [ + { + "$id": "237", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "64" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.ModelsOnly.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3410,21 +3504,7 @@ }, "parameters": [ { - "$id": "237", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "64" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.ModelsOnly.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "237" } ], "response": { @@ -3464,10 +3544,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send.contentType" + "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send.contentType", + "methodParameterSegments": [ + { + "$id": "241", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "66" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "241", + "$id": "242", "kind": "body", "name": "sendRequest5", "serializedName": "sendRequest5", @@ -3483,7 +3583,26 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send.body" + "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send.body", + "methodParameterSegments": [ + { + "$id": "243", + "kind": "method", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "106" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send.prop", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3510,39 +3629,10 @@ }, "parameters": [ { - "$id": "242", - "kind": "method", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "106" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send.prop", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "243" }, { - "$id": "243", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "66" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "241" } ], "response": {}, @@ -3626,7 +3716,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.EnumsOnly.get.accept" + "crossLanguageDefinitionId": "Type.Union.EnumsOnly.get.accept", + "methodParameterSegments": [ + { + "$id": "251", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "68" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.EnumsOnly.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3656,21 +3765,7 @@ }, "parameters": [ { - "$id": "251", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "68" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.EnumsOnly.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "251" } ], "response": { @@ -3710,10 +3805,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send.contentType" + "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send.contentType", + "methodParameterSegments": [ + { + "$id": "255", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "70" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "255", + "$id": "256", "kind": "body", "name": "sendRequest6", "serializedName": "sendRequest6", @@ -3729,7 +3844,26 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send.body" + "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send.body", + "methodParameterSegments": [ + { + "$id": "257", + "kind": "method", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "117" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send.prop", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3756,39 +3890,10 @@ }, "parameters": [ { - "$id": "256", - "kind": "method", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "117" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send.prop", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "257" }, { - "$id": "257", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "70" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "255" } ], "response": {}, @@ -3872,7 +3977,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringAndArray.get.accept" + "crossLanguageDefinitionId": "Type.Union.StringAndArray.get.accept", + "methodParameterSegments": [ + { + "$id": "265", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "72" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.StringAndArray.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -3902,21 +4026,7 @@ }, "parameters": [ { - "$id": "265", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "72" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.StringAndArray.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "265" } ], "response": { @@ -3956,10 +4066,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringAndArray.send.contentType" + "crossLanguageDefinitionId": "Type.Union.StringAndArray.send.contentType", + "methodParameterSegments": [ + { + "$id": "269", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "74" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.StringAndArray.send.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "269", + "$id": "270", "kind": "body", "name": "sendRequest7", "serializedName": "sendRequest7", @@ -3975,7 +4105,26 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Union.StringAndArray.send.body" + "crossLanguageDefinitionId": "Type.Union.StringAndArray.send.body", + "methodParameterSegments": [ + { + "$id": "271", + "kind": "method", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "124" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.StringAndArray.send.prop", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4002,39 +4151,10 @@ }, "parameters": [ { - "$id": "270", - "kind": "method", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "124" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.StringAndArray.send.prop", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "271" }, { - "$id": "271", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "74" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.StringAndArray.send.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "269" } ], "response": {}, @@ -4118,7 +4238,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiterals.get.accept" + "crossLanguageDefinitionId": "Type.Union.MixedLiterals.get.accept", + "methodParameterSegments": [ + { + "$id": "279", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "76" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.MixedLiterals.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4148,21 +4287,7 @@ }, "parameters": [ { - "$id": "279", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "76" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.MixedLiterals.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "279" } ], "response": { @@ -4202,10 +4327,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send.contentType" + "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send.contentType", + "methodParameterSegments": [ + { + "$id": "283", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "78" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "283", + "$id": "284", "kind": "body", "name": "sendRequest8", "serializedName": "sendRequest8", @@ -4221,7 +4366,26 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send.body" + "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send.body", + "methodParameterSegments": [ + { + "$id": "285", + "kind": "method", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "137" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send.prop", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4248,39 +4412,10 @@ }, "parameters": [ { - "$id": "284", - "kind": "method", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "137" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send.prop", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "285" }, { - "$id": "285", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "78" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "283" } ], "response": {}, @@ -4364,7 +4499,26 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypes.get.accept" + "crossLanguageDefinitionId": "Type.Union.MixedTypes.get.accept", + "methodParameterSegments": [ + { + "$id": "293", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "80" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.MixedTypes.get.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4394,21 +4548,7 @@ }, "parameters": [ { - "$id": "293", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "80" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.MixedTypes.get.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "293" } ], "response": { @@ -4448,10 +4588,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypes.send.contentType" + "crossLanguageDefinitionId": "Type.Union.MixedTypes.send.contentType", + "methodParameterSegments": [ + { + "$id": "297", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "82" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Type.Union.MixedTypes.send.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "297", + "$id": "298", "kind": "body", "name": "sendRequest9", "serializedName": "sendRequest9", @@ -4467,7 +4627,26 @@ "scope": "Spread", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Type.Union.MixedTypes.send.body" + "crossLanguageDefinitionId": "Type.Union.MixedTypes.send.body", + "methodParameterSegments": [ + { + "$id": "299", + "kind": "method", + "name": "prop", + "serializedName": "prop", + "type": { + "$ref": "147" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Type.Union.MixedTypes.send.prop", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -4494,39 +4673,10 @@ }, "parameters": [ { - "$id": "298", - "kind": "method", - "name": "prop", - "serializedName": "prop", - "type": { - "$ref": "147" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Type.Union.MixedTypes.send.prop", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "299" }, { - "$id": "299", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "82" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Type.Union.MixedTypes.send.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "297" } ], "response": {}, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json index 1892fcd7a4b..b6875ca2371 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json @@ -208,10 +208,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.v1.contentType" + "crossLanguageDefinitionId": "Versioning.Added.v1.contentType", + "methodParameterSegments": [ + { + "$id": "19", + "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": "Versioning.Added.v1.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "19", + "$id": "20", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -224,10 +244,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.v1.accept" + "crossLanguageDefinitionId": "Versioning.Added.v1.accept", + "methodParameterSegments": [ + { + "$id": "21", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Added.v1.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "20", + "$id": "22", "kind": "body", "name": "body", "serializedName": "body", @@ -243,7 +282,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.Added.v1.body" + "crossLanguageDefinitionId": "Versioning.Added.v1.body", + "methodParameterSegments": [ + { + "$id": "23", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "11" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Added.v1.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -276,56 +334,13 @@ }, "parameters": [ { - "$id": "21", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "11" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Added.v1.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "23" }, { - "$id": "22", - "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": "Versioning.Added.v1.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "19" }, { - "$id": "23", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Added.v1.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "21" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json index f2403c714dd..40ce1b6b2e3 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json @@ -488,10 +488,33 @@ "scope": "Method", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.v1.headerV2" + "crossLanguageDefinitionId": "Versioning.Added.v1.headerV2", + "methodParameterSegments": [ + { + "$id": "46", + "kind": "method", + "name": "headerV2", + "serializedName": "header-v2", + "type": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Added.v1.headerV2", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "46", + "$id": "48", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -505,10 +528,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.v1.contentType" + "crossLanguageDefinitionId": "Versioning.Added.v1.contentType", + "methodParameterSegments": [ + { + "$id": "49", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "12" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Added.v1.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "47", + "$id": "50", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -521,10 +564,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.v1.accept" + "crossLanguageDefinitionId": "Versioning.Added.v1.accept", + "methodParameterSegments": [ + { + "$id": "51", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Added.v1.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "48", + "$id": "52", "kind": "body", "name": "body", "serializedName": "body", @@ -540,7 +602,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.Added.v1.body" + "crossLanguageDefinitionId": "Versioning.Added.v1.body", + "methodParameterSegments": [ + { + "$id": "53", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "24" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Added.v1.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -573,77 +654,16 @@ }, "parameters": [ { - "$id": "49", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "24" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Added.v1.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "53" }, { - "$id": "50", - "kind": "method", - "name": "headerV2", - "serializedName": "header-v2", - "type": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Added.v1.headerV2", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "46" }, { - "$id": "52", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Added.v1.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "49" }, { - "$id": "53", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Added.v1.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "51" } ], "response": { @@ -685,10 +705,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.v2.contentType" + "crossLanguageDefinitionId": "Versioning.Added.v2.contentType", + "methodParameterSegments": [ + { + "$id": "57", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "16" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Added.v2.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "57", + "$id": "58", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -701,10 +741,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.v2.accept" + "crossLanguageDefinitionId": "Versioning.Added.v2.accept", + "methodParameterSegments": [ + { + "$id": "59", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "18" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Added.v2.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "58", + "$id": "60", "kind": "body", "name": "body", "serializedName": "body", @@ -720,7 +779,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.Added.v2.body" + "crossLanguageDefinitionId": "Versioning.Added.v2.body", + "methodParameterSegments": [ + { + "$id": "61", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "33" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Added.v2.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -753,56 +831,13 @@ }, "parameters": [ { - "$id": "59", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "33" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Added.v2.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "61" }, { - "$id": "60", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Added.v2.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "57" }, { - "$id": "61", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Added.v2.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "59" } ], "response": { @@ -909,10 +944,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface.contentType" + "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface.contentType", + "methodParameterSegments": [ + { + "$id": "70", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "20" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "70", + "$id": "71", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -925,10 +980,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface.accept" + "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface.accept", + "methodParameterSegments": [ + { + "$id": "72", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "22" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "71", + "$id": "73", "kind": "body", "name": "body", "serializedName": "body", @@ -944,7 +1018,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface.body" + "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface.body", + "methodParameterSegments": [ + { + "$id": "74", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "33" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -977,56 +1070,13 @@ }, "parameters": [ { - "$id": "72", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "33" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "74" }, { - "$id": "73", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "70" }, { - "$id": "74", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "72" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json index 810f8726b13..aaec274fb67 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json @@ -182,10 +182,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Versioning.MadeOptional.test.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "18", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "19", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.MadeOptional.test.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "18", + "$id": "20", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -199,10 +222,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.MadeOptional.test.contentType" + "crossLanguageDefinitionId": "Versioning.MadeOptional.test.contentType", + "methodParameterSegments": [ + { + "$id": "21", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "4" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.MadeOptional.test.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "19", + "$id": "22", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -215,10 +258,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.MadeOptional.test.accept" + "crossLanguageDefinitionId": "Versioning.MadeOptional.test.accept", + "methodParameterSegments": [ + { + "$id": "23", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "6" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.MadeOptional.test.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "20", + "$id": "24", "kind": "body", "name": "body", "serializedName": "body", @@ -234,7 +296,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.MadeOptional.test.body" + "crossLanguageDefinitionId": "Versioning.MadeOptional.test.body", + "methodParameterSegments": [ + { + "$id": "25", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "8" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.MadeOptional.test.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -267,77 +348,16 @@ }, "parameters": [ { - "$id": "21", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "8" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.MadeOptional.test.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "25" }, { - "$id": "22", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.MadeOptional.test.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "18" }, { - "$id": "24", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.MadeOptional.test.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "21" }, { - "$id": "25", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.MadeOptional.test.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "23" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json index 8aac19b5cda..9e0f2cd71d0 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json @@ -198,10 +198,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Versioning.MadeOptional.test.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "19", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": true, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.MadeOptional.test.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "19", + "$id": "21", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -215,10 +238,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.MadeOptional.test.contentType" + "crossLanguageDefinitionId": "Versioning.MadeOptional.test.contentType", + "methodParameterSegments": [ + { + "$id": "22", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.MadeOptional.test.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "20", + "$id": "23", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -231,10 +274,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.MadeOptional.test.accept" + "crossLanguageDefinitionId": "Versioning.MadeOptional.test.accept", + "methodParameterSegments": [ + { + "$id": "24", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.MadeOptional.test.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "21", + "$id": "25", "kind": "body", "name": "body", "serializedName": "body", @@ -250,7 +312,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.MadeOptional.test.body" + "crossLanguageDefinitionId": "Versioning.MadeOptional.test.body", + "methodParameterSegments": [ + { + "$id": "26", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.MadeOptional.test.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -283,77 +364,16 @@ }, "parameters": [ { - "$id": "22", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "9" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.MadeOptional.test.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "26" }, { - "$id": "23", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "24", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": true, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.MadeOptional.test.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "19" }, { - "$id": "25", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.MadeOptional.test.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "22" }, { - "$id": "26", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.MadeOptional.test.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "24" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json index 2d2f1189837..7a76a93d5bb 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json @@ -643,10 +643,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.v1.contentType" + "crossLanguageDefinitionId": "Versioning.Removed.v1.contentType", + "methodParameterSegments": [ + { + "$id": "59", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.v1.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "59", + "$id": "60", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -659,10 +679,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.v1.accept" + "crossLanguageDefinitionId": "Versioning.Removed.v1.accept", + "methodParameterSegments": [ + { + "$id": "61", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.v1.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "60", + "$id": "62", "kind": "body", "name": "body", "serializedName": "body", @@ -678,7 +717,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.Removed.v1.body" + "crossLanguageDefinitionId": "Versioning.Removed.v1.body", + "methodParameterSegments": [ + { + "$id": "63", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "31" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Removed.v1.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -711,56 +769,13 @@ }, "parameters": [ { - "$id": "61", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "31" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Removed.v1.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "63" }, { - "$id": "62", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.v1.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "59" }, { - "$id": "63", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.v1.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "61" } ], "response": { @@ -805,10 +820,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Versioning.Removed.v2.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "68", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Removed.v2.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "68", + "$id": "70", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -822,10 +860,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType" + "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType", + "methodParameterSegments": [ + { + "$id": "71", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "69", + "$id": "72", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -838,10 +896,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.v2.accept" + "crossLanguageDefinitionId": "Versioning.Removed.v2.accept", + "methodParameterSegments": [ + { + "$id": "73", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "21" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.v2.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "70", + "$id": "74", "kind": "body", "name": "body", "serializedName": "body", @@ -857,7 +934,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.Removed.v2.body" + "crossLanguageDefinitionId": "Versioning.Removed.v2.body", + "methodParameterSegments": [ + { + "$id": "75", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "39" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Removed.v2.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -890,77 +986,16 @@ }, "parameters": [ { - "$id": "71", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "39" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Removed.v2.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "75" }, { - "$id": "72", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "73", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Removed.v2.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "68" }, { - "$id": "74", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "71" }, { - "$id": "75", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "21" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.v2.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "73" } ], "response": { @@ -1004,10 +1039,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType" + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType", + "methodParameterSegments": [ + { + "$id": "79", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "23" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "79", + "$id": "80", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1020,10 +1075,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept" + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept", + "methodParameterSegments": [ + { + "$id": "81", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "25" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "80", + "$id": "82", "kind": "body", "name": "body", "serializedName": "body", @@ -1039,7 +1113,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.body" + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.body", + "methodParameterSegments": [ + { + "$id": "83", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "51" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1072,56 +1165,13 @@ }, "parameters": [ { - "$id": "81", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "51" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "83" }, { - "$id": "82", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "23" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "79" }, { - "$id": "83", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "25" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "81" } ], "response": { @@ -1228,10 +1278,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.contentType" + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.contentType", + "methodParameterSegments": [ + { + "$id": "92", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "27" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "92", + "$id": "93", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1244,10 +1314,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.accept" + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.accept", + "methodParameterSegments": [ + { + "$id": "94", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "29" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "93", + "$id": "95", "kind": "body", "name": "body", "serializedName": "body", @@ -1263,7 +1352,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.body" + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.body", + "methodParameterSegments": [ + { + "$id": "96", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "31" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1296,56 +1404,13 @@ }, "parameters": [ { - "$id": "94", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "31" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "96" }, { - "$id": "95", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "27" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "92" }, { - "$id": "96", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "29" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "94" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json index 9b8832713a2..18d13e7be30 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json @@ -421,10 +421,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType" + "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType", + "methodParameterSegments": [ + { + "$id": "37", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "37", + "$id": "38", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -437,10 +457,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.v2.accept" + "crossLanguageDefinitionId": "Versioning.Removed.v2.accept", + "methodParameterSegments": [ + { + "$id": "39", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "15" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.v2.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "38", + "$id": "40", "kind": "body", "name": "body", "serializedName": "body", @@ -456,7 +495,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.Removed.v2.body" + "crossLanguageDefinitionId": "Versioning.Removed.v2.body", + "methodParameterSegments": [ + { + "$id": "41", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "21" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Removed.v2.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -489,56 +547,13 @@ }, "parameters": [ { - "$id": "39", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "21" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Removed.v2.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "41" }, { - "$id": "40", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "37" }, { - "$id": "41", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "15" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.v2.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "39" } ], "response": { @@ -584,10 +599,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType" + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType", + "methodParameterSegments": [ + { + "$id": "45", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "17" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "45", + "$id": "46", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -600,10 +635,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept" + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept", + "methodParameterSegments": [ + { + "$id": "47", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "19" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "46", + "$id": "48", "kind": "body", "name": "body", "serializedName": "body", @@ -619,7 +673,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.body" + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.body", + "methodParameterSegments": [ + { + "$id": "49", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "29" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -652,56 +725,13 @@ }, "parameters": [ { - "$id": "47", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "29" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "49" }, { - "$id": "48", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "17" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "45" }, { - "$id": "49", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "19" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "47" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json index 2d3141ed58e..1b998c81356 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json @@ -592,10 +592,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.v1.contentType" + "crossLanguageDefinitionId": "Versioning.Removed.v1.contentType", + "methodParameterSegments": [ + { + "$id": "55", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "12" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.v1.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "55", + "$id": "56", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -608,10 +628,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.v1.accept" + "crossLanguageDefinitionId": "Versioning.Removed.v1.accept", + "methodParameterSegments": [ + { + "$id": "57", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.v1.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "56", + "$id": "58", "kind": "body", "name": "body", "serializedName": "body", @@ -627,7 +666,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.Removed.v1.body" + "crossLanguageDefinitionId": "Versioning.Removed.v1.body", + "methodParameterSegments": [ + { + "$id": "59", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "28" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Removed.v1.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -660,56 +718,13 @@ }, "parameters": [ { - "$id": "57", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "28" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Removed.v1.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "59" }, { - "$id": "58", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.v1.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "55" }, { - "$id": "59", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.v1.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "57" } ], "response": { @@ -755,10 +770,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Versioning.Removed.v2.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "64", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "65", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Removed.v2.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "64", + "$id": "66", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -772,10 +810,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType" + "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType", + "methodParameterSegments": [ + { + "$id": "67", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "16" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "65", + "$id": "68", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -788,10 +846,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.v2.accept" + "crossLanguageDefinitionId": "Versioning.Removed.v2.accept", + "methodParameterSegments": [ + { + "$id": "69", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "18" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.v2.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "66", + "$id": "70", "kind": "body", "name": "body", "serializedName": "body", @@ -807,7 +884,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.Removed.v2.body" + "crossLanguageDefinitionId": "Versioning.Removed.v2.body", + "methodParameterSegments": [ + { + "$id": "71", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "36" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Removed.v2.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -840,77 +936,16 @@ }, "parameters": [ { - "$id": "67", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "36" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Removed.v2.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "71" }, { - "$id": "68", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Removed.v2.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "64" }, { - "$id": "70", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "16" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "67" }, { - "$id": "71", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "18" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.v2.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "69" } ], "response": { @@ -955,10 +990,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType" + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType", + "methodParameterSegments": [ + { + "$id": "75", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "20" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "75", + "$id": "76", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -971,10 +1026,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept" + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept", + "methodParameterSegments": [ + { + "$id": "77", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "22" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "76", + "$id": "78", "kind": "body", "name": "body", "serializedName": "body", @@ -990,7 +1064,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.body" + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.body", + "methodParameterSegments": [ + { + "$id": "79", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "48" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Removed.modelV3.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1023,56 +1116,13 @@ }, "parameters": [ { - "$id": "77", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "48" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "79" }, { - "$id": "78", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "20" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "75" }, { - "$id": "79", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "22" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "77" } ], "response": { @@ -1181,10 +1231,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.contentType" + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.contentType", + "methodParameterSegments": [ + { + "$id": "88", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "24" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "88", + "$id": "89", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -1197,10 +1267,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.accept" + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.accept", + "methodParameterSegments": [ + { + "$id": "90", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "26" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "89", + "$id": "91", "kind": "body", "name": "body", "serializedName": "body", @@ -1216,7 +1305,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.body" + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.body", + "methodParameterSegments": [ + { + "$id": "92", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "28" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -1249,56 +1357,13 @@ }, "parameters": [ { - "$id": "90", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "28" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "92" }, { - "$id": "91", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "24" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "88" }, { - "$id": "92", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "26" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "90" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json index f441bfe465b..8a3f1402426 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json @@ -291,10 +291,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.oldQuery", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "29", + "kind": "method", + "name": "oldQuery", + "serializedName": "oldQuery", + "type": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.oldQuery", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "29", + "$id": "31", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -308,10 +331,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.contentType" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.contentType", + "methodParameterSegments": [ + { + "$id": "32", + "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": "Versioning.RenamedFrom.oldOp.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "30", + "$id": "33", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -324,10 +367,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.accept" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.accept", + "methodParameterSegments": [ + { + "$id": "34", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "31", + "$id": "35", "kind": "body", "name": "body", "serializedName": "body", @@ -343,7 +405,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.body" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.body", + "methodParameterSegments": [ + { + "$id": "36", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "15" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -376,77 +457,16 @@ }, "parameters": [ { - "$id": "32", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "15" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "36" }, { - "$id": "33", - "kind": "method", - "name": "oldQuery", - "serializedName": "oldQuery", - "type": { - "$id": "34", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.oldQuery", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "29" }, { - "$id": "35", - "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": "Versioning.RenamedFrom.oldOp.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "32" }, { - "$id": "36", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "9" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "34" } ], "response": { @@ -552,10 +572,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface.contentType" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface.contentType", + "methodParameterSegments": [ + { + "$id": "45", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "11" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "45", + "$id": "46", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -568,10 +608,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface.accept" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface.accept", + "methodParameterSegments": [ + { + "$id": "47", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "13" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "46", + "$id": "48", "kind": "body", "name": "body", "serializedName": "body", @@ -587,7 +646,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface.body" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface.body", + "methodParameterSegments": [ + { + "$id": "49", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "15" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -620,56 +698,13 @@ }, "parameters": [ { - "$id": "47", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "15" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "49" }, { - "$id": "48", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "11" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "45" }, { - "$id": "49", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "13" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "47" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json index dcc844a9d1b..7cc5956c1fb 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json @@ -307,10 +307,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.newQuery", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "30", + "kind": "method", + "name": "newQuery", + "serializedName": "newQuery", + "type": { + "$id": "31", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.newQuery", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "30", + "$id": "32", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -324,10 +347,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.contentType" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.contentType", + "methodParameterSegments": [ + { + "$id": "33", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "8" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "31", + "$id": "34", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -340,10 +383,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.accept" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.accept", + "methodParameterSegments": [ + { + "$id": "35", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "10" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "32", + "$id": "36", "kind": "body", "name": "body", "serializedName": "body", @@ -359,7 +421,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.body" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.body", + "methodParameterSegments": [ + { + "$id": "37", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "16" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -392,77 +473,16 @@ }, "parameters": [ { - "$id": "33", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "16" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "37" }, { - "$id": "34", - "kind": "method", - "name": "newQuery", - "serializedName": "newQuery", - "type": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.newQuery", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "30" }, { - "$id": "36", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "8" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "33" }, { - "$id": "37", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "10" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "35" } ], "response": { @@ -570,10 +590,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface.contentType" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface.contentType", + "methodParameterSegments": [ + { + "$id": "46", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "12" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "46", + "$id": "47", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -586,10 +626,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface.accept" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface.accept", + "methodParameterSegments": [ + { + "$id": "48", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "14" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "47", + "$id": "49", "kind": "body", "name": "body", "serializedName": "body", @@ -605,7 +664,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface.body" + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface.body", + "methodParameterSegments": [ + { + "$id": "50", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "16" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -638,56 +716,13 @@ }, "parameters": [ { - "$id": "48", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "16" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "50" }, { - "$id": "49", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "12" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "46" }, { - "$id": "50", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "14" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "48" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json index 44b9222e057..37ee429a970 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json @@ -60,7 +60,7 @@ { "$id": "6", "kind": "constant", - "name": "testContentType", + "name": "TestRequestContentType1", "namespace": "", "usage": "None", "valueType": { @@ -76,7 +76,7 @@ { "$id": "8", "kind": "constant", - "name": "TestRequestContentType1", + "name": "testContentType", "namespace": "", "usage": "None", "valueType": { @@ -143,15 +143,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.contentType" + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.contentType", + "methodParameterSegments": [ + { + "$id": "16", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "4" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "16", + "$id": "17", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "6" + "$ref": "8" }, "isApiVersion": false, "optional": false, @@ -159,15 +178,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.accept" + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.accept", + "methodParameterSegments": [ + { + "$id": "18", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "8" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "17", + "$id": "19", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$id": "18", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -182,7 +220,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.body" + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.body", + "methodParameterSegments": [ + { + "$id": "21", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -191,7 +252,7 @@ 200 ], "bodyType": { - "$id": "19", + "$id": "23", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -202,7 +263,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "8" + "$ref": "10" } } ], @@ -227,64 +288,18 @@ }, "parameters": [ { - "$id": "20", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "16" }, { - "$id": "21", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "21" }, { - "$id": "23", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "18" } ], "response": { "type": { - "$ref": "19" + "$ref": "23" } }, "isOverride": false, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json index 4efc88d0634..ff3a26e64a5 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json @@ -75,7 +75,7 @@ { "$id": "7", "kind": "constant", - "name": "testContentType", + "name": "TestRequestContentType1", "namespace": "", "usage": "None", "valueType": { @@ -91,7 +91,7 @@ { "$id": "9", "kind": "constant", - "name": "TestRequestContentType1", + "name": "testContentType", "namespace": "", "usage": "None", "valueType": { @@ -159,15 +159,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.contentType" + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.contentType", + "methodParameterSegments": [ + { + "$id": "17", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "17", + "$id": "18", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "7" + "$ref": "9" }, "isApiVersion": false, "optional": false, @@ -175,15 +194,34 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.accept" + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.accept", + "methodParameterSegments": [ + { + "$id": "19", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "9" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "18", + "$id": "20", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$id": "19", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -198,7 +236,30 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.body" + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.body", + "methodParameterSegments": [ + { + "$id": "22", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$id": "23", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -207,7 +268,7 @@ 200 ], "bodyType": { - "$id": "20", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -218,7 +279,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "9" + "$ref": "11" } } ], @@ -243,64 +304,18 @@ }, "parameters": [ { - "$id": "21", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "17" }, { - "$id": "22", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$id": "23", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "22" }, { - "$id": "24", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "19" } ], "response": { "type": { - "$ref": "20" + "$ref": "24" } }, "isOverride": false, diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json index 0a69f0e1074..4a9349e21dc 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json @@ -182,10 +182,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "18", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "19", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "18", + "$id": "20", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -199,10 +222,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.contentType" + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.contentType", + "methodParameterSegments": [ + { + "$id": "21", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "4" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "19", + "$id": "22", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -215,10 +258,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.accept" + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.accept", + "methodParameterSegments": [ + { + "$id": "23", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "6" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "20", + "$id": "24", "kind": "body", "name": "body", "serializedName": "body", @@ -234,7 +296,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.body" + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.body", + "methodParameterSegments": [ + { + "$id": "25", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "8" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -267,77 +348,16 @@ }, "parameters": [ { - "$id": "21", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "8" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "25" }, { - "$id": "22", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "23", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "18" }, { - "$id": "24", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "4" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "21" }, { - "$id": "25", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "6" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "23" } ], "response": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json index b14a7a2b324..db3010f6d2a 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json @@ -198,10 +198,33 @@ "scope": "Method", "decorators": [], "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.param", - "readOnly": false + "readOnly": false, + "methodParameterSegments": [ + { + "$id": "19", + "kind": "method", + "name": "param", + "serializedName": "param", + "type": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.param", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "19", + "$id": "21", "kind": "header", "name": "contentType", "serializedName": "Content-Type", @@ -215,10 +238,30 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.contentType" + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.contentType", + "methodParameterSegments": [ + { + "$id": "22", + "kind": "method", + "name": "contentType", + "serializedName": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$ref": "5" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.contentType", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "20", + "$id": "23", "kind": "header", "name": "accept", "serializedName": "Accept", @@ -231,10 +274,29 @@ "scope": "Constant", "readOnly": false, "decorators": [], - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.accept" + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.accept", + "methodParameterSegments": [ + { + "$id": "24", + "kind": "method", + "name": "accept", + "serializedName": "Accept", + "type": { + "$ref": "7" + }, + "location": "Header", + "isApiVersion": false, + "optional": false, + "scope": "Constant", + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.accept", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] }, { - "$id": "21", + "$id": "25", "kind": "body", "name": "body", "serializedName": "body", @@ -250,7 +312,26 @@ "scope": "Method", "decorators": [], "readOnly": false, - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.body" + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.body", + "methodParameterSegments": [ + { + "$id": "26", + "kind": "method", + "name": "body", + "serializedName": "body", + "type": { + "$ref": "9" + }, + "location": "Body", + "isApiVersion": false, + "optional": false, + "scope": "Method", + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.body", + "readOnly": false, + "access": "public", + "decorators": [] + } + ] } ], "responses": [ @@ -283,77 +364,16 @@ }, "parameters": [ { - "$id": "22", - "kind": "method", - "name": "body", - "serializedName": "body", - "type": { - "$ref": "9" - }, - "location": "Body", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.body", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "26" }, { - "$id": "23", - "kind": "method", - "name": "param", - "serializedName": "param", - "type": { - "$id": "24", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "optional": false, - "scope": "Method", - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.param", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "19" }, { - "$id": "25", - "kind": "method", - "name": "contentType", - "serializedName": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$ref": "5" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.contentType", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "22" }, { - "$id": "26", - "kind": "method", - "name": "accept", - "serializedName": "Accept", - "type": { - "$ref": "7" - }, - "location": "Header", - "isApiVersion": false, - "optional": false, - "scope": "Constant", - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.accept", - "readOnly": false, - "access": "public", - "decorators": [] + "$ref": "24" } ], "response": {