diff --git a/packages/http-client-csharp/emitter/src/emitter.ts b/packages/http-client-csharp/emitter/src/emitter.ts index 4e62a930b7d..d9b60f479fd 100644 --- a/packages/http-client-csharp/emitter/src/emitter.ts +++ b/packages/http-client-csharp/emitter/src/emitter.ts @@ -73,6 +73,7 @@ export async function $onEmit(context: EmitContext) { logger: logger, __typeCache: { crossLanguageDefinitionIds: new Map(), + clients: new Map(), types: new Map(), models: new Map(), enums: new Map(), diff --git a/packages/http-client-csharp/emitter/src/lib/client-converter.ts b/packages/http-client-csharp/emitter/src/lib/client-converter.ts new file mode 100644 index 00000000000..21d9c0ed042 --- /dev/null +++ b/packages/http-client-csharp/emitter/src/lib/client-converter.ts @@ -0,0 +1,162 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +import { + SdkClientType as SdkClientTypeOfT, + SdkEndpointParameter, + SdkEndpointType, + SdkHttpOperation, +} from "@azure-tools/typespec-client-generator-core"; +import { NoTarget } from "@typespec/compiler"; +import { CSharpEmitterContext } from "../sdk-context.js"; +import { InputOperationParameterKind } from "../type/input-operation-parameter-kind.js"; +import { InputParameter } from "../type/input-parameter.js"; +import { InputClient, InputType } from "../type/input-type.js"; +import { RequestLocation } from "../type/request-location.js"; +import { fromSdkServiceMethod, getParameterDefaultValue } from "./operation-converter.js"; +import { fromSdkType } from "./type-converter.js"; + +type SdkClientType = SdkClientTypeOfT; + +export function fromSdkClients( + sdkContext: CSharpEmitterContext, + clients: SdkClientType[], + rootApiVersions: string[], +): InputClient[] { + const inputClients: InputClient[] = []; + for (const client of clients) { + const inputClient = fromSdkClient(sdkContext, client, rootApiVersions); + inputClients.push(inputClient); + } + + return inputClients; +} + +function fromSdkClient( + sdkContext: CSharpEmitterContext, + client: SdkClientType, + rootApiVersions: string[], +): InputClient { + let inputClient: InputClient | undefined = sdkContext.__typeCache.clients.get(client); + if (inputClient) { + return inputClient; + } + const endpointParameter = client.clientInitialization.parameters.find( + (p) => p.kind === "endpoint", + ) as SdkEndpointParameter; + const uri = getMethodUri(endpointParameter); + const clientParameters = fromSdkEndpointParameter(endpointParameter); + + inputClient = { + kind: "client", + name: client.name, + namespace: client.namespace, + doc: client.doc, + summary: client.summary, + operations: client.methods + .filter((m) => m.kind !== "clientaccessor") + .map((m) => fromSdkServiceMethod(sdkContext, m, uri, rootApiVersions)), + parameters: clientParameters, + decorators: client.decorators, + crossLanguageDefinitionId: client.crossLanguageDefinitionId, + apiVersions: client.apiVersions, + parent: undefined, + children: undefined, + }; + + updateSdkClientTypeReferences(sdkContext, client, inputClient); + + // fill parent + if (client.parent) { + inputClient.parent = fromSdkClient(sdkContext, client.parent, rootApiVersions); + } + // fill children + if (client.children) { + inputClient.children = client.children.map((c) => + fromSdkClient(sdkContext, c, rootApiVersions), + ); + } + + return inputClient; + + function fromSdkEndpointParameter(p: SdkEndpointParameter): InputParameter[] { + if (p.type.kind === "union") { + return fromSdkEndpointType(p.type.variantTypes[0]); + } else { + return fromSdkEndpointType(p.type); + } + } + + function fromSdkEndpointType(type: SdkEndpointType): InputParameter[] { + // TODO: support free-style endpoint url with multiple parameters + const endpointExpr = type.serverUrl + .replace("https://", "") + .replace("http://", "") + .split("/")[0]; + if (!/^\{\w+\}$/.test(endpointExpr)) { + sdkContext.logger.reportDiagnostic({ + code: "unsupported-endpoint-url", + format: { endpoint: type.serverUrl }, + target: NoTarget, + }); + return []; + } + const endpointVariableName = endpointExpr.substring(1, endpointExpr.length - 1); + + const parameters: InputParameter[] = []; + for (const parameter of type.templateArguments) { + const isEndpoint = parameter.name === endpointVariableName; + const parameterType: InputType = isEndpoint + ? { + kind: "url", + name: "url", + crossLanguageDefinitionId: "TypeSpec.url", + } + : fromSdkType(sdkContext, parameter.type); // TODO: consolidate with converter.fromSdkEndpointType + parameters.push({ + name: parameter.name, + nameInRequest: parameter.serializedName, + summary: parameter.summary, + doc: parameter.doc, + type: parameterType, + location: RequestLocation.Uri, + isApiVersion: parameter.isApiVersionParam, + isContentType: false, + isRequired: !parameter.optional, + isEndpoint: isEndpoint, + skipUrlEncoding: false, + explode: false, + kind: InputOperationParameterKind.Client, + defaultValue: getParameterDefaultValue( + sdkContext, + parameter.clientDefaultValue, + parameterType, + ), + }); + } + return parameters; + } +} + +function updateSdkClientTypeReferences( + sdkContext: CSharpEmitterContext, + sdkClient: SdkClientType, + inputClient: InputClient, +) { + sdkContext.__typeCache.clients.set(sdkClient, inputClient); + sdkContext.__typeCache.crossLanguageDefinitionIds.set( + sdkClient.crossLanguageDefinitionId, + sdkClient.__raw.type, + ); +} + +function getMethodUri(p: SdkEndpointParameter | undefined): string { + if (!p) return ""; + + if (p.type.kind === "endpoint" && p.type.templateArguments.length > 0) return p.type.serverUrl; + + if (p.type.kind === "union" && p.type.variantTypes.length > 0) + return (p.type.variantTypes[0] as SdkEndpointType).serverUrl; + + return `{${p.name}}`; +} diff --git a/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts b/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts index 618cafb0610..6d2bd291c22 100644 --- a/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts +++ b/packages/http-client-csharp/emitter/src/lib/client-model-builder.ts @@ -1,26 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -import { - SdkClientType, - SdkEndpointParameter, - SdkEndpointType, - SdkHttpOperation, - SdkServiceMethod, - UsageFlags, -} from "@azure-tools/typespec-client-generator-core"; +import { UsageFlags } from "@azure-tools/typespec-client-generator-core"; import { NoTarget } from "@typespec/compiler"; import { CSharpEmitterContext } from "../sdk-context.js"; import { CodeModel } from "../type/code-model.js"; -import { InputClient } from "../type/input-client.js"; -import { InputOperationParameterKind } from "../type/input-operation-parameter-kind.js"; -import { InputParameter } from "../type/input-parameter.js"; -import { InputType } from "../type/input-type.js"; -import { RequestLocation } from "../type/request-location.js"; +import { fromSdkClients } from "./client-converter.js"; import { navigateModels } from "./model.js"; -import { fromSdkServiceMethod, getParameterDefaultValue } from "./operation-converter.js"; import { processServiceAuthentication } from "./service-authentication.js"; -import { fromSdkType } from "./type-converter.js"; import { getClientNamespaceString } from "./utils.js"; /** @@ -36,7 +23,7 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { const sdkApiVersionEnums = sdkPackage.enums.filter((e) => e.usage === UsageFlags.ApiVersionEnum); - const rootClients = sdkPackage.clients.filter((c) => c.initialization.access === "public"); + const rootClients = sdkPackage.clients; if (rootClients.length === 0) { sdkContext.logger.reportDiagnostic({ code: "no-root-client", @@ -51,8 +38,7 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { ? sdkApiVersionEnums[0].values.map((v) => v.value as string).flat() : rootClients[0].apiVersions; - const inputClients: InputClient[] = []; - fromSdkClients(rootClients, inputClients, []); + const inputClients = fromSdkClients(sdkContext, rootClients, rootApiVersions); const clientModel: CodeModel = { // To ensure deterministic library name, customers would need to set the package-name property as the ordering of the namespaces could change @@ -66,141 +52,4 @@ export function createModel(sdkContext: CSharpEmitterContext): CodeModel { }; return clientModel; - - function fromSdkClients( - clients: SdkClientType[], - inputClients: InputClient[], - parentClientNames: string[], - ) { - for (const client of clients) { - const inputClient = fromSdkClient(client, parentClientNames); - inputClients.push(inputClient); - const subClients = client.methods - .filter((m) => m.kind === "clientaccessor") - .map((m) => m.response as SdkClientType); - parentClientNames.push(inputClient.name); - fromSdkClients(subClients, inputClients, parentClientNames); - parentClientNames.pop(); - } - } - - function fromSdkClient( - client: SdkClientType, - parentNames: string[], - ): InputClient { - const endpointParameter = client.initialization.properties.find( - (p) => p.kind === "endpoint", - ) as SdkEndpointParameter; - const uri = getMethodUri(endpointParameter); - const clientParameters = fromSdkEndpointParameter(endpointParameter); - const clientName = getClientName(client, parentNames); - - sdkContext.__typeCache.crossLanguageDefinitionIds.set( - client.crossLanguageDefinitionId, - client.__raw.type, - ); - return { - name: clientName, - namespace: client.namespace, - summary: client.summary, - doc: client.doc, - operations: client.methods - .filter((m) => m.kind !== "clientaccessor") - .map((m) => - fromSdkServiceMethod( - sdkContext, - m as SdkServiceMethod, - uri, - rootApiVersions, - ), - ), - parent: parentNames.length > 0 ? parentNames[parentNames.length - 1] : undefined, - parameters: clientParameters, - decorators: client.decorators, - crossLanguageDefinitionId: client.crossLanguageDefinitionId, - }; - } - - function getClientName( - client: SdkClientType, - parentClientNames: string[], - ): string { - const clientName = client.name; - - if (parentClientNames.length === 0) return clientName; - if (parentClientNames.length >= 2) - return `${parentClientNames.slice(parentClientNames.length - 1).join("")}${clientName}`; - - return clientName; - } - - function fromSdkEndpointParameter(p: SdkEndpointParameter): InputParameter[] { - if (p.type.kind === "union") { - return fromSdkEndpointType(p.type.variantTypes[0]); - } else { - return fromSdkEndpointType(p.type); - } - } - - function fromSdkEndpointType(type: SdkEndpointType): InputParameter[] { - // TODO: support free-style endpoint url with multiple parameters - const endpointExpr = type.serverUrl - .replace("https://", "") - .replace("http://", "") - .split("/")[0]; - if (!/^\{\w+\}$/.test(endpointExpr)) { - sdkContext.logger.reportDiagnostic({ - code: "unsupported-endpoint-url", - format: { endpoint: type.serverUrl }, - target: NoTarget, - }); - return []; - } - const endpointVariableName = endpointExpr.substring(1, endpointExpr.length - 1); - - const parameters: InputParameter[] = []; - for (const parameter of type.templateArguments) { - const isEndpoint = parameter.name === endpointVariableName; - const parameterType: InputType = isEndpoint - ? { - kind: "url", - name: "url", - crossLanguageDefinitionId: "TypeSpec.url", - } - : fromSdkType(sdkContext, parameter.type); // TODO: consolidate with converter.fromSdkEndpointType - parameters.push({ - name: parameter.name, - nameInRequest: parameter.serializedName, - summary: parameter.summary, - doc: parameter.doc, - // TODO: we should do the magic in generator - type: parameterType, - location: RequestLocation.Uri, - isApiVersion: parameter.isApiVersionParam, - isContentType: false, - isRequired: !parameter.optional, - isEndpoint: isEndpoint, - skipUrlEncoding: false, - explode: false, - kind: InputOperationParameterKind.Client, - defaultValue: getParameterDefaultValue( - sdkContext, - parameter.clientDefaultValue, - parameterType, - ), - }); - } - return parameters; - } -} - -function getMethodUri(p: SdkEndpointParameter | undefined): string { - if (!p) return ""; - - if (p.type.kind === "endpoint" && p.type.templateArguments.length > 0) return p.type.serverUrl; - - if (p.type.kind === "union" && p.type.variantTypes.length > 0) - return (p.type.variantTypes[0] as SdkEndpointType).serverUrl; - - return `{${p.name}}`; } diff --git a/packages/http-client-csharp/emitter/src/sdk-context.ts b/packages/http-client-csharp/emitter/src/sdk-context.ts index 17af9301b02..ac3f8c5d1fe 100644 --- a/packages/http-client-csharp/emitter/src/sdk-context.ts +++ b/packages/http-client-csharp/emitter/src/sdk-context.ts @@ -1,11 +1,16 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. -import { SdkContext, SdkType } from "@azure-tools/typespec-client-generator-core"; +import { + SdkClientType, + SdkContext, + SdkHttpOperation, + SdkType, +} from "@azure-tools/typespec-client-generator-core"; import { Type } from "@typespec/compiler"; import { Logger } from "./lib/logger.js"; import { CSharpEmitterOptions } from "./options.js"; -import { InputEnumType, InputModelType, InputType } from "./type/input-type.js"; +import { InputClient, InputEnumType, InputModelType, InputType } from "./type/input-type.js"; /** * The emitter context for the CSharp emitter. @@ -18,6 +23,7 @@ export interface CSharpEmitterContext extends SdkContext { export interface SdkTypeMap { crossLanguageDefinitionIds: Map; + clients: Map, InputClient>; types: Map; models: Map; enums: Map; diff --git a/packages/http-client-csharp/emitter/src/type/code-model.ts b/packages/http-client-csharp/emitter/src/type/code-model.ts index 91afbba0c0a..bcd0ef0c7dc 100644 --- a/packages/http-client-csharp/emitter/src/type/code-model.ts +++ b/packages/http-client-csharp/emitter/src/type/code-model.ts @@ -2,8 +2,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. import { InputAuth } from "./input-auth.js"; -import { InputClient } from "./input-client.js"; -import { InputEnumType, InputModelType } from "./input-type.js"; +import { InputClient, InputEnumType, InputModelType } from "./input-type.js"; export interface CodeModel { name: string; diff --git a/packages/http-client-csharp/emitter/src/type/input-client.ts b/packages/http-client-csharp/emitter/src/type/input-client.ts deleted file mode 100644 index 9d7deeed622..00000000000 --- a/packages/http-client-csharp/emitter/src/type/input-client.ts +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. - -import { DecoratorInfo } from "@azure-tools/typespec-client-generator-core"; -import { InputOperation } from "./input-operation.js"; -import { InputParameter } from "./input-parameter.js"; - -export interface InputClient { - name: string; - namespace: string; - summary?: string; - doc?: string; - operations: InputOperation[]; - parent?: string; - parameters?: InputParameter[]; - decorators?: DecoratorInfo[]; - crossLanguageDefinitionId: string; -} 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 d5f83708b43..e9aa8788b95 100644 --- a/packages/http-client-csharp/emitter/src/type/input-type.ts +++ b/packages/http-client-csharp/emitter/src/type/input-type.ts @@ -9,13 +9,32 @@ import { UsageFlags, } from "@azure-tools/typespec-client-generator-core"; import { DateTimeKnownEncoding, DurationKnownEncoding } from "@typespec/compiler"; +import { InputOperation } from "./input-operation.js"; +import { InputParameter } from "./input-parameter.js"; -interface InputTypeBase { +export interface InputClient extends DecoratedType { + kind: "client"; + name: string; + namespace: string; + doc?: string; + summary?: string; + parameters?: InputParameter[]; // TODO -- this should be replaced by clientInitialization when the clientInitialization related stuffs are done: https://github.com/microsoft/typespec/issues/4366 + operations: InputOperation[]; + apiVersions: string[]; + crossLanguageDefinitionId: string; + parent?: InputClient; + children?: InputClient[]; +} + +interface DecoratedType { + decorators?: DecoratorInfo[]; +} + +interface InputTypeBase extends DecoratedType { kind: string; summary?: string; doc?: string; deprecation?: string; - decorators?: DecoratorInfo[]; } export type InputType = diff --git a/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts b/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts index 202f1f9bd9b..cd76bf73db2 100644 --- a/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts +++ b/packages/http-client-csharp/emitter/test/Unit/decorator-list.test.ts @@ -2,6 +2,7 @@ vi.resetModules(); import { TestHost } from "@typespec/compiler/testing"; import { deepStrictEqual, strictEqual } from "assert"; +import { ok } from "assert/strict"; import { beforeEach, describe, it, vi } from "vitest"; import { createModel } from "../../src/lib/client-model-builder.js"; import { @@ -35,8 +36,11 @@ describe("Test emitting decorator list", () => { }); const root = createModel(sdkContext); const clients = root.clients; - strictEqual(clients.length, 2); - deepStrictEqual(clients[1].decorators, [ + strictEqual(clients.length, 1); + ok(clients[0].children); + strictEqual(clients[0].children.length, 1); + const childClient = clients[0].children[0]; + deepStrictEqual(childClient.decorators, [ { name: "Azure.ClientGenerator.Core.@clientName", arguments: { diff --git a/packages/http-client-csharp/emitter/test/Unit/utils/test-util.ts b/packages/http-client-csharp/emitter/test/Unit/utils/test-util.ts index ae5943aad0d..2d28411f7b0 100644 --- a/packages/http-client-csharp/emitter/test/Unit/utils/test-util.ts +++ b/packages/http-client-csharp/emitter/test/Unit/utils/test-util.ts @@ -131,6 +131,7 @@ export async function createCSharpSdkContext( logger: new Logger(program.program, LoggerLevel.INFO), __typeCache: { crossLanguageDefinitionIds: new Map(), + clients: new Map(), types: new Map(), models: new Map(), enums: new Map(), diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs index 4257fe1f951..77d108c23aa 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/ClientProvider.cs @@ -5,9 +5,9 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Text; using System.Threading; using Microsoft.TypeSpec.Generator.ClientModel.Primitives; -using Microsoft.TypeSpec.Generator.EmitterRpc; using Microsoft.TypeSpec.Generator.Expressions; using Microsoft.TypeSpec.Generator.Input; using Microsoft.TypeSpec.Generator.Primitives; @@ -36,6 +36,9 @@ private record OAuth2Fields(FieldProvider AuthField, FieldProvider Authorization private readonly InputClient _inputClient; private readonly InputAuth? _inputAuth; private readonly ParameterProvider _endpointParameter; + /// + /// This field is not one of the fields in this client, but the field in my parent client to get myself. + /// private readonly FieldProvider? _clientCachingField; private readonly ApiKeyFields? _apiKeyAuthFields; @@ -597,19 +600,14 @@ private ParameterProvider BuildClientEndpointParameter() private IReadOnlyList GetSubClients() { - var inputClients = ScmCodeModelGenerator.Instance.InputLibrary.InputNamespace.Clients; - var subClients = new List(inputClients.Count); + var subClients = new List(_inputClient.Children.Count); - foreach (var client in inputClients) + foreach (var client in _inputClient.Children) { - // add direct child clients - if (client.Parent != null && client.Parent == _inputClient.Key) + var subClient = ScmCodeModelGenerator.Instance.TypeFactory.CreateClient(client); + if (subClient != null) { - var subClient = ScmCodeModelGenerator.Instance.TypeFactory.CreateClient(client); - if (subClient != null) - { - subClients.Add(subClient); - } + subClients.Add(subClient); } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/ScmOutputLibrary.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/ScmOutputLibrary.cs index f45b65551ee..9f43d7c2c3f 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/ScmOutputLibrary.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/ScmOutputLibrary.cs @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using System.ClientModel; using System.Collections.Generic; using Microsoft.TypeSpec.Generator.ClientModel.Providers; +using Microsoft.TypeSpec.Generator.Input; using Microsoft.TypeSpec.Generator.Providers; namespace Microsoft.TypeSpec.Generator.ClientModel @@ -13,33 +13,43 @@ public class ScmOutputLibrary : OutputLibrary private static TypeProvider[] BuildClientTypes() { var inputClients = ScmCodeModelGenerator.Instance.InputLibrary.InputNamespace.Clients; - var clientTypes = new List(); + var clients = new List(); foreach (var inputClient in inputClients) { - var client = ScmCodeModelGenerator.Instance.TypeFactory.CreateClient(inputClient); - if (client == null) - { - continue; - } - clientTypes.Add(client); - clientTypes.Add(client.RestClient); - var clientOptions = client.ClientOptions.Value; - if (clientOptions != null) - { - clientTypes.Add(clientOptions); - } + BuildClient(inputClient, clients); + } + + return [.. clients]; + } + + private static void BuildClient(InputClient inputClient, IList clients) + { + var client = ScmCodeModelGenerator.Instance.TypeFactory.CreateClient(inputClient); + if (client == null) + { + return; + } + clients.Add(client); + clients.Add(client.RestClient); + var clientOptions = client.ClientOptions.Value; + if (clientOptions != null) + { + clients.Add(clientOptions); + } - foreach (var method in client.Methods) + foreach (var method in client.Methods) + { + if (method is ScmMethodProvider scmMethod && scmMethod.CollectionDefinition != null) { - if (method is ScmMethodProvider scmMethod && scmMethod.CollectionDefinition != null) - { - clientTypes.Add(scmMethod.CollectionDefinition); - ScmCodeModelGenerator.Instance.AddTypeToKeep(scmMethod.CollectionDefinition); - } + clients.Add(scmMethod.CollectionDefinition); + ScmCodeModelGenerator.Instance.AddTypeToKeep(scmMethod.CollectionDefinition); } } - return [.. clientTypes]; + foreach (var child in inputClient.Children) + { + BuildClient(child, clients); + } } protected override TypeProvider[] BuildTypeProviders() diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderCustomizationTests.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderCustomizationTests.cs index 149b8008106..3b8f988dfc7 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderCustomizationTests.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderCustomizationTests.cs @@ -275,9 +275,9 @@ public async Task CanRenameSubClient() InputFactory.Parameter("p1", InputFactory.Array(InputPrimitiveType.String)) ]); var inputClient = InputFactory.Client("TestClient", operations: [inputOperation]); - InputClient subClient = InputFactory.Client("custom", parent: inputClient.Name); + InputClient subClient = InputFactory.Client("custom", parent: inputClient); var mockGenerator = await MockHelpers.LoadMockGeneratorAsync( - clients: () => [inputClient, subClient], + clients: () => [inputClient], compilation: async () => await Helpers.GetCompilationFromDirectoryAsync()); // Find the sub-client provider @@ -302,9 +302,9 @@ public async Task CanRemoveCachingField() InputFactory.Parameter("p1", InputFactory.Array(InputPrimitiveType.String)) ]); var inputClient = InputFactory.Client("TestClient", operations: [inputOperation]); - InputClient subClient = InputFactory.Client("dog", operations: [], parameters: [], parent: inputClient.Name); + InputClient subClient = InputFactory.Client("dog", operations: [], parameters: [], parent: inputClient); var mockGenerator = await MockHelpers.LoadMockGeneratorAsync( - clients: () => [inputClient, subClient], + clients: () => [inputClient], compilation: async () => await Helpers.GetCompilationFromDirectoryAsync()); // find the parent client provider diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderSubClientTests.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderSubClientTests.cs index 41958202022..2664d039a40 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderSubClientTests.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderSubClientTests.cs @@ -13,28 +13,27 @@ namespace Microsoft.TypeSpec.Generator.ClientModel.Tests.Providers.ClientProvide { public class ClientProviderSubClientTests { - private const string TestClientName = "TestClient"; - private static readonly InputClient _animalClient = InputFactory.Client("animal", doc: "AnimalClient description", parent: TestClientName); - private static readonly InputClient _dogClient = InputFactory.Client("dog", doc: "DogClient description", parent: _animalClient.Name); - private static readonly InputClient _catClient = InputFactory.Client("cat", doc: "CatClient description", parent: _animalClient.Name); - private static readonly InputClient _hawkClient = InputFactory.Client("hawkClient", doc: "HawkClient description", parent: _animalClient.Name); - private static readonly InputClient _huskyClient = InputFactory.Client("husky", doc: "HuskyClient description", parent: _dogClient.Name); + private static readonly InputClient _testClient = InputFactory.Client("TestClient"); + private static readonly InputClient _animalClient = InputFactory.Client("animal", doc: "AnimalClient description", parent: _testClient); + private static readonly InputClient _dogClient = InputFactory.Client("dog", doc: "DogClient description", parent: _animalClient); + private static readonly InputClient _catClient = InputFactory.Client("cat", doc: "CatClient description", parent: _animalClient); + private static readonly InputClient _hawkClient = InputFactory.Client("hawkClient", doc: "HawkClient description", parent: _animalClient); + private static readonly InputClient _huskyClient = InputFactory.Client("husky", doc: "HuskyClient description", parent: _dogClient); [SetUp] public void SetUp() { MockHelpers.LoadMockGenerator( auth: () => new(new InputApiKeyAuth("mock", null), null), - clients: () => [_animalClient, _dogClient, _catClient, _huskyClient, _hawkClient]); + clients: () => [_testClient]); } // This test validates that the generated code is correct when the client has one direct subclient. [Test] public void ServiceClientWithSubClient() { - var client = InputFactory.Client(TestClientName); string[] expectedSubClientFactoryMethodNames = [$"Get{_animalClient.Name.ToCleanName()}Client"]; - var clientProvider = new MockClientProvider(client, expectedSubClientFactoryMethodNames); + var clientProvider = new MockClientProvider(_testClient, expectedSubClientFactoryMethodNames); var writer = new TypeProviderWriter(clientProvider); var file = writer.Write(); Assert.AreEqual(Helpers.GetExpectedFromFile(), file.Content); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderTests.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderTests.cs index 65221834d3c..f52eb7e3443 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderTests.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/Providers/ClientProviders/ClientProviderTests.cs @@ -27,9 +27,10 @@ public class ClientProviderTests private const string OAuth2Category = "WithOAuth2"; private const string OnlyUnsupportedAuthCategory = "WithOnlyUnsupportedAuth"; private const string TestClientName = "TestClient"; - private static readonly InputClient _animalClient = InputFactory.Client("animal", doc: "AnimalClient description", parent: TestClientName); - private static readonly InputClient _dogClient = InputFactory.Client("dog", doc: "DogClient description", parent: _animalClient.Name); - private static readonly InputClient _huskyClient = InputFactory.Client("husky", doc: "HuskyClient description", parent: _dogClient.Name); + private static readonly InputClient _testClient = InputFactory.Client(TestClientName); + private static readonly InputClient _animalClient = InputFactory.Client("animal", doc: "AnimalClient description", parent: _testClient); + private static readonly InputClient _dogClient = InputFactory.Client("dog", doc: "DogClient description", parent: _animalClient); + private static readonly InputClient _huskyClient = InputFactory.Client("husky", doc: "HuskyClient description", parent: _dogClient); private static readonly InputModelType _spreadModel = InputFactory.Model( "spreadModel", usage: InputModelTypeUsage.Spread, @@ -55,7 +56,7 @@ public void SetUp() _hasOnlyUnsupportedAuth = categories?.Contains(OnlyUnsupportedAuthCategory) ?? false; Func>? clients = _containsSubClients ? - () => [_animalClient, _dogClient, _huskyClient] : + () => [_testClient] : null; InputApiKeyAuth? apiKeyAuth = _hasKeyAuth ? new InputApiKeyAuth("mock", null) : null; InputOAuth2Auth? oauth2Auth = _hasOAuth2 ? new InputOAuth2Auth(["mock"]) : null; @@ -510,13 +511,13 @@ public void EndpointInitializationValue(InputParameter endpointParameter, ValueE [TestCase(false)] public void TestGetClientOptions(bool isSubClient) { - string? parentClientName = null; + InputClient? parentClient = null; if (isSubClient) { - parentClientName = "parent"; + parentClient = InputFactory.Client("parent"); } - var client = InputFactory.Client(TestClientName, parent: parentClientName); + var client = InputFactory.Client(TestClientName, parent: parentClient); var clientProvider = new ClientProvider(client); Assert.IsNotNull(clientProvider); @@ -1017,7 +1018,7 @@ public static IEnumerable SubClientFieldsTestCases { get { - yield return new TestCaseData(InputFactory.Client(TestClientName), new List + yield return new TestCaseData(_testClient, new List { new(FieldModifiers.Private | FieldModifiers.ReadOnly, new CSharpType(typeof(Uri)), "_endpoint"), new(FieldModifiers.Private, new ExpectedCSharpType("Animal", "Sample", false), "_cachedAnimal"), @@ -1066,7 +1067,7 @@ public static IEnumerable SubClientFactoryMethodTestCases { get { - yield return new TestCaseData(InputFactory.Client(TestClientName), true); + yield return new TestCaseData(_testClient, true); yield return new TestCaseData(_animalClient, true); yield return new TestCaseData(_dogClient, true); yield return new TestCaseData(_huskyClient, false); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/TestHelpers/MockHelpers.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/TestHelpers/MockHelpers.cs index cfe2fdd2723..c329555fc92 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/TestHelpers/MockHelpers.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/test/TestHelpers/MockHelpers.cs @@ -73,8 +73,7 @@ public static Mock LoadMockGenerator( inputNsEnums, inputNsModels, inputNsClients, - inputAuth!, - Array.Empty()); + inputAuth!); var mockInputLibrary = new Mock(_configFilePath); mockInputLibrary.Setup(p => p.InputNamespace).Returns(mockInputNs.Object); diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs index e8059ce4d51..264a208fcdb 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputClient.cs @@ -11,7 +11,7 @@ public class InputClient private readonly string? _key; private IReadOnlyDictionary? _examples; - public InputClient(string name, string @namespace, string crossLanguageDefinitionId, string? summary, string? doc, IReadOnlyList operations, IReadOnlyList parameters, string? parent) + public InputClient(string name, string @namespace, string crossLanguageDefinitionId, string? summary, string? doc, IReadOnlyList operations, IReadOnlyList parameters, InputClient? parent, IReadOnlyList? children) { Name = name; Namespace = @namespace; @@ -21,9 +21,10 @@ public InputClient(string name, string @namespace, string crossLanguageDefinitio Operations = operations; Parameters = parameters; Parent = parent; + Children = children ?? []; } - public InputClient() : this(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, Array.Empty(), Array.Empty(), null) { } + public InputClient() : this(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, Array.Empty(), Array.Empty(), null, null) { } public string Name { get; internal set; } public string Namespace { get; internal set; } @@ -32,7 +33,8 @@ public InputClient() : this(string.Empty, string.Empty, string.Empty, string.Emp public string? Doc { get; internal set; } public IReadOnlyList Operations { get; internal set; } public IReadOnlyList Parameters { get; internal set; } - public string? Parent { get; internal set; } + public InputClient? Parent { get; internal set; } + public IReadOnlyList Children { get; internal set; } public IReadOnlyList Decorators { get; internal set; } = new List(); public string Key diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputNamespace.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputNamespace.cs index 684b6ac6109..7ec288a2e06 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputNamespace.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputNamespace.cs @@ -15,7 +15,9 @@ public class InputNamespace "Enum", ]; - public InputNamespace(string name, IReadOnlyList apiVersions, IReadOnlyList enums, IReadOnlyList models, IReadOnlyList clients, InputAuth? auth, IReadOnlyList? invalidNamespaceSegments = null) + private readonly List _invalidNamespaceSegments; + + public InputNamespace(string name, IReadOnlyList apiVersions, IReadOnlyList enums, IReadOnlyList models, IReadOnlyList clients, InputAuth? auth) { Name = name; ApiVersions = apiVersions; @@ -23,9 +25,8 @@ public InputNamespace(string name, IReadOnlyList apiVersions, IReadOnlyL Models = models; Clients = clients; Auth = auth; - InvalidNamespaceSegments = invalidNamespaceSegments != null ? - [.._knownInvalidNamespaceSegments, ..invalidNamespaceSegments] : - _knownInvalidNamespaceSegments; + _invalidNamespaceSegments = [.. _knownInvalidNamespaceSegments]; + InvalidNamespaceSegments = _invalidNamespaceSegments; } public InputNamespace() : this(name: string.Empty, apiVersions: Array.Empty(), enums: Array.Empty(), models: Array.Empty(), clients: Array.Empty(), auth: new InputAuth()) { } @@ -37,5 +38,10 @@ public InputNamespace(string name, IReadOnlyList apiVersions, IReadOnlyL public IReadOnlyList Clients { get; init; } public InputAuth? Auth { get; init; } public IReadOnlyList InvalidNamespaceSegments { get; init; } + + internal void AddInvalidNamespaceSegment(string segment) + { + _invalidNamespaceSegments.Add(segment); + } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs index 67306a30d15..93450324280 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputClientConverter.cs @@ -41,8 +41,9 @@ public override void Write(Utf8JsonWriter writer, InputClient value, JsonSeriali IReadOnlyList? operations = null; IReadOnlyList? parameters = null; IReadOnlyList? decorators = null; - string? parent = null; string? crossLanguageDefinitionId = null; + InputClient? parent = null; + IReadOnlyList? children = null; while (reader.TokenType != JsonTokenType.EndObject) { @@ -52,9 +53,10 @@ public override void Write(Utf8JsonWriter writer, InputClient value, JsonSeriali || reader.TryReadString("doc", ref doc) || reader.TryReadComplexType("operations", options, ref operations) || reader.TryReadComplexType("parameters", options, ref parameters) - || reader.TryReadString("parent", ref parent) || reader.TryReadComplexType("decorators", options, ref decorators) - || reader.TryReadString("crossLanguageDefinitionId", ref crossLanguageDefinitionId); + || reader.TryReadString("crossLanguageDefinitionId", ref crossLanguageDefinitionId) + || reader.TryReadComplexType("parent", options, ref parent) + || reader.TryReadComplexType("children", options, ref children); if (!isKnownProperty) { @@ -69,30 +71,11 @@ public override void Write(Utf8JsonWriter writer, InputClient value, JsonSeriali client.Doc = doc; client.Operations = operations ?? []; client.Parameters = parameters ?? []; - client.Parent = parent; client.Decorators = decorators ?? []; - - var lastSegment = GetLastSegment(client.Namespace); - if (lastSegment == client.Name) - { - // invalid namespace segment found, add it into the list - var invalidNamespaceSegments = (List)resolver.ResolveReference(TypeSpecSerialization.InvalidNamespaceSegmentsKey); - invalidNamespaceSegments.Add(client.Name); - } + client.Parent = parent; + client.Children = children ?? []; return client; } - - private static string GetLastSegment(string @namespace) - { - var span = @namespace.AsSpan(); - var index = span.LastIndexOf('.'); - if (index == -1) - { - return @namespace; - } - - return span.Slice(index + 1).ToString(); - } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputNamespaceConverter.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputNamespaceConverter.cs index 0a9323f891e..7a47373124e 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputNamespaceConverter.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputNamespaceConverter.cs @@ -30,9 +30,6 @@ public override void Write(Utf8JsonWriter writer, InputNamespace value, JsonSeri reader.Read(); } - var invalidNamespaceSegments = new List(); - resolver.AddReference(TypeSpecSerialization.InvalidNamespaceSegmentsKey, invalidNamespaceSegments); - string? name = null; IReadOnlyList? apiVersions = null; IReadOnlyList? enums = null; @@ -66,8 +63,7 @@ public override void Write(Utf8JsonWriter writer, InputNamespace value, JsonSeri enums, models, clients, - auth, - invalidNamespaceSegments); + auth); } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecSerialization.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecSerialization.cs index c904dcbf93e..10a5baf5b51 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecSerialization.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecSerialization.cs @@ -1,6 +1,10 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; using System.Text.Json; using System.Text.Json.Serialization; using AutoRest.CSharp.Common.Input; @@ -9,7 +13,6 @@ namespace Microsoft.TypeSpec.Generator.Input { public static class TypeSpecSerialization { - internal const string InvalidNamespaceSegmentsKey = "InvalidNamespaceSegments"; public static InputNamespace? Deserialize(string json) { var referenceHandler = new TypeSpecReferenceHandler(); @@ -54,7 +57,66 @@ public static class TypeSpecSerialization } }; - return JsonSerializer.Deserialize(json, options); + var inputNamespace = JsonSerializer.Deserialize(json, options); + + if (inputNamespace != null) + { + UpdateClientsName(inputNamespace, inputNamespace.Clients, new List()); + } + + return inputNamespace; + } + + private static void UpdateClientsName(InputNamespace inputNamespace, IReadOnlyList clients, List parentNames) + { + foreach (var client in clients) + { + var cleanName = client.Name.ToCleanName(); + client.Name = BuildClientName(cleanName, parentNames); + + var lastSegment = GetLastSegment(client.Namespace); + if (lastSegment == client.Name) + { + // when the last segment is the same as the name of this client, we would have a namespace conflict. + // therefore here we add it into the list of invalid namespace segments, and later when we escape the namespace with invalid segments, we could give a warning. + inputNamespace.AddInvalidNamespaceSegment(lastSegment); + } + + parentNames.Add(cleanName); + UpdateClientsName(inputNamespace, client.Children, parentNames); + parentNames.RemoveAt(parentNames.Count - 1); + } + } + + private static string BuildClientName(string name, List parentNames) + { + if (parentNames.Count <= 1) + { + // toplevel client, and first level sub-client will keep its original name. + return name; + } + + // more deeper level client will prepend all their parents' name (except for the root) as the prefix of the client name to avoid client name conflict + // such as we have client A.B.C and A.D.C, now the two subclient C will be named to BC and DC. + var builder = new StringBuilder(); + foreach (var parentName in parentNames.Skip(1)) + { + builder.Append(parentName); + } + builder.Append(name); + return builder.ToString(); + } + + private static string GetLastSegment(string @namespace) + { + var span = @namespace.AsSpan(); + var index = span.LastIndexOf('.'); + if (index == -1) + { + return @namespace; + } + + return span.Slice(index + 1).ToString(); } } } diff --git a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs index 353207b31c5..16ce76c3c24 100644 --- a/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs +++ b/packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator/test/common/InputFactory.cs @@ -269,9 +269,13 @@ public static InputOperationResponse OperationResponse(IEnumerable? statusC ["application/json"]); } - public static InputClient Client(string name, string clientNamespace = "Sample", string? doc = null, IEnumerable? operations = null, IEnumerable? parameters = null, string? parent = null, string? crossLanguageDefinitionId = null) + private static readonly Dictionary> _childClientsCache = new(); + + public static InputClient Client(string name, string clientNamespace = "Sample", string? doc = null, IEnumerable? operations = null, IEnumerable? parameters = null, InputClient? parent = null, string? crossLanguageDefinitionId = null) { - return new InputClient( + // when this client has parent, we add the constructed client into the `children` list of the parent + var clientChildren = new List(); + var client = new InputClient( name, clientNamespace, crossLanguageDefinitionId ?? $"{clientNamespace}.{name}", @@ -279,7 +283,15 @@ public static InputClient Client(string name, string clientNamespace = "Sample", doc ?? $"{name} description", operations is null ? [] : [.. operations], parameters is null ? [] : [.. parameters], - parent); + parent, + clientChildren); + _childClientsCache[client] = clientChildren; + // when we have a parent, we need to find the children list of this parent client and update accordingly. + if (parent != null && _childClientsCache.TryGetValue(parent, out var children)) + { + children.Add(client); + } + return client; } } } diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json index e527ca00676..dd8a5c504f2 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/tspCodeModel.json @@ -2408,6 +2408,7 @@ "clients": [ { "$id": "308", + "kind": "client", "name": "UnbrandedTypeSpecClient", "namespace": "UnbrandedTypeSpec", "doc": "This is a sample typespec project.", @@ -4502,7 +4503,11 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "UnbrandedTypeSpec" + "crossLanguageDefinitionId": "UnbrandedTypeSpec", + "apiVersions": [ + "2024-07-16-preview", + "2024-08-16-preview" + ] } ], "auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json index 6f39c5abe54..0a2bfa2494b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json @@ -45,6 +45,7 @@ "clients": [ { "$id": "7", + "kind": "client", "name": "ApiKeyClient", "namespace": "Authentication.ApiKey", "doc": "Illustrates clients generated with ApiKey authentication.", @@ -163,7 +164,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Authentication.ApiKey" + "crossLanguageDefinitionId": "Authentication.ApiKey", + "apiVersions": [] } ], "auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json index be889a16169..f07c5b70224 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json @@ -45,6 +45,7 @@ "clients": [ { "$id": "7", + "kind": "client", "name": "CustomClient", "namespace": "Authentication.Http.Custom", "doc": "Illustrates clients generated with generic HTTP auth.", @@ -163,7 +164,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Authentication.Http.Custom" + "crossLanguageDefinitionId": "Authentication.Http.Custom", + "apiVersions": [] } ], "auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json index bddc8d68206..6d1e451d856 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json @@ -45,6 +45,7 @@ "clients": [ { "$id": "7", + "kind": "client", "name": "OAuth2Client", "namespace": "Authentication.OAuth2", "doc": "Illustrates clients generated with OAuth2 authentication.", @@ -163,7 +164,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Authentication.OAuth2" + "crossLanguageDefinitionId": "Authentication.OAuth2", + "apiVersions": [] } ], "auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json index 6f0cd615863..3facc504d21 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json @@ -7,6 +7,7 @@ "clients": [ { "$id": "2", + "kind": "client", "name": "UnionClient", "namespace": "Authentication.Union", "doc": "Illustrates clients generated with ApiKey and OAuth2 authentication.", @@ -97,7 +98,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Authentication.Union" + "crossLanguageDefinitionId": "Authentication.Union", + "apiVersions": [] } ], "auth": { diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json index 7b56c96e5f6..60546c4887b 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json @@ -113,6 +113,7 @@ "clients": [ { "$id": "14", + "kind": "client", "name": "FirstClient", "namespace": "Client.Structure.ClientOperationGroup", "operations": [ @@ -182,183 +183,195 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup" - }, - { - "$id": "20", - "name": "Group3", - "namespace": "Client.Structure.ClientOperationGroup", - "operations": [ + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup", + "apiVersions": [], + "children": [ { - "$id": "21", - "name": "two", - "resourceName": "Group3", - "accessibility": "public", - "parameters": [], - "responses": [ + "$id": "20", + "kind": "client", + "name": "Group3", + "namespace": "Client.Structure.ClientOperationGroup", + "operations": [ { - "$id": "22", - "statusCodes": [ - 204 + "$id": "21", + "name": "two", + "resourceName": "Group3", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "22", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/two", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.two", + "decorators": [] + }, + { + "$id": "23", + "name": "three", + "resourceName": "Group3", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "24", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/three", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.three", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/two", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.two", - "decorators": [] - }, - { - "$id": "23", - "name": "three", - "resourceName": "Group3", - "accessibility": "public", - "parameters": [], - "responses": [ + "parameters": [ { - "$id": "24", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "$id": "25", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "26", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "27", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/three", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.three", - "decorators": [] - } - ], - "parent": "FirstClient", - "parameters": [ - { - "$id": "25", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "26", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3", + "apiVersions": [], + "parent": { + "$ref": "14" + } }, { - "$id": "27", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3" - }, - { - "$id": "28", - "name": "Group4", - "namespace": "Client.Structure.ClientOperationGroup", - "operations": [ - { - "$id": "29", - "name": "four", - "resourceName": "Group4", - "accessibility": "public", - "parameters": [], - "responses": [ + "$id": "28", + "kind": "client", + "name": "Group4", + "namespace": "Client.Structure.ClientOperationGroup", + "operations": [ { - "$id": "30", - "statusCodes": [ - 204 + "$id": "29", + "name": "four", + "resourceName": "Group4", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "30", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/four", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4.four", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/four", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4.four", - "decorators": [] - } - ], - "parent": "FirstClient", - "parameters": [ - { - "$id": "31", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "32", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "33", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" + "parameters": [ + { + "$id": "31", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "32", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "33", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4", + "apiVersions": [], + "parent": { + "$ref": "14" + } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4" + ] }, { "$id": "34", + "kind": "client", "name": "SubNamespace.SecondClient", "namespace": "Client.Structure.AnotherClientOperationGroup", "operations": [ @@ -428,81 +441,88 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup" - }, - { - "$id": "40", - "name": "Group5", - "namespace": "Client.Structure.AnotherClientOperationGroup", - "operations": [ + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup", + "apiVersions": [], + "children": [ { - "$id": "41", - "name": "six", - "resourceName": "Group5", - "accessibility": "public", - "parameters": [], - "responses": [ + "$id": "40", + "kind": "client", + "name": "Group5", + "namespace": "Client.Structure.AnotherClientOperationGroup", + "operations": [ { - "$id": "42", - "statusCodes": [ - 204 + "$id": "41", + "name": "six", + "resourceName": "Group5", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "42", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/six", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5.six", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/six", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5.six", - "decorators": [] - } - ], - "parent": "SubNamespace.SecondClient", - "parameters": [ - { - "$id": "43", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "44", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "45", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" + "parameters": [ + { + "$id": "43", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "44", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "45", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5", + "apiVersions": [], + "parent": { + "$ref": "34" + } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json index 8aa92efd6bf..1140defcb42 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json @@ -113,6 +113,7 @@ "clients": [ { "$id": "14", + "kind": "client", "name": "ServiceClient", "namespace": "Client.Structure.Service", "doc": "Test that we can use @client and @operationGroup decorators to customize client side code structure, such as:\n1. have everything as default.\n2. to rename client or operation group\n3. one client can have more than one operations groups\n4. split one interface into two clients\n5. have two clients with operations come from different interfaces\n6. have two clients with a hierarchy relation.", @@ -208,475 +209,506 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.Service" - }, - { - "$id": "22", - "name": "Baz", - "namespace": "Client.Structure.Service.Baz", - "operations": [], - "parent": "ServiceClient", - "parameters": [ + "crossLanguageDefinitionId": "Client.Structure.Service", + "apiVersions": [], + "children": [ { - "$id": "23", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "24", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "25", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.Service.Baz" - }, - { - "$id": "26", - "name": "BazFoo", - "namespace": "Client.Structure.Service.Baz", - "operations": [ - { - "$id": "27", - "name": "seven", - "resourceName": "Foo", - "accessibility": "public", - "parameters": [], - "responses": [ + "$id": "22", + "kind": "client", + "name": "Baz", + "namespace": "Client.Structure.Service.Baz", + "operations": [], + "parameters": [ { - "$id": "28", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "$id": "23", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "24", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "25", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/seven", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo.seven", - "decorators": [] - } - ], - "parent": "Baz", - "parameters": [ - { - "$id": "29", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "30", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "31", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Baz", + "apiVersions": [], + "parent": { + "$ref": "14" }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo" - }, - { - "$id": "32", - "name": "Qux", - "namespace": "Client.Structure.Service.Qux", - "operations": [ - { - "$id": "33", - "name": "eight", - "resourceName": "Qux", - "accessibility": "public", - "parameters": [], - "responses": [ + "children": [ { - "$id": "34", - "statusCodes": [ - 204 + "$id": "26", + "kind": "client", + "name": "Foo", + "namespace": "Client.Structure.Service.Baz", + "operations": [ + { + "$id": "27", + "name": "seven", + "resourceName": "Foo", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "28", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/seven", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo.seven", + "decorators": [] + } ], - "headers": [], - "isErrorResponse": false + "parameters": [ + { + "$id": "29", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "30", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "31", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo", + "apiVersions": [], + "parent": { + "$ref": "22" + } } - ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/eight", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Qux.eight", - "decorators": [] - } - ], - "parent": "ServiceClient", - "parameters": [ - { - "$id": "35", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "36", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" + ] }, { - "$id": "37", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.Service.Qux" - }, - { - "$id": "38", - "name": "QuxBar", - "namespace": "Client.Structure.Service.Qux", - "operations": [ - { - "$id": "39", - "name": "nine", - "resourceName": "Bar", - "accessibility": "public", - "parameters": [], - "responses": [ + "$id": "32", + "kind": "client", + "name": "Qux", + "namespace": "Client.Structure.Service.Qux", + "operations": [ { - "$id": "40", - "statusCodes": [ - 204 + "$id": "33", + "name": "eight", + "resourceName": "Qux", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "34", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/eight", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Qux.eight", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/nine", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar.nine", - "decorators": [] - } - ], - "parent": "Qux", - "parameters": [ - { - "$id": "41", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "42", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "43", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" + "parameters": [ + { + "$id": "35", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "36", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "37", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Qux", + "apiVersions": [], + "parent": { + "$ref": "14" }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar" - }, - { - "$id": "44", - "name": "Foo", - "namespace": "Client.Structure.Service", - "operations": [ - { - "$id": "45", - "name": "three", - "resourceName": "Foo", - "accessibility": "public", - "parameters": [], - "responses": [ + "children": [ { - "$id": "46", - "statusCodes": [ - 204 + "$id": "38", + "kind": "client", + "name": "Bar", + "namespace": "Client.Structure.Service.Qux", + "operations": [ + { + "$id": "39", + "name": "nine", + "resourceName": "Bar", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "40", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/nine", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar.nine", + "decorators": [] + } ], - "headers": [], - "isErrorResponse": false + "parameters": [ + { + "$id": "41", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "42", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "43", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar", + "apiVersions": [], + "parent": { + "$ref": "32" + } } - ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/three", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Foo.three", - "decorators": [] + ] }, { - "$id": "47", - "name": "four", - "resourceName": "Foo", - "accessibility": "public", - "parameters": [], - "responses": [ + "$id": "44", + "kind": "client", + "name": "Foo", + "namespace": "Client.Structure.Service", + "operations": [ { - "$id": "48", - "statusCodes": [ - 204 + "$id": "45", + "name": "three", + "resourceName": "Foo", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "46", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/three", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Foo.three", + "decorators": [] + }, + { + "$id": "47", + "name": "four", + "resourceName": "Foo", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "48", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/four", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Foo.four", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/four", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Foo.four", - "decorators": [] - } - ], - "parent": "ServiceClient", - "parameters": [ - { - "$id": "49", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "50", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "51", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.Service.Foo" - }, - { - "$id": "52", - "name": "Bar", - "namespace": "Client.Structure.Service", - "operations": [ - { - "$id": "53", - "name": "five", - "resourceName": "Bar", - "accessibility": "public", - "parameters": [], - "responses": [ + "parameters": [ { - "$id": "54", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "$id": "49", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "50", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "51", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/five", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Bar.five", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Foo", + "apiVersions": [], + "parent": { + "$ref": "14" + } }, { - "$id": "55", - "name": "six", - "resourceName": "Bar", - "accessibility": "public", - "parameters": [], - "responses": [ + "$id": "52", + "kind": "client", + "name": "Bar", + "namespace": "Client.Structure.Service", + "operations": [ { - "$id": "56", - "statusCodes": [ - 204 + "$id": "53", + "name": "five", + "resourceName": "Bar", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "54", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/five", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Bar.five", + "decorators": [] + }, + { + "$id": "55", + "name": "six", + "resourceName": "Bar", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "56", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/six", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.Service.Bar.six", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/six", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.Service.Bar.six", - "decorators": [] - } - ], - "parent": "ServiceClient", - "parameters": [ - { - "$id": "57", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "58", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "59", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" + "parameters": [ + { + "$id": "57", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "58", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "59", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.Service.Bar", + "apiVersions": [], + "parent": { + "$ref": "14" + } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.Service.Bar" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json index f917406878d..5e693e0e402 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json @@ -113,6 +113,7 @@ "clients": [ { "$id": "14", + "kind": "client", "name": "ClientAClient", "namespace": "Client.Structure.MultiClient", "operations": [ @@ -232,10 +233,12 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA" + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA", + "apiVersions": [] }, { "$id": "24", + "kind": "client", "name": "ClientBClient", "namespace": "Client.Structure.MultiClient", "operations": [ @@ -355,7 +358,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB" + "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB", + "apiVersions": [] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json index 1446ea38525..611136cdaf4 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json @@ -113,6 +113,7 @@ "clients": [ { "$id": "14", + "kind": "client", "name": "RenamedOperationClient", "namespace": "Client.Structure.RenamedOperation", "operations": [ @@ -232,131 +233,138 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation" - }, - { - "$id": "24", - "name": "Group", - "namespace": "Client.Structure.RenamedOperation", - "operations": [ + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation", + "apiVersions": [], + "children": [ { - "$id": "25", - "name": "renamedTwo", - "resourceName": "Group", - "accessibility": "public", - "parameters": [], - "responses": [ + "$id": "24", + "kind": "client", + "name": "Group", + "namespace": "Client.Structure.RenamedOperation", + "operations": [ { - "$id": "26", - "statusCodes": [ - 204 + "$id": "25", + "name": "renamedTwo", + "resourceName": "Group", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "26", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/two", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedTwo", - "decorators": [] - }, - { - "$id": "27", - "name": "renamedFour", - "resourceName": "Group", - "accessibility": "public", - "parameters": [], - "responses": [ + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/two", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedTwo", + "decorators": [] + }, { - "$id": "28", - "statusCodes": [ - 204 + "$id": "27", + "name": "renamedFour", + "resourceName": "Group", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "28", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/four", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedFour", + "decorators": [] + }, + { + "$id": "29", + "name": "renamedSix", + "resourceName": "Group", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "30", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/six", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedSix", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/four", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedFour", - "decorators": [] - }, - { - "$id": "29", - "name": "renamedSix", - "resourceName": "Group", - "accessibility": "public", - "parameters": [], - "responses": [ + "parameters": [ { - "$id": "30", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "$id": "31", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "32", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "33", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/six", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedSix", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group", + "apiVersions": [], + "parent": { + "$ref": "14" + } } - ], - "parent": "RenamedOperationClient", - "parameters": [ - { - "$id": "31", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "32", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "33", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json index 2217298c647..e2e65e12889 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json @@ -113,6 +113,7 @@ "clients": [ { "$id": "14", + "kind": "client", "name": "TwoOperationGroupClient", "namespace": "Client.Structure.TwoOperationGroup", "operations": [], @@ -156,255 +157,266 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup" - }, - { - "$id": "18", - "name": "Group1", - "namespace": "Client.Structure.TwoOperationGroup", - "operations": [ + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup", + "apiVersions": [], + "children": [ { - "$id": "19", - "name": "one", - "resourceName": "Group1", - "accessibility": "public", - "parameters": [], - "responses": [ + "$id": "18", + "kind": "client", + "name": "Group1", + "namespace": "Client.Structure.TwoOperationGroup", + "operations": [ { - "$id": "20", - "statusCodes": [ - 204 + "$id": "19", + "name": "one", + "resourceName": "Group1", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "20", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/one", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.one", - "decorators": [] - }, - { - "$id": "21", - "name": "three", - "resourceName": "Group1", - "accessibility": "public", - "parameters": [], - "responses": [ + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/one", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.one", + "decorators": [] + }, { - "$id": "22", - "statusCodes": [ - 204 + "$id": "21", + "name": "three", + "resourceName": "Group1", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "22", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/three", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.three", - "decorators": [] - }, - { - "$id": "23", - "name": "four", - "resourceName": "Group1", - "accessibility": "public", - "parameters": [], - "responses": [ + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/three", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.three", + "decorators": [] + }, { - "$id": "24", - "statusCodes": [ - 204 + "$id": "23", + "name": "four", + "resourceName": "Group1", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "24", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/four", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.four", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/four", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.four", - "decorators": [] - } - ], - "parent": "TwoOperationGroupClient", - "parameters": [ - { - "$id": "25", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "26", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "27", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1" - }, - { - "$id": "28", - "name": "Group2", - "namespace": "Client.Structure.TwoOperationGroup", - "operations": [ - { - "$id": "29", - "name": "two", - "resourceName": "Group2", - "accessibility": "public", - "parameters": [], - "responses": [ + "parameters": [ { - "$id": "30", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "$id": "25", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "26", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "27", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/two", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.two", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1", + "apiVersions": [], + "parent": { + "$ref": "14" + } }, { - "$id": "31", - "name": "five", - "resourceName": "Group2", - "accessibility": "public", - "parameters": [], - "responses": [ + "$id": "28", + "kind": "client", + "name": "Group2", + "namespace": "Client.Structure.TwoOperationGroup", + "operations": [ + { + "$id": "29", + "name": "two", + "resourceName": "Group2", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "30", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/two", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.two", + "decorators": [] + }, { - "$id": "32", - "statusCodes": [ - 204 + "$id": "31", + "name": "five", + "resourceName": "Group2", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "32", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/five", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.five", + "decorators": [] + }, + { + "$id": "33", + "name": "six", + "resourceName": "Group2", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "34", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/client/structure/{client}", + "path": "/six", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.six", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/five", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.five", - "decorators": [] - }, - { - "$id": "33", - "name": "six", - "resourceName": "Group2", - "accessibility": "public", - "parameters": [], - "responses": [ + "parameters": [ { - "$id": "34", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "$id": "35", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", + "type": { + "$id": "36", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" + }, + { + "$id": "37", + "name": "client", + "nameInRequest": "client", + "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", + "type": { + "$ref": "2" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": false, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" } ], - "httpMethod": "POST", - "uri": "{endpoint}/client/structure/{client}", - "path": "/six", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.six", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2", + "apiVersions": [], + "parent": { + "$ref": "14" + } } - ], - "parent": "TwoOperationGroupClient", - "parameters": [ - { - "$id": "35", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "36", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "37", - "name": "client", - "nameInRequest": "client", - "doc": "Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.", - "type": { - "$ref": "2" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2" + ] } ] } 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 ffd98afd0ba..8b9c14ae015 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 @@ -175,6 +175,7 @@ "clients": [ { "$id": "24", + "kind": "client", "name": "BytesClient", "namespace": "Encode.Bytes", "doc": "Test for encode decorator on bytes.", @@ -212,1533 +213,1446 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes" - }, - { - "$id": "29", - "name": "Query", - "namespace": "Encode.Bytes.Query", - "operations": [ - { - "$id": "30", - "name": "default", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "31", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "32", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "33", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/query/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.Query.default", - "decorators": [] - }, + "crossLanguageDefinitionId": "Encode.Bytes", + "apiVersions": [], + "children": [ { - "$id": "34", - "name": "base64", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "35", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "36", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "29", + "kind": "client", + "name": "Query", + "namespace": "Encode.Bytes.Query", + "operations": [ { - "$id": "37", - "statusCodes": [ - 204 + "$id": "30", + "name": "default", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "31", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "32", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/query/base64", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.Query.base64", - "decorators": [] - }, - { - "$id": "38", - "name": "base64url", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "39", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "40", - "kind": "bytes", - "name": "bytes", - "encode": "base64url", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "41", - "statusCodes": [ - 204 + "responses": [ + { + "$id": "33", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/query/base64url", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.Query.base64url", - "decorators": [] - }, - { - "$id": "42", - "name": "base64urlArray", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/query/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.Query.default", + "decorators": [] + }, { - "$id": "43", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "44", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "45", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "46", + "$id": "34", + "name": "base64", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "35", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "36", "kind": "bytes", "name": "bytes", "encode": "base64", "crossLanguageDefinitionId": "TypeSpec.bytes", "decorators": [] }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "47", - "statusCodes": [ - 204 + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/query/base64url-array", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.Query.base64urlArray", - "decorators": [] - } - ], - "parent": "BytesClient", - "parameters": [ - { - "$id": "48", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "49", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "50", - "type": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Query" - }, - { - "$id": "52", - "name": "Property", - "namespace": "Encode.Bytes.Property", - "operations": [ - { - "$id": "53", - "name": "default", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "54", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "55", - "kind": "constant", - "valueType": { - "$id": "56", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "responses": [ + { + "$id": "37", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/query/base64", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.Query.base64", + "decorators": [] }, { - "$id": "57", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "58", - "kind": "constant", - "valueType": { - "$id": "59", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "38", + "name": "base64url", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "39", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "40", + "kind": "bytes", + "name": "bytes", + "encode": "base64url", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "41", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/query/base64url", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.Query.base64url", + "decorators": [] }, { - "$id": "60", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "2" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "61", - "statusCodes": [ - 200 + "$id": "42", + "name": "base64urlArray", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "43", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "44", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "45", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "46", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "2" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "responses": [ + { + "$id": "47", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/query/base64url-array", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.Query.base64urlArray", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/bytes/property/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.Property.default", - "decorators": [] - }, - { - "$id": "62", - "name": "base64", - "resourceName": "Property", - "accessibility": "public", "parameters": [ { - "$id": "63", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "48", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "64", - "kind": "constant", - "valueType": { - "$id": "65", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "49", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, + "isContentType": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "66", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "67", - "kind": "constant", - "valueType": { - "$id": "68", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "50", + "type": { + "$id": "51", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "69", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "7" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "70", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "7" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "value": "http://localhost:3000" + } } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/bytes/property/base64", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes.Query", + "apiVersions": [], + "parent": { + "$ref": "24" + } }, { - "$id": "71", - "name": "base64url", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "72", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "73", - "kind": "constant", - "valueType": { - "$id": "74", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, + "$id": "52", + "kind": "client", + "name": "Property", + "namespace": "Encode.Bytes.Property", + "operations": [ { - "$id": "75", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "76", - "kind": "constant", - "valueType": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "53", + "name": "default", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "54", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "55", + "kind": "constant", + "valueType": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "78", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "12" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "79", - "statusCodes": [ - 200 + { + "$id": "57", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "58", + "kind": "constant", + "valueType": { + "$id": "59", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "60", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "12" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "61", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/bytes/property/default", + "requestMediaTypes": [ "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/bytes/property/base64url", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url", - "decorators": [] - }, - { - "$id": "80", - "name": "base64urlArray", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "81", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "82", - "kind": "constant", - "valueType": { - "$id": "83", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.Property.default", + "decorators": [] }, { - "$id": "84", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "85", - "kind": "constant", - "valueType": { - "$id": "86", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "62", + "name": "base64", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "63", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "64", + "kind": "constant", + "valueType": { + "$id": "65", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "66", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "67", + "kind": "constant", + "valueType": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "69", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "7" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "70", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "7" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/bytes/property/base64", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64", + "decorators": [] }, { - "$id": "87", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "17" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "88", - "statusCodes": [ - 200 + "$id": "71", + "name": "base64url", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "72", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "73", + "kind": "constant", + "valueType": { + "$id": "74", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "75", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "76", + "kind": "constant", + "valueType": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "78", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "12" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "17" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "79", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "12" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/bytes/property/base64url", + "requestMediaTypes": [ "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/bytes/property/base64url-array", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray", - "decorators": [] - } - ], - "parent": "BytesClient", - "parameters": [ - { - "$id": "89", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "90", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "91", - "type": { - "$id": "92", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64url", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Property" - }, - { - "$id": "93", - "name": "Header", - "namespace": "Encode.Bytes.Header", - "operations": [ - { - "$id": "94", - "name": "default", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "95", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "96", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ { - "$id": "97", - "statusCodes": [ - 204 + "$id": "80", + "name": "base64urlArray", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "81", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "82", + "kind": "constant", + "valueType": { + "$id": "83", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "84", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "85", + "kind": "constant", + "valueType": { + "$id": "86", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "87", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "17" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/header/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.Header.default", - "decorators": [] - }, - { - "$id": "98", - "name": "base64", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "99", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "100", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "101", - "statusCodes": [ - 204 + "responses": [ + { + "$id": "88", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "17" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/bytes/property/base64url-array", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.Property.base64urlArray", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/header/base64", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64", - "decorators": [] - }, - { - "$id": "102", - "name": "base64url", - "resourceName": "Header", - "accessibility": "public", "parameters": [ { - "$id": "103", - "name": "value", - "nameInRequest": "value", + "$id": "89", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "104", - "kind": "bytes", - "name": "bytes", - "encode": "base64url", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] + "$id": "90", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "105", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "91", + "type": { + "$id": "92", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/header/base64url", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64url", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes.Property", + "apiVersions": [], + "parent": { + "$ref": "24" + } }, { - "$id": "106", - "name": "base64urlArray", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ + "$id": "93", + "kind": "client", + "name": "Header", + "namespace": "Encode.Bytes.Header", + "operations": [ { - "$id": "107", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "108", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "109", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64url", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "110", + "$id": "94", + "name": "default", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "95", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "96", "kind": "bytes", "name": "bytes", "encode": "base64", "crossLanguageDefinitionId": "TypeSpec.bytes", "decorators": [] }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "111", - "statusCodes": [ - 204 + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/header/base64url-array", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.Header.base64urlArray", - "decorators": [] - } - ], - "parent": "BytesClient", - "parameters": [ - { - "$id": "112", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "113", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "114", - "type": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.Header" - }, - { - "$id": "116", - "name": "RequestBody", - "namespace": "Encode.Bytes.RequestBody", - "operations": [ - { - "$id": "117", - "name": "default", - "resourceName": "RequestBody", - "accessibility": "public", - "parameters": [ - { - "$id": "118", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/octet-stream", - "type": { - "$id": "119", - "kind": "constant", - "valueType": { - "$id": "120", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "responses": [ + { + "$id": "97", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/header/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.Header.default", + "decorators": [] }, { - "$id": "121", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "122", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "123", - "statusCodes": [ - 204 + "$id": "98", + "name": "base64", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "99", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "100", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/bytes/body/request/default", - "requestMediaTypes": [ - "application/octet-stream" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default", - "decorators": [] - }, - { - "$id": "124", - "name": "octetStream", - "resourceName": "RequestBody", - "accessibility": "public", - "parameters": [ - { - "$id": "125", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "126", - "kind": "constant", - "valueType": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "responses": [ + { + "$id": "101", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/header/base64", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.Header.base64", + "decorators": [] }, { - "$id": "128", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "129", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "102", + "name": "base64url", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "103", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "104", + "kind": "bytes", + "name": "bytes", + "encode": "base64url", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "105", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/header/base64url", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.Header.base64url", + "decorators": [] + }, { - "$id": "130", - "statusCodes": [ - 204 + "$id": "106", + "name": "base64urlArray", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "107", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "108", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "109", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64url", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "110", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "111", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/header/base64url-array", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.Header.base64urlArray", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/bytes/body/request/octet-stream", - "requestMediaTypes": [ - "application/octet-stream" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream", - "decorators": [] - }, - { - "$id": "131", - "name": "customContentType", - "resourceName": "RequestBody", - "accessibility": "public", "parameters": [ { - "$id": "132", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "133", - "kind": "constant", - "valueType": { - "$id": "134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "135", - "name": "value", - "nameInRequest": "value", + "$id": "112", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "136", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] + "$id": "113", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "137", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/bytes/body/request/custom-content-type", - "requestMediaTypes": [ - "image/png" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType", - "decorators": [] - }, - { - "$id": "138", - "name": "base64", - "resourceName": "RequestBody", - "accessibility": "public", - "parameters": [ - { - "$id": "139", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "140", - "kind": "constant", - "valueType": { - "$id": "141", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "114", + "type": { + "$id": "115", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "142", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "143", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ - { - "$id": "144", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/bytes/body/request/base64", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes.Header", + "apiVersions": [], + "parent": { + "$ref": "24" + } }, { - "$id": "145", - "name": "base64url", - "resourceName": "RequestBody", - "accessibility": "public", - "parameters": [ + "$id": "116", + "kind": "client", + "name": "RequestBody", + "namespace": "Encode.Bytes.RequestBody", + "operations": [ { - "$id": "146", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "147", - "kind": "constant", - "valueType": { - "$id": "148", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "117", + "name": "default", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "118", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/octet-stream", + "type": { + "$id": "119", + "kind": "constant", + "valueType": { + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "121", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "122", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "123", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/bytes/body/request/default", + "requestMediaTypes": [ + "application/octet-stream" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default", + "decorators": [] }, { - "$id": "149", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "150", - "kind": "bytes", - "name": "bytes", - "encode": "base64url", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "124", + "name": "octetStream", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "125", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "126", + "kind": "constant", + "valueType": { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "128", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "129", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "130", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/bytes/body/request/octet-stream", + "requestMediaTypes": [ + "application/octet-stream" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream", + "decorators": [] + }, { - "$id": "151", - "statusCodes": [ - 204 + "$id": "131", + "name": "customContentType", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "132", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "133", + "kind": "constant", + "valueType": { + "$id": "134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "135", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "136", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/bytes/body/request/base64url", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url", - "decorators": [] - } - ], - "parent": "BytesClient", - "parameters": [ - { - "$id": "152", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "153", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "154", - "type": { - "$id": "155", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "responses": [ + { + "$id": "137", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/bytes/body/request/custom-content-type", + "requestMediaTypes": [ + "image/png" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.RequestBody" - }, - { - "$id": "156", - "name": "ResponseBody", - "namespace": "Encode.Bytes.ResponseBody", - "operations": [ - { - "$id": "157", - "name": "default", - "resourceName": "ResponseBody", - "accessibility": "public", - "parameters": [ { - "$id": "158", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "159", - "kind": "constant", - "valueType": { - "$id": "160", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "138", + "name": "base64", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "139", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "140", + "kind": "constant", + "valueType": { + "$id": "141", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/octet-stream", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + { + "$id": "142", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "143", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "144", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/bytes/body/request/base64", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64", + "decorators": [] + }, { - "$id": "161", - "statusCodes": [ - 200 + "$id": "145", + "name": "base64url", + "resourceName": "RequestBody", + "accessibility": "public", + "parameters": [ + { + "$id": "146", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "147", + "kind": "constant", + "valueType": { + "$id": "148", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "149", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "150", + "kind": "bytes", + "name": "bytes", + "encode": "base64url", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$id": "162", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/octet-stream" - ] + "responses": [ + { + "$id": "151", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/bytes/body/request/base64url", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64url", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/body/response/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default", - "decorators": [] - }, - { - "$id": "163", - "name": "octetStream", - "resourceName": "ResponseBody", - "accessibility": "public", "parameters": [ { - "$id": "164", - "name": "accept", - "nameInRequest": "Accept", + "$id": "152", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "165", - "kind": "constant", - "valueType": { - "$id": "166", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/octet-stream", - "decorators": [] + "$id": "153", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "154", + "type": { + "$id": "155", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes.RequestBody", + "apiVersions": [], + "parent": { + "$ref": "24" + } + }, + { + "$id": "156", + "kind": "client", + "name": "ResponseBody", + "namespace": "Encode.Bytes.ResponseBody", + "operations": [ { - "$id": "167", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "168", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ + "$id": "157", + "name": "default", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ { - "$id": "169", - "name": "contentType", - "nameInResponse": "content-type", + "$id": "158", + "name": "accept", + "nameInRequest": "Accept", "type": { - "$id": "170", + "$id": "159", "kind": "constant", "valueType": { - "$id": "171", + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1746,81 +1660,144 @@ }, "value": "application/octet-stream", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false } ], - "isErrorResponse": false, - "contentTypes": [ - "application/octet-stream" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/body/response/octet-stream", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream", - "decorators": [] - }, - { - "$id": "172", - "name": "customContentType", - "resourceName": "ResponseBody", - "accessibility": "public", - "parameters": [ - { - "$id": "173", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "174", - "kind": "constant", - "valueType": { - "$id": "175", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "responses": [ + { + "$id": "161", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "162", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/octet-stream" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/body/response/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default", + "decorators": [] + }, { - "$id": "176", - "statusCodes": [ - 200 + "$id": "163", + "name": "octetStream", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ + { + "$id": "164", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "165", + "kind": "constant", + "valueType": { + "$id": "166", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$id": "177", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ + "responses": [ { - "$id": "178", - "name": "contentType", - "nameInResponse": "content-type", + "$id": "167", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "168", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "$id": "169", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "170", + "kind": "constant", + "valueType": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/octet-stream", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/octet-stream" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/body/response/octet-stream", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream", + "decorators": [] + }, + { + "$id": "172", + "name": "customContentType", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ + { + "$id": "173", + "name": "accept", + "nameInRequest": "Accept", "type": { - "$id": "179", + "$id": "174", "kind": "constant", "valueType": { - "$id": "180", + "$id": "175", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1828,82 +1805,81 @@ }, "value": "image/png", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false } ], - "isErrorResponse": false, - "contentTypes": [ - "image/png" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/body/response/custom-content-type", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType", - "decorators": [] - }, - { - "$id": "181", - "name": "base64", - "resourceName": "ResponseBody", - "accessibility": "public", - "parameters": [ - { - "$id": "182", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "183", - "kind": "constant", - "valueType": { - "$id": "184", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "185", - "statusCodes": [ - 200 + "responses": [ + { + "$id": "176", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "177", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "$id": "178", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "179", + "kind": "constant", + "valueType": { + "$id": "180", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "image/png" + ] + } ], - "bodyType": { - "$id": "186", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/body/response/custom-content-type", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType", + "decorators": [] + }, + { + "$id": "181", + "name": "base64", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ { - "$id": "187", - "name": "contentType", - "nameInResponse": "content-type", + "$id": "182", + "name": "accept", + "nameInRequest": "Accept", "type": { - "$id": "188", + "$id": "183", "kind": "constant", "valueType": { - "$id": "189", + "$id": "184", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1911,90 +1887,82 @@ }, "value": "application/json", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false } ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/body/response/base64", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64", - "decorators": [] - }, - { - "$id": "190", - "name": "base64url", - "resourceName": "ResponseBody", - "accessibility": "public", - "parameters": [ - { - "$id": "191", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "192", - "kind": "constant", - "valueType": { - "$id": "193", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "194", - "statusCodes": [ - 200 + "responses": [ + { + "$id": "185", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "186", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "$id": "187", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "188", + "kind": "constant", + "valueType": { + "$id": "189", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } ], - "bodyType": { - "$id": "195", - "kind": "bytes", - "name": "base64urlBytes", - "encode": "base64", - "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", - "baseType": { - "$id": "196", - "kind": "bytes", - "name": "bytes", - "encode": "base64", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "decorators": [] - }, - "headers": [ + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/body/response/base64", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64", + "decorators": [] + }, + { + "$id": "190", + "name": "base64url", + "resourceName": "ResponseBody", + "accessibility": "public", + "parameters": [ { - "$id": "197", - "name": "contentType", - "nameInResponse": "content-type", + "$id": "191", + "name": "accept", + "nameInRequest": "Accept", "type": { - "$id": "198", + "$id": "192", "kind": "constant", "valueType": { - "$id": "199", + "$id": "193", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2002,60 +1970,116 @@ }, "value": "application/json", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false } ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "responses": [ + { + "$id": "194", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "195", + "kind": "bytes", + "name": "base64urlBytes", + "encode": "base64", + "crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes", + "baseType": { + "$id": "196", + "kind": "bytes", + "name": "bytes", + "encode": "base64", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "decorators": [] + }, + "headers": [ + { + "$id": "197", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "198", + "kind": "constant", + "valueType": { + "$id": "199", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/bytes/body/response/base64url", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64url", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/bytes/body/response/base64url", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64url", - "decorators": [] - } - ], - "parent": "BytesClient", - "parameters": [ - { - "$id": "200", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "201", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "202", - "type": { - "$id": "203", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "parameters": [ + { + "$id": "200", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "201", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "202", + "type": { + "$id": "203", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody", + "apiVersions": [], + "parent": { + "$ref": "24" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Bytes.ResponseBody" + ] } ] } 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 fc3c06fdb14..17610694318 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 @@ -255,6 +255,7 @@ "clients": [ { "$id": "35", + "kind": "client", "name": "DatetimeClient", "namespace": "Encode.Datetime", "doc": "Test for encode decorator on datetime.", @@ -292,1294 +293,957 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime" - }, - { - "$id": "40", - "name": "Query", - "namespace": "Encode.Datetime.Query", - "operations": [ + "crossLanguageDefinitionId": "Encode.Datetime", + "apiVersions": [], + "children": [ { - "$id": "41", - "name": "default", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "42", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "43", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "44", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "40", + "kind": "client", + "name": "Query", + "namespace": "Encode.Datetime.Query", + "operations": [ { - "$id": "45", - "statusCodes": [ - 204 + "$id": "41", + "name": "default", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "42", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "43", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/query/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Query.default", - "decorators": [] - }, - { - "$id": "46", - "name": "rfc3339", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "45", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/query/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Query.default", + "decorators": [] + }, { - "$id": "47", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "48", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "46", + "name": "rfc3339", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "47", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "48", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "49", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "50", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/query/rfc3339", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc3339", + "decorators": [] + }, { - "$id": "50", - "statusCodes": [ - 204 + "$id": "51", + "name": "rfc7231", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "52", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "53", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/query/rfc3339", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc3339", - "decorators": [] - }, - { - "$id": "51", - "name": "rfc7231", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "55", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/query/rfc7231", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc7231", + "decorators": [] + }, { - "$id": "52", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "53", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "54", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "56", + "name": "unixTimestamp", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "57", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "58", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "59", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "60", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/query/unix-timestamp", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestamp", + "decorators": [] + }, { - "$id": "55", - "statusCodes": [ - 204 + "$id": "61", + "name": "unixTimestampArray", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "62", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "63", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "64", + "kind": "utcDateTime", + "name": "unixTimestampDatetime", + "encode": "unixTimestamp", + "wireType": { + "$id": "65", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", + "baseType": { + "$id": "66", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "67", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "68", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/query/unix-timestamp-array", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestampArray", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/query/rfc7231", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Query.rfc7231", - "decorators": [] - }, - { - "$id": "56", - "name": "unixTimestamp", - "resourceName": "Query", - "accessibility": "public", "parameters": [ { - "$id": "57", - "name": "value", - "nameInRequest": "value", + "$id": "69", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "58", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "59", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + "$id": "70", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Query", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "60", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "71", + "type": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/query/unix-timestamp", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestamp", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.Query", + "apiVersions": [], + "parent": { + "$ref": "35" + } }, { - "$id": "61", - "name": "unixTimestampArray", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ + "$id": "73", + "kind": "client", + "name": "Property", + "namespace": "Encode.Datetime.Property", + "operations": [ { - "$id": "62", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "63", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "64", - "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", - "wireType": { - "$id": "65", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", + "$id": "74", + "name": "default", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "75", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "76", + "kind": "constant", + "valueType": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "66", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "67", + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "78", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "79", + "kind": "constant", + "valueType": { + "$id": "80", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "value": "application/json", "decorators": [] }, - "decorators": [] + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "68", - "statusCodes": [ - 204 + { + "$id": "81", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/query/unix-timestamp-array", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestampArray", - "decorators": [] - } - ], - "parent": "DatetimeClient", - "parameters": [ - { - "$id": "69", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "70", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "71", - "type": { - "$id": "72", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Query" - }, - { - "$id": "73", - "name": "Property", - "namespace": "Encode.Datetime.Property", - "operations": [ - { - "$id": "74", - "name": "default", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "75", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "76", - "kind": "constant", - "valueType": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "responses": [ + { + "$id": "82", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/datetime/property/default", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Property.default", + "decorators": [] }, { - "$id": "78", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "79", - "kind": "constant", - "valueType": { - "$id": "80", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "81", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "2" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "82", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "2" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/datetime/property/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.default", - "decorators": [] - }, - { - "$id": "83", - "name": "rfc3339", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "84", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "85", - "kind": "constant", - "valueType": { - "$id": "86", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "87", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "88", - "kind": "constant", - "valueType": { - "$id": "89", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "90", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "8" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "91", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "8" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/datetime/property/rfc3339", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339", - "decorators": [] - }, - { - "$id": "92", - "name": "rfc7231", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "93", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "94", - "kind": "constant", - "valueType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "83", + "name": "rfc3339", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "84", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "85", + "kind": "constant", + "valueType": { + "$id": "86", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "96", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "97", - "kind": "constant", - "valueType": { - "$id": "98", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "87", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "88", + "kind": "constant", + "valueType": { + "$id": "89", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "99", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "14" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "100", - "statusCodes": [ - 200 + { + "$id": "90", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "8" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "14" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/datetime/property/rfc7231", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231", - "decorators": [] - }, - { - "$id": "101", - "name": "unixTimestamp", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "102", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "103", - "kind": "constant", - "valueType": { - "$id": "104", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "105", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "106", - "kind": "constant", - "valueType": { - "$id": "107", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "108", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "109", - "statusCodes": [ - 200 + "responses": [ + { + "$id": "91", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "8" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } ], - "bodyType": { - "$ref": "20" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/datetime/property/rfc3339", + "requestMediaTypes": [ "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/datetime/property/unix-timestamp", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp", - "decorators": [] - }, - { - "$id": "110", - "name": "unixTimestampArray", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "111", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "112", - "kind": "constant", - "valueType": { - "$id": "113", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "114", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "115", - "kind": "constant", - "valueType": { - "$id": "116", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "117", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "26" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "118", - "statusCodes": [ - 200 ], - "bodyType": { - "$ref": "26" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/datetime/property/unix-timestamp-array", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray", - "decorators": [] - } - ], - "parent": "DatetimeClient", - "parameters": [ - { - "$id": "119", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "120", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "121", - "type": { - "$id": "122", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Property" - }, - { - "$id": "123", - "name": "Header", - "namespace": "Encode.Datetime.Header", - "operations": [ - { - "$id": "124", - "name": "default", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ { - "$id": "125", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "126", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "128", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/header/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.default", - "decorators": [] - }, - { - "$id": "129", - "name": "rfc3339", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "130", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "131", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "132", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "92", + "name": "rfc7231", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "93", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "94", + "kind": "constant", + "valueType": { + "$id": "95", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "133", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/header/rfc3339", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339", - "decorators": [] - }, - { - "$id": "134", - "name": "rfc7231", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "135", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "136", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc7231", - "wireType": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "96", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "97", + "kind": "constant", + "valueType": { + "$id": "98", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "138", - "statusCodes": [ - 204 + { + "$id": "99", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "14" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/header/rfc7231", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231", - "decorators": [] - }, - { - "$id": "139", - "name": "unixTimestamp", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "140", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "141", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "unixTimestamp", - "wireType": { - "$id": "142", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "responses": [ + { + "$id": "100", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "14" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/datetime/property/rfc7231", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231", + "decorators": [] + }, { - "$id": "143", - "statusCodes": [ - 204 + "$id": "101", + "name": "unixTimestamp", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "102", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "103", + "kind": "constant", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "105", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "106", + "kind": "constant", + "valueType": { + "$id": "107", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "108", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "20" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/header/unix-timestamp", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp", - "decorators": [] - }, - { - "$id": "144", - "name": "unixTimestampArray", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "109", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "20" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/datetime/property/unix-timestamp", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp", + "decorators": [] + }, { - "$id": "145", - "name": "value", - "nameInRequest": "value", - "type": { - "$id": "146", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "147", - "kind": "utcDateTime", - "name": "unixTimestampDatetime", - "encode": "unixTimestamp", - "wireType": { - "$id": "148", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", + "$id": "110", + "name": "unixTimestampArray", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "111", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "112", + "kind": "constant", + "valueType": { + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", - "baseType": { - "$id": "149", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "150", + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "114", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "115", + "kind": "constant", + "valueType": { + "$id": "116", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "value": "application/json", "decorators": [] }, - "decorators": [] + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + { + "$id": "117", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "26" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "118", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "26" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/datetime/property/unix-timestamp-array", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestampArray", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "119", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "120", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "151", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "121", + "type": { + "$id": "122", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/header/unix-timestamp-array", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestampArray", - "decorators": [] - } - ], - "parent": "DatetimeClient", - "parameters": [ - { - "$id": "152", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "153", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "154", - "type": { - "$id": "155", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.Property", + "apiVersions": [], + "parent": { + "$ref": "35" } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.Header" - }, - { - "$id": "156", - "name": "ResponseHeader", - "namespace": "Encode.Datetime.ResponseHeader", - "operations": [ + }, { - "$id": "157", - "name": "default", - "resourceName": "ResponseHeader", - "accessibility": "public", - "parameters": [], - "responses": [ + "$id": "123", + "kind": "client", + "name": "Header", + "namespace": "Encode.Datetime.Header", + "operations": [ { - "$id": "158", - "statusCodes": [ - 204 - ], - "headers": [ + "$id": "124", + "name": "default", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ { - "$id": "159", + "$id": "125", "name": "value", - "nameInResponse": "value", + "nameInRequest": "value", "type": { - "$id": "160", + "$id": "126", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "161", + "$id": "127", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1587,45 +1251,54 @@ }, "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false } ], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/responseheader/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.default", - "decorators": [] - }, - { - "$id": "162", - "name": "rfc3339", - "resourceName": "ResponseHeader", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "163", - "statusCodes": [ - 204 + "responses": [ + { + "$id": "128", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [ + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/header/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Header.default", + "decorators": [] + }, + { + "$id": "129", + "name": "rfc3339", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ { - "$id": "164", + "$id": "130", "name": "value", - "nameInResponse": "value", + "nameInRequest": "value", "type": { - "$id": "165", + "$id": "131", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "166", + "$id": "132", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1633,45 +1306,54 @@ }, "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false } ], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/responseheader/rfc3339", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc3339", - "decorators": [] - }, - { - "$id": "167", - "name": "rfc7231", - "resourceName": "ResponseHeader", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "168", - "statusCodes": [ - 204 + "responses": [ + { + "$id": "133", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [ + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/header/rfc3339", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc3339", + "decorators": [] + }, + { + "$id": "134", + "name": "rfc7231", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ { - "$id": "169", + "$id": "135", "name": "value", - "nameInResponse": "value", + "nameInRequest": "value", "type": { - "$id": "170", + "$id": "136", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "171", + "$id": "137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1679,45 +1361,54 @@ }, "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false } ], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/responseheader/rfc7231", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc7231", - "decorators": [] - }, - { - "$id": "172", - "name": "unixTimestamp", - "resourceName": "ResponseHeader", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "173", - "statusCodes": [ - 204 + "responses": [ + { + "$id": "138", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [ + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/header/rfc7231", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Header.rfc7231", + "decorators": [] + }, + { + "$id": "139", + "name": "unixTimestamp", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ { - "$id": "174", + "$id": "140", "name": "value", - "nameInResponse": "value", + "nameInRequest": "value", "type": { - "$id": "175", + "$id": "141", "kind": "utcDateTime", "name": "utcDateTime", "encode": "unixTimestamp", "wireType": { - "$id": "176", + "$id": "142", "kind": "int64", "name": "int64", "crossLanguageDefinitionId": "TypeSpec.int64", @@ -1725,57 +1416,386 @@ }, "crossLanguageDefinitionId": "TypeSpec.utcDateTime", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "143", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/header/unix-timestamp", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestamp", + "decorators": [] + }, + { + "$id": "144", + "name": "unixTimestampArray", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "145", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "146", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "147", + "kind": "utcDateTime", + "name": "unixTimestampDatetime", + "encode": "unixTimestamp", + "wireType": { + "$id": "148", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime", + "baseType": { + "$id": "149", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "150", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "151", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false } ], - "isErrorResponse": false + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/header/unix-timestamp-array", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.Header.unixTimestampArray", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/datetime/responseheader/unix-timestamp", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.unixTimestamp", - "decorators": [] - } - ], - "parent": "DatetimeClient", - "parameters": [ + "parameters": [ + { + "$id": "152", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "153", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "154", + "type": { + "$id": "155", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.Header", + "apiVersions": [], + "parent": { + "$ref": "35" + } + }, { - "$id": "177", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "178", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "179", - "type": { - "$id": "180", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "156", + "kind": "client", + "name": "ResponseHeader", + "namespace": "Encode.Datetime.ResponseHeader", + "operations": [ + { + "$id": "157", + "name": "default", + "resourceName": "ResponseHeader", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "158", + "statusCodes": [ + 204 + ], + "headers": [ + { + "$id": "159", + "name": "value", + "nameInResponse": "value", + "type": { + "$id": "160", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "161", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + } + } + ], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/responseheader/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.default", + "decorators": [] }, - "value": "http://localhost:3000" + { + "$id": "162", + "name": "rfc3339", + "resourceName": "ResponseHeader", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "163", + "statusCodes": [ + 204 + ], + "headers": [ + { + "$id": "164", + "name": "value", + "nameInResponse": "value", + "type": { + "$id": "165", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "166", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + } + } + ], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/responseheader/rfc3339", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc3339", + "decorators": [] + }, + { + "$id": "167", + "name": "rfc7231", + "resourceName": "ResponseHeader", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "168", + "statusCodes": [ + 204 + ], + "headers": [ + { + "$id": "169", + "name": "value", + "nameInResponse": "value", + "type": { + "$id": "170", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc7231", + "wireType": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + } + } + ], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/responseheader/rfc7231", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.rfc7231", + "decorators": [] + }, + { + "$id": "172", + "name": "unixTimestamp", + "resourceName": "ResponseHeader", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "173", + "statusCodes": [ + 204 + ], + "headers": [ + { + "$id": "174", + "name": "value", + "nameInResponse": "value", + "type": { + "$id": "175", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "unixTimestamp", + "wireType": { + "$id": "176", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + } + } + ], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/datetime/responseheader/unix-timestamp", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader.unixTimestamp", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "177", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "178", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "179", + "type": { + "$id": "180", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader", + "apiVersions": [], + "parent": { + "$ref": "35" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader" + ] } ] } 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 8249ff3e19e..60356fdae6c 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 @@ -300,6 +300,7 @@ "clients": [ { "$id": "41", + "kind": "client", "name": "DurationClient", "namespace": "Encode.Duration", "doc": "Test for encode decorator on duration.", @@ -337,1236 +338,1174 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration" - }, - { - "$id": "46", - "name": "Query", - "namespace": "Encode.Duration.Query", - "operations": [ + "crossLanguageDefinitionId": "Encode.Duration", + "apiVersions": [], + "children": [ { - "$id": "47", - "name": "default", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ + "$id": "46", + "kind": "client", + "name": "Query", + "namespace": "Encode.Duration.Query", + "operations": [ { - "$id": "48", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "49", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "50", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "47", + "name": "default", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "48", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "49", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "50", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "51", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/duration/query/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Query.default", + "decorators": [] + }, { - "$id": "51", - "statusCodes": [ - 204 + "$id": "52", + "name": "iso8601", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "53", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "54", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "55", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/duration/query/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Query.default", - "decorators": [] - }, - { - "$id": "52", - "name": "iso8601", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "56", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/duration/query/iso8601", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Query.iso8601", + "decorators": [] + }, { - "$id": "53", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "54", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "57", + "name": "int32Seconds", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "58", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "59", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "60", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "61", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/duration/query/int32-seconds", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Query.int32Seconds", + "decorators": [] + }, { - "$id": "56", - "statusCodes": [ - 204 + "$id": "62", + "name": "floatSeconds", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "63", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "64", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "65", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/duration/query/iso8601", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Query.iso8601", - "decorators": [] - }, - { - "$id": "57", - "name": "int32Seconds", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "66", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/duration/query/float-seconds", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Query.floatSeconds", + "decorators": [] + }, { - "$id": "58", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "59", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "60", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "67", + "name": "float64Seconds", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "68", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "69", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "70", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "71", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/duration/query/float64-seconds", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Query.float64Seconds", + "decorators": [] + }, { - "$id": "61", - "statusCodes": [ - 204 + "$id": "72", + "name": "int32SecondsArray", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "73", + "name": "input", + "nameInRequest": "input", + "type": { + "$id": "74", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "75", + "kind": "duration", + "name": "Int32Duration", + "encode": "seconds", + "wireType": { + "$id": "76", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration", + "baseType": { + "$id": "77", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "78", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "79", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/duration/query/int32-seconds-array", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsArray", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/duration/query/int32-seconds", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Query.int32Seconds", - "decorators": [] - }, - { - "$id": "62", - "name": "floatSeconds", - "resourceName": "Query", - "accessibility": "public", "parameters": [ { - "$id": "63", - "name": "input", - "nameInRequest": "input", + "$id": "80", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "64", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "65", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] + "$id": "81", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Query", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "66", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "82", + "type": { + "$id": "83", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/duration/query/float-seconds", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Query.floatSeconds", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Encode.Duration.Query", + "apiVersions": [], + "parent": { + "$ref": "41" + } }, { - "$id": "67", - "name": "float64Seconds", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ + "$id": "84", + "kind": "client", + "name": "Property", + "namespace": "Encode.Duration.Property", + "operations": [ { - "$id": "68", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "69", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "70", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] + "$id": "85", + "name": "default", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "86", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "87", + "kind": "constant", + "valueType": { + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "71", - "statusCodes": [ - 204 + { + "$id": "89", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "90", + "kind": "constant", + "valueType": { + "$id": "91", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "92", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/duration/query/float64-seconds", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Query.float64Seconds", - "decorators": [] - }, - { - "$id": "72", - "name": "int32SecondsArray", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "93", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/duration/property/default", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.default", + "decorators": [] + }, { - "$id": "73", - "name": "input", - "nameInRequest": "input", - "type": { - "$id": "74", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "75", - "kind": "duration", - "name": "Int32Duration", - "encode": "seconds", - "wireType": { - "$id": "76", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "94", + "name": "iso8601", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "95", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "96", + "kind": "constant", + "valueType": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration", - "baseType": { - "$id": "77", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "78", + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "98", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "99", + "kind": "constant", + "valueType": { + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", + "value": "application/json", "decorators": [] }, - "decorators": [] + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "79", - "statusCodes": [ - 204 + { + "$id": "101", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "8" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/duration/query/int32-seconds-array", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Query.int32SecondsArray", - "decorators": [] - } - ], - "parent": "DurationClient", - "parameters": [ - { - "$id": "80", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "81", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "82", - "type": { - "$id": "83", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "responses": [ + { + "$id": "102", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "8" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/duration/property/iso8601", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Query" - }, - { - "$id": "84", - "name": "Property", - "namespace": "Encode.Duration.Property", - "operations": [ - { - "$id": "85", - "name": "default", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ { - "$id": "86", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "87", - "kind": "constant", - "valueType": { - "$id": "88", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "103", + "name": "int32Seconds", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "104", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "105", + "kind": "constant", + "valueType": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "89", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "90", - "kind": "constant", - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "107", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "108", + "kind": "constant", + "valueType": { + "$id": "109", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "92", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "2" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "93", - "statusCodes": [ - 200 + { + "$id": "110", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "14" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "2" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/duration/property/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.default", - "decorators": [] - }, - { - "$id": "94", - "name": "iso8601", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "95", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "96", - "kind": "constant", - "valueType": { - "$id": "97", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "98", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "99", - "kind": "constant", - "valueType": { - "$id": "100", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "101", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "8" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "102", - "statusCodes": [ - 200 + "responses": [ + { + "$id": "111", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "14" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } ], - "bodyType": { - "$ref": "8" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/duration/property/int32-seconds", + "requestMediaTypes": [ "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/duration/property/iso8601", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.iso8601", - "decorators": [] - }, - { - "$id": "103", - "name": "int32Seconds", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "104", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "105", - "kind": "constant", - "valueType": { - "$id": "106", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "107", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "108", - "kind": "constant", - "valueType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "110", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "14" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "111", - "statusCodes": [ - 200 ], - "bodyType": { - "$ref": "14" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/duration/property/int32-seconds", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds", - "decorators": [] - }, - { - "$id": "112", - "name": "floatSeconds", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "113", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "114", - "kind": "constant", - "valueType": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds", + "decorators": [] }, { - "$id": "116", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "117", - "kind": "constant", - "valueType": { - "$id": "118", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "112", + "name": "floatSeconds", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "113", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "114", + "kind": "constant", + "valueType": { + "$id": "115", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "119", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "20" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "120", - "statusCodes": [ - 200 + { + "$id": "116", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "117", + "kind": "constant", + "valueType": { + "$id": "118", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "119", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "20" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "20" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "120", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "20" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/duration/property/float-seconds", + "requestMediaTypes": [ "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/duration/property/float-seconds", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds", - "decorators": [] - }, - { - "$id": "121", - "name": "float64Seconds", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "122", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "123", - "kind": "constant", - "valueType": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds", + "decorators": [] }, { - "$id": "125", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "126", - "kind": "constant", - "valueType": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "121", + "name": "float64Seconds", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "122", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "123", + "kind": "constant", + "valueType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "128", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "26" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "129", - "statusCodes": [ - 200 + { + "$id": "125", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "126", + "kind": "constant", + "valueType": { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "128", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "26" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "26" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "129", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "26" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/duration/property/float64-seconds", + "requestMediaTypes": [ "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/duration/property/float64-seconds", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds", - "decorators": [] - }, - { - "$id": "130", - "name": "floatSecondsArray", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "131", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "132", - "kind": "constant", - "valueType": { - "$id": "133", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "134", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "135", - "kind": "constant", - "valueType": { - "$id": "136", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds", + "decorators": [] }, { - "$id": "137", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "32" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "138", - "statusCodes": [ - 200 + "$id": "130", + "name": "floatSecondsArray", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "131", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "132", + "kind": "constant", + "valueType": { + "$id": "133", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "134", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "135", + "kind": "constant", + "valueType": { + "$id": "136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "137", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "32" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "32" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "138", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "32" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/duration/property/float-seconds-array", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/duration/property/float-seconds-array", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Property.floatSecondsArray", - "decorators": [] - } - ], - "parent": "DurationClient", - "parameters": [ - { - "$id": "139", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "140", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "141", - "type": { - "$id": "142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Property" - }, - { - "$id": "143", - "name": "Header", - "namespace": "Encode.Duration.Header", - "operations": [ - { - "$id": "144", - "name": "default", - "resourceName": "Header", - "accessibility": "public", "parameters": [ { - "$id": "145", - "name": "duration", - "nameInRequest": "duration", + "$id": "139", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "146", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "147", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] + "$id": "140", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "148", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/duration/header/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.default", - "decorators": [] - }, - { - "$id": "149", - "name": "iso8601", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ - { - "$id": "150", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "151", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "152", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "141", + "type": { + "$id": "142", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "153", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/duration/header/iso8601", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Encode.Duration.Property", + "apiVersions": [], + "parent": { + "$ref": "41" + } }, { - "$id": "154", - "name": "iso8601Array", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ + "$id": "143", + "kind": "client", + "name": "Header", + "namespace": "Encode.Duration.Header", + "operations": [ { - "$id": "155", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "156", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "157", - "kind": "duration", - "name": "Iso8601Duration", - "encode": "ISO8601", - "wireType": { - "$id": "158", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "144", + "name": "default", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "145", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "146", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "147", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", "decorators": [] }, - "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", - "baseType": { - "$id": "159", + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "148", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/duration/header/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Header.default", + "decorators": [] + }, + { + "$id": "149", + "name": "iso8601", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "150", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "151", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "160", + "$id": "152", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1575,243 +1514,320 @@ "crossLanguageDefinitionId": "TypeSpec.duration", "decorators": [] }, - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "161", - "statusCodes": [ - 204 + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/duration/header/iso8601-array", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array", - "decorators": [] - }, - { - "$id": "162", - "name": "int32Seconds", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "153", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/duration/header/iso8601", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601", + "decorators": [] + }, { - "$id": "163", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "164", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "165", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "154", + "name": "iso8601Array", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "155", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "156", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "157", + "kind": "duration", + "name": "Iso8601Duration", + "encode": "ISO8601", + "wireType": { + "$id": "158", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "Encode.Duration.Header.Iso8601Duration", + "baseType": { + "$id": "159", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "160", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "161", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/duration/header/iso8601-array", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Header.iso8601Array", + "decorators": [] + }, { - "$id": "166", - "statusCodes": [ - 204 + "$id": "162", + "name": "int32Seconds", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "163", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "164", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "165", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/duration/header/int32-seconds", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds", - "decorators": [] - }, - { - "$id": "167", - "name": "floatSeconds", - "resourceName": "Header", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "166", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/duration/header/int32-seconds", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Header.int32Seconds", + "decorators": [] + }, { - "$id": "168", - "name": "duration", - "nameInRequest": "duration", - "type": { - "$id": "169", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "170", - "kind": "float", - "name": "float", - "crossLanguageDefinitionId": "TypeSpec.float", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "167", + "name": "floatSeconds", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "168", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "169", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "170", + "kind": "float", + "name": "float", + "crossLanguageDefinitionId": "TypeSpec.float", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "171", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/duration/header/float-seconds", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds", + "decorators": [] + }, { - "$id": "171", - "statusCodes": [ - 204 + "$id": "172", + "name": "float64Seconds", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "173", + "name": "duration", + "nameInRequest": "duration", + "type": { + "$id": "174", + "kind": "duration", + "name": "duration", + "encode": "seconds", + "wireType": { + "$id": "175", + "kind": "float64", + "name": "float64", + "crossLanguageDefinitionId": "TypeSpec.float64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "176", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/encode/duration/header/float64-seconds", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Duration.Header.float64Seconds", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/duration/header/float-seconds", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.floatSeconds", - "decorators": [] - }, - { - "$id": "172", - "name": "float64Seconds", - "resourceName": "Header", - "accessibility": "public", "parameters": [ { - "$id": "173", - "name": "duration", - "nameInRequest": "duration", + "$id": "177", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "174", - "kind": "duration", - "name": "duration", - "encode": "seconds", - "wireType": { - "$id": "175", - "kind": "float64", - "name": "float64", - "crossLanguageDefinitionId": "TypeSpec.float64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] + "$id": "178", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "176", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "179", + "type": { + "$id": "180", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/encode/duration/header/float64-seconds", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Duration.Header.float64Seconds", - "decorators": [] - } - ], - "parent": "DurationClient", - "parameters": [ - { - "$id": "177", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "178", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "179", - "type": { - "$id": "180", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Encode.Duration.Header", + "apiVersions": [], + "parent": { + "$ref": "41" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Duration.Header" + ] } ] } 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 57a40f91c48..1b9a0f4e584 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 @@ -122,6 +122,7 @@ "clients": [ { "$id": "17", + "kind": "client", "name": "NumericClient", "namespace": "Encode.Numeric", "doc": "Test for encode decorator on integer.", @@ -159,370 +160,377 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Encode.Numeric" - }, - { - "$id": "22", - "name": "Property", - "namespace": "Encode.Numeric.Property", - "operations": [ + "crossLanguageDefinitionId": "Encode.Numeric", + "apiVersions": [], + "children": [ { - "$id": "23", - "name": "safeintAsString", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ + "$id": "22", + "kind": "client", + "name": "Property", + "namespace": "Encode.Numeric.Property", + "operations": [ { - "$id": "24", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "25", - "kind": "constant", - "valueType": { - "$id": "26", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "23", + "name": "safeintAsString", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "24", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "25", + "kind": "constant", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "27", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "28", - "kind": "constant", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + { + "$id": "27", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "28", + "kind": "constant", + "valueType": { + "$id": "29", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "30", - "name": "value", - "nameInRequest": "value", - "type": { - "$ref": "2" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "31", - "statusCodes": [ - 200 + { + "$id": "30", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "2" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "31", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/numeric/property/safeint", + "requestMediaTypes": [ "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/numeric/property/safeint", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString", - "decorators": [] - }, - { - "$id": "32", - "name": "uint32AsStringOptional", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ - { - "$id": "33", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "34", - "kind": "constant", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString", + "decorators": [] }, { - "$id": "36", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "37", - "kind": "constant", - "valueType": { - "$id": "38", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "32", + "name": "uint32AsStringOptional", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "33", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "34", + "kind": "constant", + "valueType": { + "$id": "35", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "36", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "37", + "kind": "constant", + "valueType": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "39", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "7" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "40", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "7" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/numeric/property/uint32", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional", + "decorators": [] }, { - "$id": "39", - "name": "value", - "nameInRequest": "value", - "type": { - "$ref": "7" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "40", - "statusCodes": [ - 200 + "$id": "41", + "name": "uint8AsString", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "42", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "43", + "kind": "constant", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "45", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "46", + "kind": "constant", + "valueType": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "48", + "name": "value", + "nameInRequest": "value", + "type": { + "$ref": "12" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "7" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "49", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "12" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/encode/numeric/property/uint8", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/numeric/property/uint32", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional", - "decorators": [] - }, - { - "$id": "41", - "name": "uint8AsString", - "resourceName": "Property", - "accessibility": "public", "parameters": [ { - "$id": "42", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "50", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "43", - "kind": "constant", - "valueType": { - "$id": "44", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "51", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, + "isContentType": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "45", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "46", - "kind": "constant", - "valueType": { - "$id": "47", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "52", + "type": { + "$id": "53", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "48", - "name": "value", - "nameInRequest": "value", - "type": { - "$ref": "12" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ - { - "$id": "49", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "12" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/encode/numeric/property/uint8", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Encode.Numeric.Property.uint8AsString", - "decorators": [] - } - ], - "parent": "NumericClient", - "parameters": [ - { - "$id": "50", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "51", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "52", - "type": { - "$id": "53", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Encode.Numeric.Property", + "apiVersions": [], + "parent": { + "$ref": "17" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Encode.Numeric.Property" + ] } ] } 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 afaea3a3510..d1142b5eb94 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 @@ -83,6 +83,7 @@ "clients": [ { "$id": "12", + "kind": "client", "name": "BasicClient", "namespace": "Parameters.Basic", "doc": "Test for basic parameters cases.", @@ -120,239 +121,250 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Parameters.Basic" - }, - { - "$id": "17", - "name": "ExplicitBody", - "namespace": "Parameters.Basic.ExplicitBody", - "operations": [ + "crossLanguageDefinitionId": "Parameters.Basic", + "apiVersions": [], + "children": [ { - "$id": "18", - "name": "simple", - "resourceName": "ExplicitBody", - "accessibility": "public", - "parameters": [ + "$id": "17", + "kind": "client", + "name": "ExplicitBody", + "namespace": "Parameters.Basic.ExplicitBody", + "operations": [ { - "$id": "19", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "20", - "kind": "constant", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "18", + "name": "simple", + "resourceName": "ExplicitBody", + "accessibility": "public", + "parameters": [ + { + "$id": "19", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "20", + "kind": "constant", + "valueType": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, + { + "$id": "22", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "7" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "23", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/parameters/basic/explicit-body/simple", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple", + "decorators": [] + } + ], + "parameters": [ { - "$id": "22", - "name": "body", - "nameInRequest": "body", + "$id": "24", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "7" + "$id": "25", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "26", + "type": { + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "28", + "kind": "client", + "name": "ImplicitBody", + "namespace": "Parameters.Basic.ImplicitBody", + "operations": [ { - "$id": "23", - "statusCodes": [ - 204 + "$id": "29", + "name": "simple", + "resourceName": "ImplicitBody", + "accessibility": "public", + "parameters": [ + { + "$id": "30", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "31", + "kind": "constant", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "33", + "name": "simpleRequest", + "nameInRequest": "simpleRequest", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "34", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/parameters/basic/implicit-body/simple", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/parameters/basic/explicit-body/simple", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.simple", - "decorators": [] - } - ], - "parent": "BasicClient", - "parameters": [ - { - "$id": "24", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "25", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "26", - "type": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody" - }, - { - "$id": "28", - "name": "ImplicitBody", - "namespace": "Parameters.Basic.ImplicitBody", - "operations": [ - { - "$id": "29", - "name": "simple", - "resourceName": "ImplicitBody", - "accessibility": "public", "parameters": [ { - "$id": "30", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "35", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "31", - "kind": "constant", - "valueType": { - "$id": "32", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "36", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "33", - "name": "simpleRequest", - "nameInRequest": "simpleRequest", - "type": { - "$ref": "2" - }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "34", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "37", + "type": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/parameters/basic/implicit-body/simple", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple", - "decorators": [] - } - ], - "parent": "BasicClient", - "parameters": [ - { - "$id": "35", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "36", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "37", - "type": { - "$id": "38", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody", + "apiVersions": [], + "parent": { + "$ref": "12" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody" + ] } ] } 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 928dfd46356..ac21c7b79ef 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 @@ -45,6 +45,7 @@ "clients": [ { "$id": "7", + "kind": "client", "name": "BodyOptionalityClient", "namespace": "Parameters.BodyOptionality", "doc": "Test describing optionality of the request body.", @@ -231,197 +232,204 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Parameters.BodyOptionality" - }, - { - "$id": "24", - "name": "OptionalExplicit", - "namespace": "Parameters.BodyOptionality.OptionalExplicit", - "operations": [ + "crossLanguageDefinitionId": "Parameters.BodyOptionality", + "apiVersions": [], + "children": [ { - "$id": "25", - "name": "set", - "resourceName": "OptionalExplicit", - "accessibility": "public", - "parameters": [ + "$id": "24", + "kind": "client", + "name": "OptionalExplicit", + "namespace": "Parameters.BodyOptionality.OptionalExplicit", + "operations": [ { - "$id": "26", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "27", - "kind": "constant", - "valueType": { - "$id": "28", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "25", + "name": "set", + "resourceName": "OptionalExplicit", + "accessibility": "public", + "parameters": [ + { + "$id": "26", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "27", + "kind": "constant", + "valueType": { + "$id": "28", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "29", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "30", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/parameters/body-optionality/optional-explicit/set", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set", + "decorators": [] }, { - "$id": "29", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "2" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "30", - "statusCodes": [ - 204 + "$id": "31", + "name": "omit", + "resourceName": "OptionalExplicit", + "accessibility": "public", + "parameters": [ + { + "$id": "32", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "33", + "kind": "constant", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "35", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "36", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/parameters/body-optionality/optional-explicit/omit", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/parameters/body-optionality/optional-explicit/set", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set", - "decorators": [] - }, - { - "$id": "31", - "name": "omit", - "resourceName": "OptionalExplicit", - "accessibility": "public", "parameters": [ { - "$id": "32", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "37", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "33", - "kind": "constant", - "valueType": { - "$id": "34", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "38", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "35", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "2" - }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "36", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "kind": "Client", + "defaultValue": { + "$id": "39", + "type": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/parameters/body-optionality/optional-explicit/omit", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.omit", - "decorators": [] - } - ], - "parent": "BodyOptionalityClient", - "parameters": [ - { - "$id": "37", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "38", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "39", - "type": { - "$id": "40", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit", + "apiVersions": [], + "parent": { + "$ref": "7" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit" + ] } ] } 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 382224d4c61..a9be609fa49 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 @@ -7,6 +7,7 @@ "clients": [ { "$id": "2", + "kind": "client", "name": "CollectionFormatClient", "namespace": "Parameters.CollectionFormat", "doc": "Test for collectionFormat.", @@ -44,370 +45,381 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Parameters.CollectionFormat" - }, - { - "$id": "7", - "name": "Query", - "namespace": "Parameters.CollectionFormat.Query", - "operations": [ + "crossLanguageDefinitionId": "Parameters.CollectionFormat", + "apiVersions": [], + "children": [ { - "$id": "8", - "name": "multi", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ + "$id": "7", + "kind": "client", + "name": "Query", + "namespace": "Parameters.CollectionFormat.Query", + "operations": [ { - "$id": "9", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$id": "10", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "8", + "name": "multi", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "9", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$id": "10", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "12", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/parameters/collection-format/query/multi", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.multi", + "decorators": [] + }, { - "$id": "12", - "statusCodes": [ - 204 + "$id": "13", + "name": "ssv", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "14", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$id": "15", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": " ", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/parameters/collection-format/query/multi", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.multi", - "decorators": [] - }, - { - "$id": "13", - "name": "ssv", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "17", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/parameters/collection-format/query/ssv", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.ssv", + "decorators": [] + }, { - "$id": "14", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$id": "15", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "16", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": " ", - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "18", + "name": "pipes", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "19", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$id": "20", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": "|", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "22", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/parameters/collection-format/query/pipes", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.pipes", + "decorators": [] + }, { - "$id": "17", - "statusCodes": [ - 204 + "$id": "23", + "name": "csv", + "resourceName": "Query", + "accessibility": "public", + "parameters": [ + { + "$id": "24", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$id": "25", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "26", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "27", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/parameters/collection-format/query/csv", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.csv", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/parameters/collection-format/query/ssv", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.ssv", - "decorators": [] - }, - { - "$id": "18", - "name": "pipes", - "resourceName": "Query", - "accessibility": "public", "parameters": [ { - "$id": "19", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", + "$id": "28", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "20", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "29", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Query", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": "|", "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "22", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/parameters/collection-format/query/pipes", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.pipes", - "decorators": [] - }, - { - "$id": "23", - "name": "csv", - "resourceName": "Query", - "accessibility": "public", - "parameters": [ - { - "$id": "24", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", - "type": { - "$id": "25", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "26", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "30", + "type": { + "$id": "31", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query", + "apiVersions": [], + "parent": { + "$ref": "2" + } + }, + { + "$id": "32", + "kind": "client", + "name": "Header", + "namespace": "Parameters.CollectionFormat.Header", + "operations": [ { - "$id": "27", - "statusCodes": [ - 204 + "$id": "33", + "name": "csv", + "resourceName": "Header", + "accessibility": "public", + "parameters": [ + { + "$id": "34", + "name": "colors", + "nameInRequest": "colors", + "doc": "Possible values for colors are [blue,red,green]", + "type": { + "$id": "35", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "arraySerializationDelimiter": ",", + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "37", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/parameters/collection-format/header/csv", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header.csv", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/parameters/collection-format/query/csv", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query.csv", - "decorators": [] - } - ], - "parent": "CollectionFormatClient", - "parameters": [ - { - "$id": "28", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "29", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "30", - "type": { - "$id": "31", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Query" - }, - { - "$id": "32", - "name": "Header", - "namespace": "Parameters.CollectionFormat.Header", - "operations": [ - { - "$id": "33", - "name": "csv", - "resourceName": "Header", - "accessibility": "public", "parameters": [ { - "$id": "34", - "name": "colors", - "nameInRequest": "colors", - "doc": "Possible values for colors are [blue,red,green]", + "$id": "38", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "35", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "36", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "39", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, - "arraySerializationDelimiter": ",", "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "37", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "40", + "type": { + "$id": "41", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/parameters/collection-format/header/csv", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header.csv", - "decorators": [] - } - ], - "parent": "CollectionFormatClient", - "parameters": [ - { - "$id": "38", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "39", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "40", - "type": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header", + "apiVersions": [], + "parent": { + "$ref": "2" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.CollectionFormat.Header" + ] } ] } 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 3b633431274..f6e2919edc1 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 @@ -392,6 +392,7 @@ "clients": [ { "$id": "55", + "kind": "client", "name": "SpreadClient", "namespace": "Parameters.Spread", "doc": "Test for the spread operator.", @@ -429,1078 +430,1089 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread" - }, - { - "$id": "60", - "name": "Model", - "namespace": "Parameters.Spread.Model", - "operations": [ + "crossLanguageDefinitionId": "Parameters.Spread", + "apiVersions": [], + "children": [ { - "$id": "61", - "name": "spreadAsRequestBody", - "resourceName": "Model", - "accessibility": "public", - "parameters": [ + "$id": "60", + "kind": "client", + "name": "Model", + "namespace": "Parameters.Spread.Model", + "operations": [ { - "$id": "62", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "63", - "kind": "constant", - "valueType": { - "$id": "64", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "61", + "name": "spreadAsRequestBody", + "resourceName": "Model", + "accessibility": "public", + "parameters": [ + { + "$id": "62", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "63", + "kind": "constant", + "valueType": { + "$id": "64", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "65", - "name": "bodyParameter", - "nameInRequest": "bodyParameter", - "type": { - "$ref": "45" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "66", - "statusCodes": [ - 204 + { + "$id": "65", + "name": "bodyParameter", + "nameInRequest": "bodyParameter", + "type": { + "$ref": "45" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/parameters/spread/model/request-body", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody", - "decorators": [] - }, - { - "$id": "67", - "name": "spreadCompositeRequestOnlyWithBody", - "resourceName": "Model", - "accessibility": "public", - "parameters": [ - { - "$id": "68", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "69", - "kind": "constant", - "valueType": { - "$id": "70", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "71", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "45" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "72", - "statusCodes": [ - 204 + "responses": [ + { + "$id": "66", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/parameters/spread/model/composite-request-only-with-body", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody", - "decorators": [] - }, - { - "$id": "73", - "name": "spreadCompositeRequestWithoutBody", - "resourceName": "Model", - "accessibility": "public", - "parameters": [ - { - "$id": "74", - "name": "name", - "nameInRequest": "name", - "type": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "76", - "name": "testHeader", - "nameInRequest": "test-header", - "type": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "78", - "statusCodes": [ - 204 + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/parameters/spread/model/request-body", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/parameters/spread/model/composite-request-without-body/{name}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody", - "decorators": [] - }, - { - "$id": "79", - "name": "spreadCompositeRequest", - "resourceName": "Model", - "accessibility": "public", - "parameters": [ - { - "$id": "80", - "name": "name", - "nameInRequest": "name", - "type": { - "$id": "81", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "82", - "name": "testHeader", - "nameInRequest": "test-header", - "type": { - "$id": "83", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody", + "decorators": [] }, { - "$id": "84", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "85", - "kind": "constant", - "valueType": { - "$id": "86", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "67", + "name": "spreadCompositeRequestOnlyWithBody", + "resourceName": "Model", + "accessibility": "public", + "parameters": [ + { + "$id": "68", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "69", + "kind": "constant", + "valueType": { + "$id": "70", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "87", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "45" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "88", - "statusCodes": [ - 204 + { + "$id": "71", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "45" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/parameters/spread/model/composite-request/{name}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest", - "decorators": [] - }, - { - "$id": "89", - "name": "spreadCompositeRequestMix", - "resourceName": "Model", - "accessibility": "public", - "parameters": [ - { - "$id": "90", - "name": "name", - "nameInRequest": "name", - "type": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "92", - "name": "testHeader", - "nameInRequest": "test-header", - "type": { - "$id": "93", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "responses": [ + { + "$id": "72", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/parameters/spread/model/composite-request-only-with-body", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody", + "decorators": [] }, { - "$id": "94", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "95", - "kind": "constant", - "valueType": { - "$id": "96", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "73", + "name": "spreadCompositeRequestWithoutBody", + "resourceName": "Model", + "accessibility": "public", + "parameters": [ + { + "$id": "74", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "75", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "97", - "name": "spreadCompositeRequestMixRequest", - "nameInRequest": "spreadCompositeRequestMixRequest", - "type": { - "$ref": "50" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "98", - "statusCodes": [ - 204 + { + "$id": "76", + "name": "testHeader", + "nameInRequest": "test-header", + "type": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/parameters/spread/model/composite-request-mix/{name}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix", - "decorators": [] - } - ], - "parent": "SpreadClient", - "parameters": [ - { - "$id": "99", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "100", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "101", - "type": { - "$id": "102", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "responses": [ + { + "$id": "78", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/parameters/spread/model/composite-request-without-body/{name}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Model" - }, - { - "$id": "103", - "name": "Alias", - "namespace": "Parameters.Spread.Alias", - "operations": [ - { - "$id": "104", - "name": "spreadAsRequestBody", - "resourceName": "Alias", - "accessibility": "public", - "parameters": [ { - "$id": "105", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "106", - "kind": "constant", - "valueType": { - "$id": "107", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "79", + "name": "spreadCompositeRequest", + "resourceName": "Model", + "accessibility": "public", + "parameters": [ + { + "$id": "80", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "82", + "name": "testHeader", + "nameInRequest": "test-header", + "type": { + "$id": "83", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "84", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "85", + "kind": "constant", + "valueType": { + "$id": "86", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "87", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "45" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "88", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/parameters/spread/model/composite-request/{name}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest", + "decorators": [] }, { - "$id": "108", - "name": "spreadAsRequestBodyRequest", - "nameInRequest": "spreadAsRequestBodyRequest", - "type": { - "$ref": "2" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "109", - "statusCodes": [ - 204 + "$id": "89", + "name": "spreadCompositeRequestMix", + "resourceName": "Model", + "accessibility": "public", + "parameters": [ + { + "$id": "90", + "name": "name", + "nameInRequest": "name", + "type": { + "$id": "91", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "92", + "name": "testHeader", + "nameInRequest": "test-header", + "type": { + "$id": "93", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "94", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "95", + "kind": "constant", + "valueType": { + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "97", + "name": "spreadCompositeRequestMixRequest", + "nameInRequest": "spreadCompositeRequestMixRequest", + "type": { + "$ref": "50" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "98", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/parameters/spread/model/composite-request-mix/{name}", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestMix", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/parameters/spread/alias/request-body", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody", - "decorators": [] - }, - { - "$id": "110", - "name": "spreadParameterWithInnerModel", - "resourceName": "Alias", - "accessibility": "public", "parameters": [ { - "$id": "111", - "name": "id", - "nameInRequest": "id", + "$id": "99", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "112", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "100", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Path", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "113", - "name": "x-ms-test-header", - "nameInRequest": "x-ms-test-header", - "type": { - "$id": "114", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, + "isEndpoint": true, + "skipUrlEncoding": false, "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "115", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "116", - "kind": "constant", - "valueType": { - "$id": "117", + "kind": "Client", + "defaultValue": { + "$id": "101", + "type": { + "$id": "102", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "118", - "name": "spreadParameterWithInnerModelRequest", - "nameInRequest": "spreadParameterWithInnerModelRequest", - "type": { - "$ref": "7" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ - { - "$id": "119", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/parameters/spread/alias/inner-model-parameter/{id}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Parameters.Spread.Model", + "apiVersions": [], + "parent": { + "$ref": "55" + } }, { - "$id": "120", - "name": "spreadAsRequestParameter", - "resourceName": "Alias", - "accessibility": "public", - "parameters": [ + "$id": "103", + "kind": "client", + "name": "Alias", + "namespace": "Parameters.Spread.Alias", + "operations": [ { - "$id": "121", - "name": "id", - "nameInRequest": "id", - "type": { - "$id": "122", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "123", - "name": "x-ms-test-header", - "nameInRequest": "x-ms-test-header", - "type": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "125", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "126", - "kind": "constant", - "valueType": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "104", + "name": "spreadAsRequestBody", + "resourceName": "Alias", + "accessibility": "public", + "parameters": [ + { + "$id": "105", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "106", + "kind": "constant", + "valueType": { + "$id": "107", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "108", + "name": "spreadAsRequestBodyRequest", + "nameInRequest": "spreadAsRequestBodyRequest", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "109", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/parameters/spread/alias/request-body", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody", + "decorators": [] }, { - "$id": "128", - "name": "spreadAsRequestParameterRequest", - "nameInRequest": "spreadAsRequestParameterRequest", - "type": { - "$ref": "12" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "129", - "statusCodes": [ - 204 + "$id": "110", + "name": "spreadParameterWithInnerModel", + "resourceName": "Alias", + "accessibility": "public", + "parameters": [ + { + "$id": "111", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "113", + "name": "x-ms-test-header", + "nameInRequest": "x-ms-test-header", + "type": { + "$id": "114", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "115", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "116", + "kind": "constant", + "valueType": { + "$id": "117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "118", + "name": "spreadParameterWithInnerModelRequest", + "nameInRequest": "spreadParameterWithInnerModelRequest", + "type": { + "$ref": "7" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/parameters/spread/alias/request-parameter/{id}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter", - "decorators": [] - }, - { - "$id": "130", - "name": "spreadWithMultipleParameters", - "resourceName": "Alias", - "accessibility": "public", - "parameters": [ - { - "$id": "131", - "name": "id", - "nameInRequest": "id", - "type": { - "$id": "132", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "responses": [ + { + "$id": "119", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/parameters/spread/alias/inner-model-parameter/{id}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel", + "decorators": [] }, { - "$id": "133", - "name": "x-ms-test-header", - "nameInRequest": "x-ms-test-header", - "type": { - "$id": "134", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "$id": "120", + "name": "spreadAsRequestParameter", + "resourceName": "Alias", + "accessibility": "public", + "parameters": [ + { + "$id": "121", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "122", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "123", + "name": "x-ms-test-header", + "nameInRequest": "x-ms-test-header", + "type": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "125", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "126", + "kind": "constant", + "valueType": { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "128", + "name": "spreadAsRequestParameterRequest", + "nameInRequest": "spreadAsRequestParameterRequest", + "type": { + "$ref": "12" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "129", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/parameters/spread/alias/request-parameter/{id}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter", + "decorators": [] }, { - "$id": "135", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "136", - "kind": "constant", - "valueType": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "130", + "name": "spreadWithMultipleParameters", + "resourceName": "Alias", + "accessibility": "public", + "parameters": [ + { + "$id": "131", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "133", + "name": "x-ms-test-header", + "nameInRequest": "x-ms-test-header", + "type": { + "$id": "134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "135", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "136", + "kind": "constant", + "valueType": { + "$id": "137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "138", + "name": "spreadWithMultipleParametersRequest", + "nameInRequest": "spreadWithMultipleParametersRequest", + "type": { + "$ref": "17" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "139", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/parameters/spread/alias/multiple-parameters/{id}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters", + "decorators": [] }, { - "$id": "138", - "name": "spreadWithMultipleParametersRequest", - "nameInRequest": "spreadWithMultipleParametersRequest", - "type": { - "$ref": "17" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "139", - "statusCodes": [ - 204 + "$id": "140", + "name": "spreadParameterWithInnerAlias", + "resourceName": "Alias", + "doc": "spread an alias with contains another alias property as body.", + "accessibility": "public", + "parameters": [ + { + "$id": "141", + "name": "id", + "nameInRequest": "id", + "type": { + "$id": "142", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "143", + "name": "x-ms-test-header", + "nameInRequest": "x-ms-test-header", + "type": { + "$id": "144", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "145", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "146", + "kind": "constant", + "valueType": { + "$id": "147", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "148", + "name": "spreadParameterWithInnerAliasRequest", + "nameInRequest": "spreadParameterWithInnerAliasRequest", + "type": { + "$ref": "36" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "149", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/parameters/spread/alias/inner-alias-parameter/{id}", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/parameters/spread/alias/multiple-parameters/{id}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters", - "decorators": [] - }, - { - "$id": "140", - "name": "spreadParameterWithInnerAlias", - "resourceName": "Alias", - "doc": "spread an alias with contains another alias property as body.", - "accessibility": "public", "parameters": [ { - "$id": "141", - "name": "id", - "nameInRequest": "id", + "$id": "150", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "151", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Path", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "143", - "name": "x-ms-test-header", - "nameInRequest": "x-ms-test-header", - "type": { - "$id": "144", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, + "isEndpoint": true, + "skipUrlEncoding": false, "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "145", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "146", - "kind": "constant", - "valueType": { - "$id": "147", + "kind": "Client", + "defaultValue": { + "$id": "152", + "type": { + "$id": "153", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "148", - "name": "spreadParameterWithInnerAliasRequest", - "nameInRequest": "spreadParameterWithInnerAliasRequest", - "type": { - "$ref": "36" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ - { - "$id": "149", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/parameters/spread/alias/inner-alias-parameter/{id}", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerAlias", - "decorators": [] - } - ], - "parent": "SpreadClient", - "parameters": [ - { - "$id": "150", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "151", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "152", - "type": { - "$id": "153", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Parameters.Spread.Alias", + "apiVersions": [], + "parent": { + "$ref": "55" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Parameters.Spread.Alias" + ] } ] } 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 ad247e422b4..d2e93857289 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 @@ -46,6 +46,7 @@ "clients": [ { "$id": "7", + "kind": "client", "name": "ContentNegotiationClient", "namespace": "Payload.ContentNegotiation", "doc": "Test describing optionality of the request body.", @@ -83,70 +84,30 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation" - }, - { - "$id": "12", - "name": "SameBody", - "namespace": "Payload.ContentNegotiation.SameBody", - "operations": [ + "crossLanguageDefinitionId": "Payload.ContentNegotiation", + "apiVersions": [], + "children": [ { - "$id": "13", - "name": "getAvatarAsPng", - "resourceName": "SameBody", - "accessibility": "public", - "parameters": [ + "$id": "12", + "kind": "client", + "name": "SameBody", + "namespace": "Payload.ContentNegotiation.SameBody", + "operations": [ { - "$id": "14", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "15", - "kind": "constant", - "valueType": { - "$id": "16", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "17", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "18", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ + "$id": "13", + "name": "getAvatarAsPng", + "resourceName": "SameBody", + "accessibility": "public", + "parameters": [ { - "$id": "19", - "name": "contentType", - "nameInResponse": "content-type", + "$id": "14", + "name": "accept", + "nameInRequest": "Accept", "type": { - "$id": "20", + "$id": "15", "kind": "constant", "valueType": { - "$id": "21", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -154,81 +115,81 @@ }, "value": "image/png", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false } ], - "isErrorResponse": false, - "contentTypes": [ - "image/png" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/content-negotiation/same-body", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsPng", - "decorators": [] - }, - { - "$id": "22", - "name": "getAvatarAsJpeg", - "resourceName": "SameBody", - "accessibility": "public", - "parameters": [ - { - "$id": "23", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "24", - "kind": "constant", - "valueType": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/jpeg", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "26", - "statusCodes": [ - 200 + "responses": [ + { + "$id": "17", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "18", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "$id": "19", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "20", + "kind": "constant", + "valueType": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "image/png" + ] + } ], - "bodyType": { - "$id": "27", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/content-negotiation/same-body", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsPng", + "decorators": [] + }, + { + "$id": "22", + "name": "getAvatarAsJpeg", + "resourceName": "SameBody", + "accessibility": "public", + "parameters": [ { - "$id": "28", - "name": "contentType", - "nameInResponse": "content-type", + "$id": "23", + "name": "accept", + "nameInRequest": "Accept", "type": { - "$id": "29", + "$id": "24", "kind": "constant", "valueType": { - "$id": "30", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -236,123 +197,127 @@ }, "value": "image/jpeg", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "26", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "27", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "$id": "28", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "29", + "kind": "constant", + "valueType": { + "$id": "30", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/jpeg", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "image/jpeg" + ] } ], - "isErrorResponse": false, - "contentTypes": [ - "image/jpeg" - ] + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/content-negotiation/same-body", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsJpeg", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/content-negotiation/same-body", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsJpeg", - "decorators": [] - } - ], - "parent": "ContentNegotiationClient", - "parameters": [ - { - "$id": "31", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "32", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "33", - "type": { - "$id": "34", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody" - }, - { - "$id": "35", - "name": "DifferentBody", - "namespace": "Payload.ContentNegotiation.DifferentBody", - "operations": [ - { - "$id": "36", - "name": "getAvatarAsPng", - "resourceName": "DifferentBody", - "accessibility": "public", "parameters": [ { - "$id": "37", - "name": "accept", - "nameInRequest": "Accept", + "$id": "31", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "38", - "kind": "constant", - "valueType": { - "$id": "39", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "image/png", - "decorators": [] + "$id": "32", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "33", + "type": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody", + "apiVersions": [], + "parent": { + "$ref": "7" + } + }, + { + "$id": "35", + "kind": "client", + "name": "DifferentBody", + "namespace": "Payload.ContentNegotiation.DifferentBody", + "operations": [ { - "$id": "40", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "41", - "kind": "bytes", - "name": "bytes", - "crossLanguageDefinitionId": "TypeSpec.bytes", - "decorators": [] - }, - "headers": [ + "$id": "36", + "name": "getAvatarAsPng", + "resourceName": "DifferentBody", + "accessibility": "public", + "parameters": [ { - "$id": "42", - "name": "contentType", - "nameInResponse": "content-type", + "$id": "37", + "name": "accept", + "nameInRequest": "Accept", "type": { - "$id": "43", + "$id": "38", "kind": "constant", "valueType": { - "$id": "44", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -360,77 +325,81 @@ }, "value": "image/png", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false } ], - "isErrorResponse": false, - "contentTypes": [ - "image/png" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/content-negotiation/different-body", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsPng", - "decorators": [] - }, - { - "$id": "45", - "name": "getAvatarAsJson", - "resourceName": "DifferentBody", - "accessibility": "public", - "parameters": [ - { - "$id": "46", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "47", - "kind": "constant", - "valueType": { - "$id": "48", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "49", - "statusCodes": [ - 200 + "responses": [ + { + "$id": "40", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "41", + "kind": "bytes", + "name": "bytes", + "crossLanguageDefinitionId": "TypeSpec.bytes", + "decorators": [] + }, + "headers": [ + { + "$id": "42", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "43", + "kind": "constant", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "image/png", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "image/png" + ] + } ], - "bodyType": { - "$ref": "2" - }, - "headers": [ + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/content-negotiation/different-body", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsPng", + "decorators": [] + }, + { + "$id": "45", + "name": "getAvatarAsJson", + "resourceName": "DifferentBody", + "accessibility": "public", + "parameters": [ { - "$id": "50", - "name": "contentType", - "nameInResponse": "content-type", + "$id": "46", + "name": "accept", + "nameInRequest": "Accept", "type": { - "$id": "51", + "$id": "47", "kind": "constant", "valueType": { - "$id": "52", + "$id": "48", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -438,60 +407,103 @@ }, "value": "application/json", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "49", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2" + }, + "headers": [ + { + "$id": "50", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "51", + "kind": "constant", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] } ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/content-negotiation/different-body", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsJson", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/content-negotiation/different-body", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsJson", - "decorators": [] - } - ], - "parent": "ContentNegotiationClient", - "parameters": [ - { - "$id": "53", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "54", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "55", - "type": { - "$id": "56", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "parameters": [ + { + "$id": "53", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "54", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "55", + "type": { + "$id": "56", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody", + "apiVersions": [], + "parent": { + "$ref": "7" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody" + ] } ] } 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 712fa10e2ab..0a1afaa8dab 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 @@ -514,6 +514,7 @@ "clients": [ { "$id": "75", + "kind": "client", "name": "JsonMergePatchClient", "namespace": "Payload.JsonMergePatch", "doc": "Test for merge-patch+json content-type", @@ -874,7 +875,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Payload.JsonMergePatch" + "crossLanguageDefinitionId": "Payload.JsonMergePatch", + "apiVersions": [] } ] } 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 b53775604ce..3f896f9ae48 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 @@ -7,6 +7,7 @@ "clients": [ { "$id": "2", + "kind": "client", "name": "MediaTypeClient", "namespace": "Payload.MediaType", "doc": "Test the payload with different media types and different types of the payload itself.", @@ -44,147 +45,30 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Payload.MediaType" - }, - { - "$id": "7", - "name": "StringBody", - "namespace": "Payload.MediaType.StringBody", - "operations": [ + "crossLanguageDefinitionId": "Payload.MediaType", + "apiVersions": [], + "children": [ { - "$id": "8", - "name": "sendAsText", - "resourceName": "StringBody", - "accessibility": "public", - "parameters": [ - { - "$id": "9", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "10", - "kind": "constant", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, + "$id": "7", + "kind": "client", + "name": "StringBody", + "namespace": "Payload.MediaType.StringBody", + "operations": [ { - "$id": "12", - "name": "text", - "nameInRequest": "text", - "type": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "14", - "statusCodes": [ - 200 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/payload/media-type/string-body/sendAsText", - "requestMediaTypes": [ - "text/plain" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText", - "decorators": [] - }, - { - "$id": "15", - "name": "getAsText", - "resourceName": "StringBody", - "accessibility": "public", - "parameters": [ - { - "$id": "16", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "17", - "kind": "constant", - "valueType": { - "$id": "18", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "text/plain", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "19", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "20", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "headers": [ + "$id": "8", + "name": "sendAsText", + "resourceName": "StringBody", + "accessibility": "public", + "parameters": [ { - "$id": "21", + "$id": "9", "name": "contentType", - "nameInResponse": "content-type", + "nameInRequest": "Content-Type", "type": { - "$id": "22", + "$id": "10", "kind": "constant", "valueType": { - "$id": "23", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -192,158 +76,158 @@ }, "value": "text/plain", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "12", + "name": "text", + "nameInRequest": "text", + "type": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "14", + "statusCodes": [ + 200 + ], + "headers": [], + "isErrorResponse": false } ], - "isErrorResponse": false, - "contentTypes": [ + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/payload/media-type/string-body/sendAsText", + "requestMediaTypes": [ "text/plain" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/payload/media-type/string-body/getAsText", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText", - "decorators": [] - }, - { - "$id": "24", - "name": "sendAsJson", - "resourceName": "StringBody", - "accessibility": "public", - "parameters": [ - { - "$id": "25", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "26", - "kind": "constant", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText", + "decorators": [] }, { - "$id": "28", - "name": "text", - "nameInRequest": "text", - "type": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "30", - "statusCodes": [ - 200 + "$id": "15", + "name": "getAsText", + "resourceName": "StringBody", + "accessibility": "public", + "parameters": [ + { + "$id": "16", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "17", + "kind": "constant", + "valueType": { + "$id": "18", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/plain", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/payload/media-type/string-body/sendAsJson", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson", - "decorators": [] - }, - { - "$id": "31", - "name": "getAsJson", - "resourceName": "StringBody", - "accessibility": "public", - "parameters": [ - { - "$id": "32", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "33", - "kind": "constant", - "valueType": { - "$id": "34", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "35", - "statusCodes": [ - 200 + "responses": [ + { + "$id": "19", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "headers": [ + { + "$id": "21", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "22", + "kind": "constant", + "valueType": { + "$id": "23", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "text/plain", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "text/plain" + ] + } ], - "bodyType": { - "$id": "36", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "headers": [ + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/media-type/string-body/getAsText", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText", + "decorators": [] + }, + { + "$id": "24", + "name": "sendAsJson", + "resourceName": "StringBody", + "accessibility": "public", + "parameters": [ { - "$id": "37", + "$id": "25", "name": "contentType", - "nameInResponse": "content-type", + "nameInRequest": "Content-Type", "type": { - "$id": "38", + "$id": "26", "kind": "constant", "valueType": { - "$id": "39", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -351,60 +235,184 @@ }, "value": "application/json", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "28", + "name": "text", + "nameInRequest": "text", + "type": { + "$id": "29", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "30", + "statusCodes": [ + 200 + ], + "headers": [], + "isErrorResponse": false } ], - "isErrorResponse": false, - "contentTypes": [ + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/payload/media-type/string-body/sendAsJson", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson", + "decorators": [] + }, + { + "$id": "31", + "name": "getAsJson", + "resourceName": "StringBody", + "accessibility": "public", + "parameters": [ + { + "$id": "32", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "33", + "kind": "constant", + "valueType": { + "$id": "34", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "35", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "36", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "headers": [ + { + "$id": "37", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "38", + "kind": "constant", + "valueType": { + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/media-type/string-body/getAsJson", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsJson", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/payload/media-type/string-body/getAsJson", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsJson", - "decorators": [] - } - ], - "parent": "MediaTypeClient", - "parameters": [ - { - "$id": "40", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "41", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "42", - "type": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "parameters": [ + { + "$id": "40", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "41", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "42", + "type": { + "$id": "43", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.MediaType.StringBody", + "apiVersions": [], + "parent": { + "$ref": "2" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.MediaType.StringBody" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/Internal/MultiPartFormDataBinaryContent.cs b/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/Internal/MultiPartFormDataBinaryContent.cs deleted file mode 100644 index 70bc3dbd765..00000000000 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Generated/Internal/MultiPartFormDataBinaryContent.cs +++ /dev/null @@ -1,50 +0,0 @@ -// - -#nullable disable - -using System; -using System.ClientModel; -using System.IO; -using System.Net.Http; -using System.Threading; -using System.Threading.Tasks; - -namespace Payload.MultiPart -{ - internal partial class MultiPartFormDataBinaryContent : BinaryContent - { - public MultiPartFormDataBinaryContent() => throw null; - - public string ContentType => throw null; - - public void Add(string content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(int content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(long content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(float content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(double content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(decimal content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(bool content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(Stream content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(byte[] content, string name, string filename = default, string contentType = default) => throw null; - - public void Add(BinaryData content, string name, string filename = default, string contentType = default) => throw null; - - public static void AddContentTypeHeader(HttpContent content, string contentType) => throw null; - - public override bool TryComputeLength(out long length) => throw null; - - public override void WriteTo(Stream stream, CancellationToken cancellationToken = default) => throw null; - - public override Task WriteToAsync(Stream stream, CancellationToken cancellationToken = default) => throw null; - - public override void Dispose() => throw null; - } -} 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 fa86cb96f32..8e4d452af69 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 @@ -1367,6 +1367,7 @@ "clients": [ { "$id": "5652", + "kind": "client", "name": "MultiPartClient", "namespace": "Payload.MultiPart", "doc": "Test for multipart", @@ -1404,1063 +1405,1086 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart" - }, - { - "$id": "5657", - "name": "FormData", - "namespace": "Payload.MultiPart.FormData", - "operations": [ + "crossLanguageDefinitionId": "Payload.MultiPart", + "apiVersions": [], + "children": [ { - "$id": "5658", - "name": "basic", - "resourceName": "FormData", - "doc": "Test content-type: multipart/form-data", - "accessibility": "public", - "parameters": [ + "$id": "5657", + "kind": "client", + "name": "FormData", + "namespace": "Payload.MultiPart.FormData", + "operations": [ { - "$id": "5659", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "5660", - "kind": "constant", - "valueType": { - "$id": "5661", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "5658", + "name": "basic", + "resourceName": "FormData", + "doc": "Test content-type: multipart/form-data", + "accessibility": "public", + "parameters": [ + { + "$id": "5659", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "5660", + "kind": "constant", + "valueType": { + "$id": "5661", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "multipart/form-data", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "5662", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "5" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "5663", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/mixed-parts", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic", + "decorators": [] }, { - "$id": "5662", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "5" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "5663", - "statusCodes": [ - 204 + "$id": "5664", + "name": "fileArrayAndBasic", + "resourceName": "FormData", + "doc": "Test content-type: multipart/form-data for mixed scenarios", + "accessibility": "public", + "parameters": [ + { + "$id": "5665", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "5666", + "kind": "constant", + "valueType": { + "$id": "5667", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "5668", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "14" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/multipart/form-data/mixed-parts", - "requestMediaTypes": [ - "multipart/form-data" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic", - "decorators": [] - }, - { - "$id": "5664", - "name": "fileArrayAndBasic", - "resourceName": "FormData", - "doc": "Test content-type: multipart/form-data for mixed scenarios", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "5669", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/complex-parts", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic", + "decorators": [] + }, { - "$id": "5665", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "5666", - "kind": "constant", - "valueType": { - "$id": "5667", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "5670", + "name": "jsonPart", + "resourceName": "FormData", + "doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", + "accessibility": "public", + "parameters": [ + { + "$id": "5671", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "5672", + "kind": "constant", + "valueType": { + "$id": "5673", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "multipart/form-data", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "5674", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "36" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "5675", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/json-part", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart", + "decorators": [] }, { - "$id": "5668", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "14" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "5669", - "statusCodes": [ - 204 + "$id": "5676", + "name": "binaryArrayParts", + "resourceName": "FormData", + "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", + "accessibility": "public", + "parameters": [ + { + "$id": "5677", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "5678", + "kind": "constant", + "valueType": { + "$id": "5679", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "5680", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "44" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/multipart/form-data/complex-parts", - "requestMediaTypes": [ - "multipart/form-data" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic", - "decorators": [] - }, - { - "$id": "5670", - "name": "jsonPart", - "resourceName": "FormData", - "doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "5681", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/binary-array-parts", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts", + "decorators": [] + }, { - "$id": "5671", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "5672", - "kind": "constant", - "valueType": { - "$id": "5673", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "5682", + "name": "multiBinaryParts", + "resourceName": "FormData", + "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", + "accessibility": "public", + "parameters": [ + { + "$id": "5683", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "5684", + "kind": "constant", + "valueType": { + "$id": "5685", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "multipart/form-data", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "5686", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "54" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "5687", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/multi-binary-parts", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts", + "decorators": [] }, { - "$id": "5674", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "36" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "5688", + "name": "checkFileNameAndContentType", + "resourceName": "FormData", + "doc": "Test content-type: multipart/form-data", + "accessibility": "public", + "parameters": [ + { + "$id": "5689", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "5690", + "kind": "constant", + "valueType": { + "$id": "5691", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "5692", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "5" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "5693", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/check-filename-and-content-type", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType", + "decorators": [] + }, { - "$id": "5675", - "statusCodes": [ - 204 + "$id": "5694", + "name": "anonymousModel", + "resourceName": "FormData", + "doc": "Test content-type: multipart/form-data", + "accessibility": "public", + "parameters": [ + { + "$id": "5695", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "5696", + "kind": "constant", + "valueType": { + "$id": "5697", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "5698", + "name": "anonymousModelRequest", + "nameInRequest": "anonymousModelRequest", + "type": { + "$ref": "63" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "5699", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/anonymous-model", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/multipart/form-data/json-part", - "requestMediaTypes": [ - "multipart/form-data" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart", - "decorators": [] - }, - { - "$id": "5676", - "name": "binaryArrayParts", - "resourceName": "FormData", - "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", - "accessibility": "public", "parameters": [ { - "$id": "5677", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "5678", - "kind": "constant", - "valueType": { - "$id": "5679", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "5680", - "name": "body", - "nameInRequest": "body", + "$id": "5700", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "44" + "$id": "5701", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "5681", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/multipart/form-data/binary-array-parts", - "requestMediaTypes": [ - "multipart/form-data" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts", - "decorators": [] - }, - { - "$id": "5682", - "name": "multiBinaryParts", - "resourceName": "FormData", - "doc": "Test content-type: multipart/form-data for scenario contains multi binary parts", - "accessibility": "public", - "parameters": [ - { - "$id": "5683", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "5684", - "kind": "constant", - "valueType": { - "$id": "5685", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "5702", + "type": { + "$id": "5703", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "multipart/form-data", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "5686", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "54" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData", + "apiVersions": [], + "parent": { + "$ref": "5652" + }, + "children": [ { - "$id": "5687", - "statusCodes": [ - 204 + "$id": "5704", + "kind": "client", + "name": "HttpParts", + "namespace": "Payload.MultiPart.FormData.HttpParts", + "operations": [ + { + "$id": "5705", + "name": "jsonArrayAndFileArray", + "resourceName": "HttpParts", + "doc": "Test content-type: multipart/form-data for mixed scenarios", + "accessibility": "public", + "parameters": [ + { + "$id": "5706", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "5707", + "kind": "constant", + "valueType": { + "$id": "5708", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "5709", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "68" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "5710", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/complex-parts-with-httppart", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray", + "decorators": [] + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/multipart/form-data/multi-binary-parts", - "requestMediaTypes": [ - "multipart/form-data" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts", - "decorators": [] - }, - { - "$id": "5688", - "name": "checkFileNameAndContentType", - "resourceName": "FormData", - "doc": "Test content-type: multipart/form-data", - "accessibility": "public", - "parameters": [ - { - "$id": "5689", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "5690", - "kind": "constant", - "valueType": { - "$id": "5691", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "5692", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "5" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "5693", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/multipart/form-data/check-filename-and-content-type", - "requestMediaTypes": [ - "multipart/form-data" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType", - "decorators": [] - }, - { - "$id": "5694", - "name": "anonymousModel", - "resourceName": "FormData", - "doc": "Test content-type: multipart/form-data", - "accessibility": "public", - "parameters": [ - { - "$id": "5695", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "5696", - "kind": "constant", - "valueType": { - "$id": "5697", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "5698", - "name": "anonymousModelRequest", - "nameInRequest": "anonymousModelRequest", - "type": { - "$ref": "63" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "5699", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/multipart/form-data/anonymous-model", - "requestMediaTypes": [ - "multipart/form-data" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel", - "decorators": [] - } - ], - "parent": "MultiPartClient", - "parameters": [ - { - "$id": "5700", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "5701", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "5702", - "type": { - "$id": "5703", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData" - }, - { - "$id": "5704", - "name": "FormDataHttpParts", - "namespace": "Payload.MultiPart.FormData.HttpParts", - "operations": [ - { - "$id": "5705", - "name": "jsonArrayAndFileArray", - "resourceName": "HttpParts", - "doc": "Test content-type: multipart/form-data for mixed scenarios", - "accessibility": "public", - "parameters": [ - { - "$id": "5706", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "5707", - "kind": "constant", - "valueType": { - "$id": "5708", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "5709", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "68" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "5710", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/multipart/form-data/complex-parts-with-httppart", - "requestMediaTypes": [ - "multipart/form-data" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.jsonArrayAndFileArray", - "decorators": [] - } - ], - "parent": "FormData", - "parameters": [ - { - "$id": "5711", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "5712", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "5713", - "type": { - "$id": "5714", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts" - }, - { - "$id": "5715", - "name": "FormDataHttpPartsContentType", - "namespace": "Payload.MultiPart.FormData.HttpParts.ContentType", - "operations": [ - { - "$id": "5716", - "name": "imageJpegContentType", - "resourceName": "ContentType", - "doc": "Test content-type: multipart/form-data", - "accessibility": "public", - "parameters": [ - { - "$id": "5717", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "5718", - "kind": "constant", - "valueType": { - "$id": "5719", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "5720", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "5615" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "5721", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/multipart/form-data/check-filename-and-specific-content-type-with-httppart", - "requestMediaTypes": [ - "multipart/form-data" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType", - "decorators": [] - }, - { - "$id": "5722", - "name": "requiredContentType", - "resourceName": "ContentType", - "doc": "Test content-type: multipart/form-data", - "accessibility": "public", - "parameters": [ - { - "$id": "5723", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "5724", - "kind": "constant", - "valueType": { - "$id": "5725", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "5726", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "5634" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "5727", - "statusCodes": [ - 204 + "parameters": [ + { + "$id": "5711", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "5712", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "5713", + "type": { + "$id": "5714", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/multipart/form-data/check-filename-and-required-content-type-with-httppart", - "requestMediaTypes": [ - "multipart/form-data" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType", - "decorators": [] - }, - { - "$id": "5728", - "name": "optionalContentType", - "resourceName": "ContentType", - "doc": "Test content-type: multipart/form-data for optional content type", - "accessibility": "public", - "parameters": [ - { - "$id": "5729", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "5730", - "kind": "constant", - "valueType": { - "$id": "5731", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "multipart/form-data", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "5732", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "5638" + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts", + "apiVersions": [], + "parent": { + "$ref": "5657" }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "5733", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/multipart/form-data/file-with-http-part-optional-content-type", - "requestMediaTypes": [ - "multipart/form-data" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType", - "decorators": [] - } - ], - "parent": "FormDataHttpParts", - "parameters": [ - { - "$id": "5734", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "5735", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "5736", - "type": { - "$id": "5737", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType" - }, - { - "$id": "5738", - "name": "FormDataHttpPartsNonString", - "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", - "operations": [ - { - "$id": "5739", - "name": "float", - "resourceName": "NonString", - "doc": "Test content-type: multipart/form-data for non string", - "accessibility": "public", - "parameters": [ - { - "$id": "5740", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "5741", - "kind": "constant", - "valueType": { - "$id": "5742", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "children": [ + { + "$id": "5715", + "kind": "client", + "name": "ContentType", + "namespace": "Payload.MultiPart.FormData.HttpParts.ContentType", + "operations": [ + { + "$id": "5716", + "name": "imageJpegContentType", + "resourceName": "ContentType", + "doc": "Test content-type: multipart/form-data", + "accessibility": "public", + "parameters": [ + { + "$id": "5717", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "5718", + "kind": "constant", + "valueType": { + "$id": "5719", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "5720", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "5615" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "5721", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/check-filename-and-specific-content-type-with-httppart", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType", + "decorators": [] + }, + { + "$id": "5722", + "name": "requiredContentType", + "resourceName": "ContentType", + "doc": "Test content-type: multipart/form-data", + "accessibility": "public", + "parameters": [ + { + "$id": "5723", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "5724", + "kind": "constant", + "valueType": { + "$id": "5725", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "5726", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "5634" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "5727", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/check-filename-and-required-content-type-with-httppart", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType", + "decorators": [] + }, + { + "$id": "5728", + "name": "optionalContentType", + "resourceName": "ContentType", + "doc": "Test content-type: multipart/form-data for optional content type", + "accessibility": "public", + "parameters": [ + { + "$id": "5729", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "5730", + "kind": "constant", + "valueType": { + "$id": "5731", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "5732", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "5638" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "5733", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/file-with-http-part-optional-content-type", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.optionalContentType", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "5734", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "5735", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "5736", + "type": { + "$id": "5737", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType", + "apiVersions": [], + "parent": { + "$ref": "5704" + } }, - "value": "multipart/form-data", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "5743", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "4811" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "5744", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + { + "$id": "5738", + "kind": "client", + "name": "NonString", + "namespace": "Payload.MultiPart.FormData.HttpParts.NonString", + "operations": [ + { + "$id": "5739", + "name": "float", + "resourceName": "NonString", + "doc": "Test content-type: multipart/form-data for non string", + "accessibility": "public", + "parameters": [ + { + "$id": "5740", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "5741", + "kind": "constant", + "valueType": { + "$id": "5742", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "multipart/form-data", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "5743", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "4811" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "5744", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/multipart/form-data/non-string-float", + "requestMediaTypes": [ + "multipart/form-data" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "5745", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "5746", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "5747", + "type": { + "$id": "5748", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString", + "apiVersions": [], + "parent": { + "$ref": "5704" + } + } + ] } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/multipart/form-data/non-string-float", - "requestMediaTypes": [ - "multipart/form-data" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float", - "decorators": [] - } - ], - "parent": "FormDataHttpParts", - "parameters": [ - { - "$id": "5745", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "5746", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "5747", - "type": { - "$id": "5748", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } + ] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString" + ] } ] } 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 64ea69cc9cf..997ca12b211 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 @@ -349,6 +349,7 @@ "clients": [ { "$id": "48", + "kind": "client", "name": "PageableClient", "namespace": "Payload.Pageable", "doc": "Test for pageable payload.", @@ -386,797 +387,810 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable" - }, - { - "$id": "53", - "name": "ServerDrivenPagination", - "namespace": "Payload.Pageable.ServerDrivenPagination", - "operations": [ + "crossLanguageDefinitionId": "Payload.Pageable", + "apiVersions": [], + "children": [ { - "$id": "54", - "name": "link", - "resourceName": "ServerDrivenPagination", - "accessibility": "public", - "parameters": [ + "$id": "53", + "kind": "client", + "name": "ServerDrivenPagination", + "namespace": "Payload.Pageable.ServerDrivenPagination", + "operations": [ { - "$id": "55", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "56", - "kind": "constant", - "valueType": { - "$id": "57", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "58", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "2" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/payload/pageable/server-driven-pagination/link", - "bufferResponse": true, - "paging": { - "$id": "59", - "itemPropertySegments": [ - "pets" - ], - "nextLink": { - "$id": "60", - "responseSegments": [ - "next" + "$id": "54", + "name": "link", + "resourceName": "ServerDrivenPagination", + "accessibility": "public", + "parameters": [ + { + "$id": "55", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "56", + "kind": "constant", + "valueType": { + "$id": "57", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "responseLocation": "Body" - } - }, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link", - "decorators": [] - } - ], - "parent": "PageableClient", - "parameters": [ - { - "$id": "61", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "62", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "63", - "type": { - "$id": "64", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination" - }, - { - "$id": "65", - "name": "ServerDrivenPaginationContinuationToken", - "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", - "operations": [ - { - "$id": "66", - "name": "requestQueryResponseBody", - "resourceName": "ContinuationToken", - "accessibility": "public", - "parameters": [ - { - "$id": "67", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "68", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "69", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "70", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "71", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "72", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "73", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "74", - "kind": "constant", - "valueType": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "76", - "statusCodes": [ - 200 + "responses": [ + { + "$id": "58", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } ], - "bodyType": { - "$ref": "20" + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/pageable/server-driven-pagination/link", + "bufferResponse": true, + "paging": { + "$id": "59", + "itemPropertySegments": [ + "pets" + ], + "nextLink": { + "$id": "60", + "responseSegments": [ + "next" + ], + "responseLocation": "Body" + } }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.link", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-query-response-body", - "bufferResponse": true, - "paging": { - "$id": "77", - "itemPropertySegments": [ - "pets" - ], - "continuationToken": { - "$id": "78", - "parameter": { - "$id": "79", - "name": "token", - "nameInRequest": "token", - "type": { - "$ref": "68" - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - "responseSegments": [ - "nextToken" - ], - "responseLocation": "Body" - } - }, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody", - "decorators": [] - }, - { - "$id": "80", - "name": "requestHeaderResponseBody", - "resourceName": "ContinuationToken", - "accessibility": "public", "parameters": [ { - "$id": "81", - "name": "token", - "nameInRequest": "token", + "$id": "61", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "82", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "62", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "83", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "84", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "85", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "86", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "87", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "88", - "kind": "constant", - "valueType": { - "$id": "89", + "kind": "Client", + "defaultValue": { + "$id": "63", + "type": { + "$id": "64", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "90", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "29" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-header-response-body", - "bufferResponse": true, - "paging": { - "$id": "91", - "itemPropertySegments": [ - "pets" - ], - "continuationToken": { - "$id": "92", - "parameter": { - "$id": "93", - "name": "token", - "nameInRequest": "token", - "type": { - "$ref": "82" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - "responseSegments": [ - "nextToken" - ], - "responseLocation": "Body" - } + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination", + "apiVersions": [], + "parent": { + "$ref": "48" }, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody", - "decorators": [] - }, - { - "$id": "94", - "name": "requestQueryResponseHeader", - "resourceName": "ContinuationToken", - "accessibility": "public", - "parameters": [ + "children": [ { - "$id": "95", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "96", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "97", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "98", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "99", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "100", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "101", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "102", - "kind": "constant", - "valueType": { - "$id": "103", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "65", + "kind": "client", + "name": "ContinuationToken", + "namespace": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", + "operations": [ + { + "$id": "66", + "name": "requestQueryResponseBody", + "resourceName": "ContinuationToken", + "accessibility": "public", + "parameters": [ + { + "$id": "67", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "69", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "70", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "71", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "73", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "74", + "kind": "constant", + "valueType": { + "$id": "75", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "76", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "20" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-query-response-body", + "bufferResponse": true, + "paging": { + "$id": "77", + "itemPropertySegments": [ + "pets" + ], + "continuationToken": { + "$id": "78", + "parameter": { + "$id": "79", + "name": "token", + "nameInRequest": "token", + "type": { + "$ref": "68" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + "responseSegments": [ + "nextToken" + ], + "responseLocation": "Body" + } + }, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseBody", "decorators": [] }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "104", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "38" - }, - "headers": [ { - "$id": "105", - "name": "nextToken", - "nameInResponse": "next-token", - "type": { - "$id": "106", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - } - } - ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-query-response-header", - "bufferResponse": true, - "paging": { - "$id": "107", - "itemPropertySegments": [ - "pets" - ], - "continuationToken": { - "$id": "108", - "parameter": { - "$id": "109", - "name": "token", - "nameInRequest": "token", - "type": { - "$ref": "96" + "$id": "80", + "name": "requestHeaderResponseBody", + "resourceName": "ContinuationToken", + "accessibility": "public", + "parameters": [ + { + "$id": "81", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "82", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "83", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "84", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "85", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "86", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "87", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "88", + "kind": "constant", + "valueType": { + "$id": "89", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "90", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "29" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-header-response-body", + "bufferResponse": true, + "paging": { + "$id": "91", + "itemPropertySegments": [ + "pets" + ], + "continuationToken": { + "$id": "92", + "parameter": { + "$id": "93", + "name": "token", + "nameInRequest": "token", + "type": { + "$ref": "82" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + "responseSegments": [ + "nextToken" + ], + "responseLocation": "Body" + } + }, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseBody", + "decorators": [] }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - "responseSegments": [ - "next-token" - ], - "responseLocation": "Header" - } - }, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader", - "decorators": [] - }, - { - "$id": "110", - "name": "requestHeaderResponseHeader", - "resourceName": "ContinuationToken", - "accessibility": "public", - "parameters": [ - { - "$id": "111", - "name": "token", - "nameInRequest": "token", - "type": { - "$id": "112", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "113", - "name": "foo", - "nameInRequest": "foo", - "type": { - "$id": "114", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "115", - "name": "bar", - "nameInRequest": "bar", - "type": { - "$id": "116", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "117", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "118", - "kind": "constant", - "valueType": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + { + "$id": "94", + "name": "requestQueryResponseHeader", + "resourceName": "ContinuationToken", + "accessibility": "public", + "parameters": [ + { + "$id": "95", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "96", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "97", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "98", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "99", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "101", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "102", + "kind": "constant", + "valueType": { + "$id": "103", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "104", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "38" + }, + "headers": [ + { + "$id": "105", + "name": "nextToken", + "nameInResponse": "next-token", + "type": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-query-response-header", + "bufferResponse": true, + "paging": { + "$id": "107", + "itemPropertySegments": [ + "pets" + ], + "continuationToken": { + "$id": "108", + "parameter": { + "$id": "109", + "name": "token", + "nameInRequest": "token", + "type": { + "$ref": "96" + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + "responseSegments": [ + "next-token" + ], + "responseLocation": "Header" + } + }, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestQueryResponseHeader", "decorators": [] }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "120", - "statusCodes": [ - 200 + { + "$id": "110", + "name": "requestHeaderResponseHeader", + "resourceName": "ContinuationToken", + "accessibility": "public", + "parameters": [ + { + "$id": "111", + "name": "token", + "nameInRequest": "token", + "type": { + "$id": "112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "113", + "name": "foo", + "nameInRequest": "foo", + "type": { + "$id": "114", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "115", + "name": "bar", + "nameInRequest": "bar", + "type": { + "$id": "116", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "117", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "118", + "kind": "constant", + "valueType": { + "$id": "119", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "120", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "43" + }, + "headers": [ + { + "$id": "121", + "name": "nextToken", + "nameInResponse": "next-token", + "type": { + "$id": "122", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-header-response-header", + "bufferResponse": true, + "paging": { + "$id": "123", + "itemPropertySegments": [ + "pets" + ], + "continuationToken": { + "$id": "124", + "parameter": { + "$id": "125", + "name": "token", + "nameInRequest": "token", + "type": { + "$ref": "112" + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": false, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + }, + "responseSegments": [ + "next-token" + ], + "responseLocation": "Header" + } + }, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader", + "decorators": [] + } ], - "bodyType": { - "$ref": "43" - }, - "headers": [ + "parameters": [ { - "$id": "121", - "name": "nextToken", - "nameInResponse": "next-token", + "$id": "126", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "122", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "127", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "128", + "type": { + "$id": "129", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" } } ], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/payload/pageable/server-driven-pagination/continuationtoken/request-header-response-header", - "bufferResponse": true, - "paging": { - "$id": "123", - "itemPropertySegments": [ - "pets" - ], - "continuationToken": { - "$id": "124", - "parameter": { - "$id": "125", - "name": "token", - "nameInRequest": "token", - "type": { - "$ref": "112" - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": false, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - }, - "responseSegments": [ - "next-token" - ], - "responseLocation": "Header" + "decorators": [], + "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken", + "apiVersions": [], + "parent": { + "$ref": "53" + } } - }, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken.requestHeaderResponseHeader", - "decorators": [] - } - ], - "parent": "ServerDrivenPagination", - "parameters": [ - { - "$id": "126", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "127", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "128", - "type": { - "$id": "129", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } + ] } - ], - "decorators": [], - "crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken" + ] } ] } 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 96d822f2dbc..5c47625b00a 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 @@ -49,6 +49,7 @@ "clients": [ { "$id": "6", + "kind": "client", "name": "ResiliencyServiceDrivenClient", "namespace": "Resiliency.ServiceDriven", "doc": "Test that we can grow up a service spec and service deployment into a multi-versioned service with full client support.", @@ -253,7 +254,10 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Resiliency.ServiceDriven" + "crossLanguageDefinitionId": "Resiliency.ServiceDriven", + "apiVersions": [ + "v1" + ] } ] } 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 3e238b9d8d6..cc75f1d8d45 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 @@ -68,6 +68,7 @@ "clients": [ { "$id": "8", + "kind": "client", "name": "ResiliencyServiceDrivenClient", "namespace": "Resiliency.ServiceDriven", "doc": "Test that we can grow up a service spec and service deployment into a multi-versioned service with full client support.\n\nThere are three concepts that should be clarified:\n1. Client spec version: refers to the spec that the client is generated from. 'v1' is a client generated from old.tsp and 'v2' is a client generated from main.tsp.\n2. Service deployment version: refers to a deployment version of the service. 'v1' represents the initial deployment of the service with a single api version. 'v2' represents the new deployment of a service with multiple api versions\n3. Api version: The initial deployment of the service only supports api version 'v1'. The new deployment of the service supports api versions 'v1' and 'v2'.\n\nWe test the following configurations from this service spec:\n- A client generated from the second service spec can call the second deployment of a service with api version v1\n- A client generated from the second service spec can call the second deployment of a service with api version v2", @@ -365,7 +366,11 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Resiliency.ServiceDriven" + "crossLanguageDefinitionId": "Resiliency.ServiceDriven", + "apiVersions": [ + "v1", + "v2" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json index e4211cb2563..6826d19fd68 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/response/status-code-range/tspCodeModel.json @@ -208,6 +208,7 @@ "clients": [ { "$id": "30", + "kind": "client", "name": "StatusCodeRangeClient", "namespace": "Response.StatusCodeRange", "doc": "Test for range of status code.", @@ -352,7 +353,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Response.StatusCodeRange" + "crossLanguageDefinitionId": "Response.StatusCodeRange", + "apiVersions": [] } ] } 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 2b532c216c1..3cc572eb1c9 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 @@ -7,6 +7,7 @@ "clients": [ { "$id": "2", + "kind": "client", "name": "RoutesClient", "namespace": "Routes", "doc": "Define scenario in building the http route/uri", @@ -70,3246 +71,3353 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Routes" - }, - { - "$id": "9", - "name": "PathParameters", - "namespace": "Routes.PathParameters", - "operations": [ - { - "$id": "10", - "name": "templateOnly", - "resourceName": "PathParameters", - "accessibility": "public", - "parameters": [ + "crossLanguageDefinitionId": "Routes", + "apiVersions": [], + "children": [ + { + "$id": "9", + "kind": "client", + "name": "PathParameters", + "namespace": "Routes.PathParameters", + "operations": [ + { + "$id": "10", + "name": "templateOnly", + "resourceName": "PathParameters", + "accessibility": "public", + "parameters": [ + { + "$id": "11", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "12", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "13", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/template-only/{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.templateOnly", + "decorators": [] + }, { - "$id": "11", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "12", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "14", + "name": "explicit", + "resourceName": "PathParameters", + "accessibility": "public", + "parameters": [ + { + "$id": "15", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "17", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/explicit/{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.explicit", + "decorators": [] + }, { - "$id": "13", - "statusCodes": [ - 204 + "$id": "18", + "name": "annotationOnly", + "resourceName": "PathParameters", + "accessibility": "public", + "parameters": [ + { + "$id": "19", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "21", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/annotation-only/{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.annotationOnly", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/template-only/{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.templateOnly", - "decorators": [] - }, - { - "$id": "14", - "name": "explicit", - "resourceName": "PathParameters", - "accessibility": "public", "parameters": [ { - "$id": "15", - "name": "param", - "nameInRequest": "param", + "$id": "22", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "16", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "23", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Path", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "24", + "type": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters", + "apiVersions": [], + "parent": { + "$ref": "2" + }, + "children": [ + { + "$id": "26", + "kind": "client", + "name": "ReservedExpansion", + "namespace": "Routes.PathParameters.ReservedExpansion", + "operations": [ + { + "$id": "27", + "name": "template", + "resourceName": "ReservedExpansion", + "accessibility": "public", + "parameters": [ + { + "$id": "28", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "29", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": true + } + ], + "responses": [ + { + "$id": "30", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/reserved-expansion/template/{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.template", + "decorators": [] + }, + { + "$id": "31", + "name": "annotation", + "resourceName": "ReservedExpansion", + "accessibility": "public", + "parameters": [ + { + "$id": "32", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": true + } + ], + "responses": [ + { + "$id": "34", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/reserved-expansion/annotation/{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.annotation", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "35", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "36", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "37", + "type": { + "$id": "38", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion", + "apiVersions": [], + "parent": { + "$ref": "9" + } + }, { - "$id": "17", - "statusCodes": [ - 204 + "$id": "39", + "kind": "client", + "name": "SimpleExpansion", + "namespace": "Routes.PathParameters.SimpleExpansion", + "operations": [], + "parameters": [ + { + "$id": "40", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "41", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "42", + "type": { + "$id": "43", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/explicit/{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.explicit", - "decorators": [] - }, - { - "$id": "18", - "name": "annotationOnly", - "resourceName": "PathParameters", - "accessibility": "public", - "parameters": [ + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion", + "apiVersions": [], + "parent": { + "$ref": "9" + }, + "children": [ + { + "$id": "44", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.SimpleExpansion.Standard", + "operations": [ + { + "$id": "45", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "46", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "48", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/simple/standard/primitive{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.primitive", + "decorators": [] + }, + { + "$id": "49", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "50", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "51", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "52", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "53", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/simple/standard/array{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array", + "decorators": [] + }, + { + "$id": "54", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "55", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "56", + "kind": "dict", + "keyType": { + "$id": "57", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "58", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "59", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/simple/standard/record{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.record", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "60", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "61", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "62", + "type": { + "$id": "63", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "39" + } + }, + { + "$id": "64", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.SimpleExpansion.Explode", + "operations": [ + { + "$id": "65", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "66", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "67", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "68", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/simple/explode/primitive{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive", + "decorators": [] + }, + { + "$id": "69", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "70", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "71", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "72", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "73", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/simple/explode/array{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array", + "decorators": [] + }, + { + "$id": "74", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "75", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "76", + "kind": "dict", + "keyType": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "78", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "79", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/simple/explode/record{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.record", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "80", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "81", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "82", + "type": { + "$id": "83", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode", + "apiVersions": [], + "parent": { + "$ref": "39" + } + } + ] + }, { - "$id": "19", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "20", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "84", + "kind": "client", + "name": "PathExpansion", + "namespace": "Routes.PathParameters.PathExpansion", + "operations": [], + "parameters": [ + { + "$id": "85", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "86", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "87", + "type": { + "$id": "88", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion", + "apiVersions": [], + "parent": { + "$ref": "9" }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", + "children": [ + { + "$id": "89", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.PathExpansion.Standard", + "operations": [ + { + "$id": "90", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "91", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "92", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "93", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/path/standard/primitive{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive", + "decorators": [] + }, + { + "$id": "94", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "95", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "96", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "98", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/path/standard/array{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array", + "decorators": [] + }, + { + "$id": "99", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "100", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "101", + "kind": "dict", + "keyType": { + "$id": "102", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "103", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "104", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/path/standard/record{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.record", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "105", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "106", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "107", + "type": { + "$id": "108", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "84" + } + }, + { + "$id": "109", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.PathExpansion.Explode", + "operations": [ + { + "$id": "110", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "111", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "113", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/path/explode/primitive{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive", + "decorators": [] + }, + { + "$id": "114", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "115", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "116", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "118", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/path/explode/array{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array", + "decorators": [] + }, + { + "$id": "119", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "120", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "121", + "kind": "dict", + "keyType": { + "$id": "122", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "123", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "124", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/path/explode/record{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.record", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "125", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "126", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "127", + "type": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode", + "apiVersions": [], + "parent": { + "$ref": "84" + } + } + ] + }, + { + "$id": "129", + "kind": "client", + "name": "LabelExpansion", + "namespace": "Routes.PathParameters.LabelExpansion", + "operations": [], + "parameters": [ + { + "$id": "130", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "131", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "132", + "type": { + "$id": "133", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion", + "apiVersions": [], + "parent": { + "$ref": "9" + }, + "children": [ + { + "$id": "134", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.LabelExpansion.Standard", + "operations": [ + { + "$id": "135", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "136", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "138", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/label/standard/primitive{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive", + "decorators": [] + }, + { + "$id": "139", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "140", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "141", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "142", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "143", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/label/standard/array{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array", + "decorators": [] + }, + { + "$id": "144", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "145", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "146", + "kind": "dict", + "keyType": { + "$id": "147", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "148", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "149", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/label/standard/record{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.record", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "150", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "151", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "152", + "type": { + "$id": "153", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "129" + } + }, + { + "$id": "154", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.LabelExpansion.Explode", + "operations": [ + { + "$id": "155", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "156", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "157", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "158", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/label/explode/primitive{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive", + "decorators": [] + }, + { + "$id": "159", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "160", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "161", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "162", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "163", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/label/explode/array{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array", + "decorators": [] + }, + { + "$id": "164", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "165", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "166", + "kind": "dict", + "keyType": { + "$id": "167", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "168", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "169", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/label/explode/record{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.record", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "170", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "171", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "172", + "type": { + "$id": "173", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode", + "apiVersions": [], + "parent": { + "$ref": "129" + } + } + ] + }, { - "$id": "21", - "statusCodes": [ - 204 + "$id": "174", + "kind": "client", + "name": "MatrixExpansion", + "namespace": "Routes.PathParameters.MatrixExpansion", + "operations": [], + "parameters": [ + { + "$id": "175", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "176", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "177", + "type": { + "$id": "178", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/annotation-only/{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.annotationOnly", - "decorators": [] - } - ], - "parent": "RoutesClient", - "parameters": [ + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion", + "apiVersions": [], + "parent": { + "$ref": "9" + }, + "children": [ + { + "$id": "179", + "kind": "client", + "name": "Standard", + "namespace": "Routes.PathParameters.MatrixExpansion.Standard", + "operations": [ + { + "$id": "180", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "181", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "182", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "183", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/matrix/standard/primitive{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive", + "decorators": [] + }, + { + "$id": "184", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "185", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "186", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "187", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "188", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/matrix/standard/array{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array", + "decorators": [] + }, + { + "$id": "189", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "190", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "191", + "kind": "dict", + "keyType": { + "$id": "192", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "193", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "194", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/matrix/standard/record{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "195", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "196", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "197", + "type": { + "$id": "198", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "174" + } + }, + { + "$id": "199", + "kind": "client", + "name": "Explode", + "namespace": "Routes.PathParameters.MatrixExpansion.Explode", + "operations": [ + { + "$id": "200", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "201", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "202", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "203", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/matrix/explode/primitive{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive", + "decorators": [] + }, + { + "$id": "204", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "205", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "206", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "207", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "208", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/matrix/explode/array{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array", + "decorators": [] + }, + { + "$id": "209", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "210", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "211", + "kind": "dict", + "keyType": { + "$id": "212", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "213", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "location": "Path", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "214", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/path/matrix/explode/record{param}", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.record", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "215", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "216", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "217", + "type": { + "$id": "218", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode", + "apiVersions": [], + "parent": { + "$ref": "174" + } + } + ] + } + ] + }, { - "$id": "22", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "23", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "24", - "type": { - "$id": "25", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "219", + "kind": "client", + "name": "QueryParameters", + "namespace": "Routes.QueryParameters", + "operations": [ + { + "$id": "220", + "name": "templateOnly", + "resourceName": "QueryParameters", + "accessibility": "public", + "parameters": [ + { + "$id": "221", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "222", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "223", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/template-only", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.templateOnly", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters" - }, - { - "$id": "26", - "name": "PathParametersReservedExpansion", - "namespace": "Routes.PathParameters.ReservedExpansion", - "operations": [ - { - "$id": "27", - "name": "template", - "resourceName": "ReservedExpansion", - "accessibility": "public", + { + "$id": "224", + "name": "explicit", + "resourceName": "QueryParameters", + "accessibility": "public", + "parameters": [ + { + "$id": "225", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "226", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "227", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/explicit", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.explicit", + "decorators": [] + }, + { + "$id": "228", + "name": "annotationOnly", + "resourceName": "QueryParameters", + "accessibility": "public", + "parameters": [ + { + "$id": "229", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "230", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "231", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/annotation-only", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.annotationOnly", + "decorators": [] + } + ], "parameters": [ { - "$id": "28", - "name": "param", - "nameInRequest": "param", + "$id": "232", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "233", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Path", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": true + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "234", + "type": { + "$id": "235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters", + "apiVersions": [], + "parent": { + "$ref": "2" + }, + "children": [ + { + "$id": "236", + "kind": "client", + "name": "QueryExpansion", + "namespace": "Routes.QueryParameters.QueryExpansion", + "operations": [], + "parameters": [ + { + "$id": "237", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "238", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "239", + "type": { + "$id": "240", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion", + "apiVersions": [], + "parent": { + "$ref": "219" + }, + "children": [ + { + "$id": "241", + "kind": "client", + "name": "Standard", + "namespace": "Routes.QueryParameters.QueryExpansion.Standard", + "operations": [ + { + "$id": "242", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "243", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "244", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "245", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/query-expansion/standard/primitive", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.primitive", + "decorators": [] + }, + { + "$id": "246", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "247", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "248", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "249", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "250", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/query-expansion/standard/array", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.array", + "decorators": [] + }, + { + "$id": "251", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "252", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "253", + "kind": "dict", + "keyType": { + "$id": "254", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "255", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "256", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/query-expansion/standard/record", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.record", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "257", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "258", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "259", + "type": { + "$id": "260", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard", + "apiVersions": [], + "parent": { + "$ref": "236" + } + }, + { + "$id": "261", + "kind": "client", + "name": "Explode", + "namespace": "Routes.QueryParameters.QueryExpansion.Explode", + "operations": [ + { + "$id": "262", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "263", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "264", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "265", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/query-expansion/explode/primitive", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.primitive", + "decorators": [] + }, + { + "$id": "266", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "267", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "268", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "269", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "270", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/query-expansion/explode/array", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array", + "decorators": [] + }, + { + "$id": "271", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "272", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "273", + "kind": "dict", + "keyType": { + "$id": "274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "275", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "276", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/query-expansion/explode/record", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.record", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "277", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "278", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "279", + "type": { + "$id": "280", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode", + "apiVersions": [], + "parent": { + "$ref": "236" + } + } + ] + }, { - "$id": "30", - "statusCodes": [ - 204 + "$id": "281", + "kind": "client", + "name": "QueryContinuation", + "namespace": "Routes.QueryParameters.QueryContinuation", + "operations": [], + "parameters": [ + { + "$id": "282", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "283", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "284", + "type": { + "$id": "285", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/reserved-expansion/template/{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.template", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation", + "apiVersions": [], + "parent": { + "$ref": "219" + }, + "children": [ + { + "$id": "286", + "kind": "client", + "name": "Standard", + "namespace": "Routes.QueryParameters.QueryContinuation.Standard", + "operations": [ + { + "$id": "287", + "name": "primitive", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "288", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "289", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "290", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/query-continuation/standard/primitive?fixed=true", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive", + "decorators": [] + }, + { + "$id": "291", + "name": "array", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "292", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "293", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "294", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "295", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/query-continuation/standard/array?fixed=true", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array", + "decorators": [] + }, + { + "$id": "296", + "name": "record", + "resourceName": "Standard", + "accessibility": "public", + "parameters": [ + { + "$id": "297", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "298", + "kind": "dict", + "keyType": { + "$id": "299", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "300", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "301", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/query-continuation/standard/record?fixed=true", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.record", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "302", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "303", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "304", + "type": { + "$id": "305", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard", + "apiVersions": [], + "parent": { + "$ref": "281" + } + }, + { + "$id": "306", + "kind": "client", + "name": "Explode", + "namespace": "Routes.QueryParameters.QueryContinuation.Explode", + "operations": [ + { + "$id": "307", + "name": "primitive", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "308", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "309", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "310", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/query-continuation/explode/primitive?fixed=true", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive", + "decorators": [] + }, + { + "$id": "311", + "name": "array", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "312", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "313", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "314", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "315", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/query-continuation/explode/array?fixed=true", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array", + "decorators": [] + }, + { + "$id": "316", + "name": "record", + "resourceName": "Explode", + "accessibility": "public", + "parameters": [ + { + "$id": "317", + "name": "param", + "nameInRequest": "param", + "type": { + "$id": "318", + "kind": "dict", + "keyType": { + "$id": "319", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "320", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": true, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "321", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/query/query-continuation/explode/record?fixed=true", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.record", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "322", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "323", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "location": "Uri", + "isApiVersion": false, + "isContentType": false, + "isRequired": true, + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "324", + "type": { + "$id": "325", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode", + "apiVersions": [], + "parent": { + "$ref": "281" + } + } + ] + } + ] }, { - "$id": "31", - "name": "annotation", - "resourceName": "ReservedExpansion", - "accessibility": "public", + "$id": "326", + "kind": "client", + "name": "InInterface", + "namespace": "Routes", + "operations": [ + { + "$id": "327", + "name": "fixed", + "resourceName": "InInterface", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "328", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/routes/in-interface/fixed", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Routes.InInterface.fixed", + "decorators": [] + } + ], "parameters": [ { - "$id": "32", - "name": "param", - "nameInRequest": "param", + "$id": "329", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "33", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "330", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Path", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": true - } - ], - "responses": [ - { - "$id": "34", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "331", + "type": { + "$id": "332", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/reserved-expansion/annotation/{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion.annotation", - "decorators": [] - } - ], - "parent": "PathParameters", - "parameters": [ - { - "$id": "35", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "36", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "37", - "type": { - "$id": "38", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Routes.InInterface", + "apiVersions": [], + "parent": { + "$ref": "2" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion" - }, - { - "$id": "39", - "name": "PathParametersSimpleExpansion", - "namespace": "Routes.PathParameters.SimpleExpansion", - "operations": [], - "parent": "PathParameters", - "parameters": [ - { - "$id": "40", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "41", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "42", - "type": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion" - }, - { - "$id": "44", - "name": "PathParametersSimpleExpansionStandard", - "namespace": "Routes.PathParameters.SimpleExpansion.Standard", - "operations": [ - { - "$id": "45", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "46", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "48", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/simple/standard/primitive{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.primitive", - "decorators": [] - }, - { - "$id": "49", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "50", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "51", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "52", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "53", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/simple/standard/array{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.array", - "decorators": [] - }, - { - "$id": "54", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "55", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "56", - "kind": "dict", - "keyType": { - "$id": "57", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "58", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "59", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/simple/standard/record{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard.record", - "decorators": [] - } - ], - "parent": "PathParametersSimpleExpansion", - "parameters": [ - { - "$id": "60", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "61", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "62", - "type": { - "$id": "63", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard" - }, - { - "$id": "64", - "name": "PathParametersSimpleExpansionExplode", - "namespace": "Routes.PathParameters.SimpleExpansion.Explode", - "operations": [ - { - "$id": "65", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "66", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "67", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "68", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/simple/explode/primitive{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.primitive", - "decorators": [] - }, - { - "$id": "69", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "70", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "71", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "72", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "73", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/simple/explode/array{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.array", - "decorators": [] - }, - { - "$id": "74", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "75", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "76", - "kind": "dict", - "keyType": { - "$id": "77", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "78", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "79", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/simple/explode/record{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode.record", - "decorators": [] - } - ], - "parent": "PathParametersSimpleExpansion", - "parameters": [ - { - "$id": "80", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "81", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "82", - "type": { - "$id": "83", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode" - }, - { - "$id": "84", - "name": "PathParametersPathExpansion", - "namespace": "Routes.PathParameters.PathExpansion", - "operations": [], - "parent": "PathParameters", - "parameters": [ - { - "$id": "85", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "86", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "87", - "type": { - "$id": "88", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion" - }, - { - "$id": "89", - "name": "PathParametersPathExpansionStandard", - "namespace": "Routes.PathParameters.PathExpansion.Standard", - "operations": [ - { - "$id": "90", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "91", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "92", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "93", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/path/standard/primitive{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.primitive", - "decorators": [] - }, - { - "$id": "94", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "95", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "96", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "97", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "98", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/path/standard/array{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.array", - "decorators": [] - }, - { - "$id": "99", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "100", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "101", - "kind": "dict", - "keyType": { - "$id": "102", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "103", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "104", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/path/standard/record{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard.record", - "decorators": [] - } - ], - "parent": "PathParametersPathExpansion", - "parameters": [ - { - "$id": "105", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "106", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "107", - "type": { - "$id": "108", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard" - }, - { - "$id": "109", - "name": "PathParametersPathExpansionExplode", - "namespace": "Routes.PathParameters.PathExpansion.Explode", - "operations": [ - { - "$id": "110", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "111", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "112", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "113", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/path/explode/primitive{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.primitive", - "decorators": [] - }, - { - "$id": "114", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "115", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "116", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "117", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "118", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/path/explode/array{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.array", - "decorators": [] - }, - { - "$id": "119", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "120", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "121", - "kind": "dict", - "keyType": { - "$id": "122", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "123", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "124", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/path/explode/record{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode.record", - "decorators": [] - } - ], - "parent": "PathParametersPathExpansion", - "parameters": [ - { - "$id": "125", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "126", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "127", - "type": { - "$id": "128", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode" - }, - { - "$id": "129", - "name": "PathParametersLabelExpansion", - "namespace": "Routes.PathParameters.LabelExpansion", - "operations": [], - "parent": "PathParameters", - "parameters": [ - { - "$id": "130", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "131", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "132", - "type": { - "$id": "133", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion" - }, - { - "$id": "134", - "name": "PathParametersLabelExpansionStandard", - "namespace": "Routes.PathParameters.LabelExpansion.Standard", - "operations": [ - { - "$id": "135", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "136", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "138", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/label/standard/primitive{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.primitive", - "decorators": [] - }, - { - "$id": "139", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "140", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "141", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "143", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/label/standard/array{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.array", - "decorators": [] - }, - { - "$id": "144", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "145", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "146", - "kind": "dict", - "keyType": { - "$id": "147", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "148", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "149", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/label/standard/record{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard.record", - "decorators": [] - } - ], - "parent": "PathParametersLabelExpansion", - "parameters": [ - { - "$id": "150", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "151", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "152", - "type": { - "$id": "153", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard" - }, - { - "$id": "154", - "name": "PathParametersLabelExpansionExplode", - "namespace": "Routes.PathParameters.LabelExpansion.Explode", - "operations": [ - { - "$id": "155", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "156", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "158", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/label/explode/primitive{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.primitive", - "decorators": [] - }, - { - "$id": "159", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "160", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "161", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "162", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "163", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/label/explode/array{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.array", - "decorators": [] - }, - { - "$id": "164", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "165", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "166", - "kind": "dict", - "keyType": { - "$id": "167", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "168", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "169", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/label/explode/record{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode.record", - "decorators": [] - } - ], - "parent": "PathParametersLabelExpansion", - "parameters": [ - { - "$id": "170", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "171", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "172", - "type": { - "$id": "173", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode" - }, - { - "$id": "174", - "name": "PathParametersMatrixExpansion", - "namespace": "Routes.PathParameters.MatrixExpansion", - "operations": [], - "parent": "PathParameters", - "parameters": [ - { - "$id": "175", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "176", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "177", - "type": { - "$id": "178", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion" - }, - { - "$id": "179", - "name": "PathParametersMatrixExpansionStandard", - "namespace": "Routes.PathParameters.MatrixExpansion.Standard", - "operations": [ - { - "$id": "180", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "181", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "182", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "183", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/matrix/standard/primitive{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.primitive", - "decorators": [] - }, - { - "$id": "184", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "185", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "186", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "187", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "188", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/matrix/standard/array{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.array", - "decorators": [] - }, - { - "$id": "189", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "190", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "191", - "kind": "dict", - "keyType": { - "$id": "192", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "193", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "194", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/matrix/standard/record{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard.record", - "decorators": [] - } - ], - "parent": "PathParametersMatrixExpansion", - "parameters": [ - { - "$id": "195", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "196", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "197", - "type": { - "$id": "198", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard" - }, - { - "$id": "199", - "name": "PathParametersMatrixExpansionExplode", - "namespace": "Routes.PathParameters.MatrixExpansion.Explode", - "operations": [ - { - "$id": "200", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "201", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "202", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "203", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/matrix/explode/primitive{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.primitive", - "decorators": [] - }, - { - "$id": "204", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "205", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "206", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "207", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "208", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/matrix/explode/array{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.array", - "decorators": [] - }, - { - "$id": "209", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "210", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "211", - "kind": "dict", - "keyType": { - "$id": "212", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "213", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "location": "Path", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "214", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/path/matrix/explode/record{param}", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode.record", - "decorators": [] - } - ], - "parent": "PathParametersMatrixExpansion", - "parameters": [ - { - "$id": "215", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "216", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "217", - "type": { - "$id": "218", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode" - }, - { - "$id": "219", - "name": "QueryParameters", - "namespace": "Routes.QueryParameters", - "operations": [ - { - "$id": "220", - "name": "templateOnly", - "resourceName": "QueryParameters", - "accessibility": "public", - "parameters": [ - { - "$id": "221", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "222", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "223", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/template-only", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.templateOnly", - "decorators": [] - }, - { - "$id": "224", - "name": "explicit", - "resourceName": "QueryParameters", - "accessibility": "public", - "parameters": [ - { - "$id": "225", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "227", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/explicit", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.explicit", - "decorators": [] - }, - { - "$id": "228", - "name": "annotationOnly", - "resourceName": "QueryParameters", - "accessibility": "public", - "parameters": [ - { - "$id": "229", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "230", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "231", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/annotation-only", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.annotationOnly", - "decorators": [] - } - ], - "parent": "RoutesClient", - "parameters": [ - { - "$id": "232", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "233", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "234", - "type": { - "$id": "235", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters" - }, - { - "$id": "236", - "name": "QueryParametersQueryExpansion", - "namespace": "Routes.QueryParameters.QueryExpansion", - "operations": [], - "parent": "QueryParameters", - "parameters": [ - { - "$id": "237", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "238", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "239", - "type": { - "$id": "240", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion" - }, - { - "$id": "241", - "name": "QueryParametersQueryExpansionStandard", - "namespace": "Routes.QueryParameters.QueryExpansion.Standard", - "operations": [ - { - "$id": "242", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "243", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "244", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "245", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/query-expansion/standard/primitive", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.primitive", - "decorators": [] - }, - { - "$id": "246", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "247", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "248", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "249", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "250", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/query-expansion/standard/array", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.array", - "decorators": [] - }, - { - "$id": "251", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "252", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "253", - "kind": "dict", - "keyType": { - "$id": "254", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "255", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "256", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/query-expansion/standard/record", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard.record", - "decorators": [] - } - ], - "parent": "QueryParametersQueryExpansion", - "parameters": [ - { - "$id": "257", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "258", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "259", - "type": { - "$id": "260", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard" - }, - { - "$id": "261", - "name": "QueryParametersQueryExpansionExplode", - "namespace": "Routes.QueryParameters.QueryExpansion.Explode", - "operations": [ - { - "$id": "262", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "263", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "264", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "265", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/query-expansion/explode/primitive", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.primitive", - "decorators": [] - }, - { - "$id": "266", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "267", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "268", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "269", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "270", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/query-expansion/explode/array", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.array", - "decorators": [] - }, - { - "$id": "271", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "272", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "273", - "kind": "dict", - "keyType": { - "$id": "274", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "275", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "276", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/query-expansion/explode/record", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode.record", - "decorators": [] - } - ], - "parent": "QueryParametersQueryExpansion", - "parameters": [ - { - "$id": "277", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "278", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "279", - "type": { - "$id": "280", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode" - }, - { - "$id": "281", - "name": "QueryParametersQueryContinuation", - "namespace": "Routes.QueryParameters.QueryContinuation", - "operations": [], - "parent": "QueryParameters", - "parameters": [ - { - "$id": "282", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "283", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "284", - "type": { - "$id": "285", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation" - }, - { - "$id": "286", - "name": "QueryParametersQueryContinuationStandard", - "namespace": "Routes.QueryParameters.QueryContinuation.Standard", - "operations": [ - { - "$id": "287", - "name": "primitive", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "288", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "289", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "290", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/query-continuation/standard/primitive?fixed=true", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.primitive", - "decorators": [] - }, - { - "$id": "291", - "name": "array", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "292", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "293", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "294", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "295", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/query-continuation/standard/array?fixed=true", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.array", - "decorators": [] - }, - { - "$id": "296", - "name": "record", - "resourceName": "Standard", - "accessibility": "public", - "parameters": [ - { - "$id": "297", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "298", - "kind": "dict", - "keyType": { - "$id": "299", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "300", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "301", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/query-continuation/standard/record?fixed=true", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard.record", - "decorators": [] - } - ], - "parent": "QueryParametersQueryContinuation", - "parameters": [ - { - "$id": "302", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "303", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "304", - "type": { - "$id": "305", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard" - }, - { - "$id": "306", - "name": "QueryParametersQueryContinuationExplode", - "namespace": "Routes.QueryParameters.QueryContinuation.Explode", - "operations": [ - { - "$id": "307", - "name": "primitive", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "308", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "309", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "310", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/query-continuation/explode/primitive?fixed=true", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.primitive", - "decorators": [] - }, - { - "$id": "311", - "name": "array", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "312", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "313", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "314", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "315", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/query-continuation/explode/array?fixed=true", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.array", - "decorators": [] - }, - { - "$id": "316", - "name": "record", - "resourceName": "Explode", - "accessibility": "public", - "parameters": [ - { - "$id": "317", - "name": "param", - "nameInRequest": "param", - "type": { - "$id": "318", - "kind": "dict", - "keyType": { - "$id": "319", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "320", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": true, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "321", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/query/query-continuation/explode/record?fixed=true", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode.record", - "decorators": [] - } - ], - "parent": "QueryParametersQueryContinuation", - "parameters": [ - { - "$id": "322", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "323", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "324", - "type": { - "$id": "325", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode" - }, - { - "$id": "326", - "name": "InInterface", - "namespace": "Routes", - "operations": [ - { - "$id": "327", - "name": "fixed", - "resourceName": "InInterface", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "328", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/routes/in-interface/fixed", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Routes.InInterface.fixed", - "decorators": [] - } - ], - "parent": "RoutesClient", - "parameters": [ - { - "$id": "329", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "330", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "331", - "type": { - "$id": "332", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Routes.InInterface" + ] } ] } 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 6cbaed42d4c..0f96c5c78cf 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 @@ -46,6 +46,7 @@ "clients": [ { "$id": "7", + "kind": "client", "name": "JsonClient", "namespace": "Serialization.EncodedName.Json", "doc": "Encoded names", @@ -83,182 +84,189 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Serialization.EncodedName.Json" - }, - { - "$id": "12", - "name": "Property", - "namespace": "Serialization.EncodedName.Json.Property", - "operations": [ + "crossLanguageDefinitionId": "Serialization.EncodedName.Json", + "apiVersions": [], + "children": [ { - "$id": "13", - "name": "send", - "resourceName": "Property", - "accessibility": "public", - "parameters": [ + "$id": "12", + "kind": "client", + "name": "Property", + "namespace": "Serialization.EncodedName.Json.Property", + "operations": [ { - "$id": "14", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "15", - "kind": "constant", - "valueType": { - "$id": "16", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "13", + "name": "send", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "14", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "15", + "kind": "constant", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "17", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "18", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/serialization/encoded-name/json/property", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send", + "decorators": [] }, { - "$id": "17", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "2" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "18", - "statusCodes": [ - 204 + "$id": "19", + "name": "get", + "resourceName": "Property", + "accessibility": "public", + "parameters": [ + { + "$id": "20", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "21", + "kind": "constant", + "valueType": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "23", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/serialization/encoded-name/json/property", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.get", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/serialization/encoded-name/json/property", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send", - "decorators": [] - }, - { - "$id": "19", - "name": "get", - "resourceName": "Property", - "accessibility": "public", "parameters": [ { - "$id": "20", - "name": "accept", - "nameInRequest": "Accept", + "$id": "24", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "21", - "kind": "constant", - "valueType": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "25", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "23", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "2" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "26", + "type": { + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/serialization/encoded-name/json/property", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.get", - "decorators": [] - } - ], - "parent": "JsonClient", - "parameters": [ - { - "$id": "24", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "25", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "26", - "type": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property", + "apiVersions": [], + "parent": { + "$ref": "7" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json index 3226db60d96..f99fa2c365f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json @@ -7,6 +7,7 @@ "clients": [ { "$id": "2", + "kind": "client", "name": "NotDefinedClient", "namespace": "Server.Endpoint.NotDefined", "doc": "Illustrates server doesn't define endpoint. Client should automatically add an endpoint to let user pass in.", @@ -60,7 +61,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Server.Endpoint.NotDefined" + "crossLanguageDefinitionId": "Server.Endpoint.NotDefined", + "apiVersions": [] } ] } 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 fe305d0391d..bbcd225177c 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 @@ -49,6 +49,7 @@ "clients": [ { "$id": "6", + "kind": "client", "name": "MultipleClient", "namespace": "Server.Path.Multiple", "operations": [ @@ -175,7 +176,10 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Server.Path.Multiple" + "crossLanguageDefinitionId": "Server.Path.Multiple", + "apiVersions": [ + "v1.0" + ] } ] } diff --git a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json index 87fa8da62d6..00c99216b7f 100644 --- a/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json +++ b/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json @@ -7,6 +7,7 @@ "clients": [ { "$id": "2", + "kind": "client", "name": "SingleClient", "namespace": "Server.Path.Single", "doc": "Illustrates server with a single path parameter @server", @@ -60,7 +61,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Server.Path.Single" + "crossLanguageDefinitionId": "Server.Path.Single", + "apiVersions": [] } ] } 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 83123a0656e..10141179518 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 @@ -7,6 +7,7 @@ "clients": [ { "$id": "2", + "kind": "client", "name": "NotVersionedClient", "namespace": "Server.Versions.NotVersioned", "doc": "Illustrates not-versioned server.", @@ -154,7 +155,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Server.Versions.NotVersioned" + "crossLanguageDefinitionId": "Server.Versions.NotVersioned", + "apiVersions": [] } ] } 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 a99c102d0ef..e4ec29413e5 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 @@ -68,6 +68,7 @@ "clients": [ { "$id": "8", + "kind": "client", "name": "VersionedClient", "namespace": "Server.Versions.Versioned", "doc": "Illustrates versioned server.", @@ -292,7 +293,11 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Server.Versions.Versioned" + "crossLanguageDefinitionId": "Server.Versions.Versioned", + "apiVersions": [ + "2021-01-01-preview", + "2022-12-01-preview" + ] } ] } 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 bc4c4b431c6..a43ea8f56a4 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 @@ -7,6 +7,7 @@ "clients": [ { "$id": "2", + "kind": "client", "name": "ConditionalRequestClient", "namespace": "SpecialHeaders.ConditionalRequest", "doc": "Illustrates conditional request headers", @@ -257,7 +258,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest" + "crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest", + "apiVersions": [] } ] } 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 76eaf5fe5bf..2a92de609df 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 @@ -62,6 +62,7 @@ "clients": [ { "$id": "8", + "kind": "client", "name": "RepeatabilityClient", "namespace": "SpecialHeaders.Repeatability", "doc": "Illustrates OASIS repeatability headers", @@ -187,7 +188,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "SpecialHeaders.Repeatability" + "crossLanguageDefinitionId": "SpecialHeaders.Repeatability", + "apiVersions": [] } ] } 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 57c1650bcfd..47a770fa70b 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 @@ -1266,6 +1266,7 @@ "clients": [ { "$id": "172", + "kind": "client", "name": "SpecialWordsClient", "namespace": "SpecialWords", "doc": "Scenarios to verify that reserved words can be used in service and generators will handle it appropriately.\n\nCurrent list of special words\n```txt\nand\nas\nassert\nasync\nawait\nbreak\nclass\nconstructor\ncontinue\ndef\ndel\nelif\nelse\nexcept\nexec\nfinally\nfor\nfrom\nglobal\nif\nimport\nin\nis\nlambda\nnot\nor\npass\nraise\nreturn\ntry\nwhile\nwith\nyield\n```", @@ -1303,5118 +1304,5137 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "SpecialWords" - }, - { - "$id": "177", - "name": "Models", - "namespace": "SpecialWords.Models", - "doc": "Verify model names", - "operations": [ - { - "$id": "178", - "name": "withAnd", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ + "crossLanguageDefinitionId": "SpecialWords", + "apiVersions": [], + "children": [ + { + "$id": "177", + "kind": "client", + "name": "Models", + "namespace": "SpecialWords.Models", + "doc": "Verify model names", + "operations": [ + { + "$id": "178", + "name": "withAnd", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "179", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "180", + "kind": "constant", + "valueType": { + "$id": "181", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "182", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "7" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "183", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/and", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withAnd", + "decorators": [] + }, { - "$id": "179", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "180", - "kind": "constant", - "valueType": { - "$id": "181", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "184", + "name": "withAs", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "185", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "186", + "kind": "constant", + "valueType": { + "$id": "187", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "188", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "12" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "189", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/as", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withAs", + "decorators": [] }, { - "$id": "182", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "7" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "190", + "name": "withAssert", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "191", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "192", + "kind": "constant", + "valueType": { + "$id": "193", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "194", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "17" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "195", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/assert", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withAssert", + "decorators": [] + }, { - "$id": "183", - "statusCodes": [ - 204 + "$id": "196", + "name": "withAsync", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "197", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "198", + "kind": "constant", + "valueType": { + "$id": "199", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "200", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "22" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/and", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withAnd", - "decorators": [] - }, - { - "$id": "184", - "name": "withAs", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "201", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/async", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withAsync", + "decorators": [] + }, { - "$id": "185", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "186", - "kind": "constant", - "valueType": { - "$id": "187", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "202", + "name": "withAwait", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "203", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "204", + "kind": "constant", + "valueType": { + "$id": "205", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "206", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "27" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "207", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/await", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withAwait", + "decorators": [] }, { - "$id": "188", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "12" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "208", + "name": "withBreak", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "209", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "210", + "kind": "constant", + "valueType": { + "$id": "211", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "212", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "32" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "213", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/break", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withBreak", + "decorators": [] + }, { - "$id": "189", - "statusCodes": [ - 204 + "$id": "214", + "name": "withClass", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "215", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "216", + "kind": "constant", + "valueType": { + "$id": "217", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "218", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "37" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/as", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withAs", - "decorators": [] - }, - { - "$id": "190", - "name": "withAssert", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "219", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/class", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withClass", + "decorators": [] + }, { - "$id": "191", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "192", - "kind": "constant", - "valueType": { - "$id": "193", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "220", + "name": "withConstructor", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "221", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "222", + "kind": "constant", + "valueType": { + "$id": "223", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "224", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "42" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "225", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/constructor", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor", + "decorators": [] }, { - "$id": "194", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "17" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "226", + "name": "withContinue", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "227", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "228", + "kind": "constant", + "valueType": { + "$id": "229", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "230", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "47" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "231", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/continue", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withContinue", + "decorators": [] + }, { - "$id": "195", - "statusCodes": [ - 204 + "$id": "232", + "name": "withDef", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "233", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "234", + "kind": "constant", + "valueType": { + "$id": "235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "236", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "52" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/assert", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withAssert", - "decorators": [] - }, - { - "$id": "196", - "name": "withAsync", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "237", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/def", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withDef", + "decorators": [] + }, { - "$id": "197", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "198", - "kind": "constant", - "valueType": { - "$id": "199", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "238", + "name": "withDel", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "239", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "240", + "kind": "constant", + "valueType": { + "$id": "241", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "242", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "57" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "243", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/del", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withDel", + "decorators": [] }, { - "$id": "200", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "22" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "244", + "name": "withElif", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "245", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "246", + "kind": "constant", + "valueType": { + "$id": "247", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "248", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "62" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "249", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/elif", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withElif", + "decorators": [] + }, { - "$id": "201", - "statusCodes": [ - 204 + "$id": "250", + "name": "withElse", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "251", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "252", + "kind": "constant", + "valueType": { + "$id": "253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "254", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "67" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/async", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withAsync", - "decorators": [] - }, - { - "$id": "202", - "name": "withAwait", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "255", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/else", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withElse", + "decorators": [] + }, { - "$id": "203", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "204", - "kind": "constant", - "valueType": { - "$id": "205", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "256", + "name": "withExcept", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "257", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "258", + "kind": "constant", + "valueType": { + "$id": "259", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "260", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "72" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "261", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/except", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withExcept", + "decorators": [] }, { - "$id": "206", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "27" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "262", + "name": "withExec", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "263", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "264", + "kind": "constant", + "valueType": { + "$id": "265", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "266", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "77" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "267", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/exec", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withExec", + "decorators": [] + }, { - "$id": "207", - "statusCodes": [ - 204 + "$id": "268", + "name": "withFinally", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "269", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "270", + "kind": "constant", + "valueType": { + "$id": "271", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "272", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "82" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/await", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withAwait", - "decorators": [] - }, - { - "$id": "208", - "name": "withBreak", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "273", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/finally", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withFinally", + "decorators": [] + }, { - "$id": "209", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "210", - "kind": "constant", - "valueType": { - "$id": "211", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "274", + "name": "withFor", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "275", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "276", + "kind": "constant", + "valueType": { + "$id": "277", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "278", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "87" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "279", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/for", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withFor", + "decorators": [] }, { - "$id": "212", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "32" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "280", + "name": "withFrom", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "281", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "282", + "kind": "constant", + "valueType": { + "$id": "283", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "284", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "92" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "285", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/from", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withFrom", + "decorators": [] + }, { - "$id": "213", - "statusCodes": [ - 204 + "$id": "286", + "name": "withGlobal", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "287", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "288", + "kind": "constant", + "valueType": { + "$id": "289", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "290", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "97" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/break", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withBreak", - "decorators": [] - }, - { - "$id": "214", - "name": "withClass", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "291", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/global", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal", + "decorators": [] + }, { - "$id": "215", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "216", - "kind": "constant", - "valueType": { - "$id": "217", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "292", + "name": "withIf", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "293", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "294", + "kind": "constant", + "valueType": { + "$id": "295", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "296", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "102" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "297", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/if", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withIf", + "decorators": [] }, { - "$id": "218", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "37" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "298", + "name": "withImport", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "299", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "300", + "kind": "constant", + "valueType": { + "$id": "301", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "302", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "107" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "303", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/import", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withImport", + "decorators": [] + }, { - "$id": "219", - "statusCodes": [ - 204 + "$id": "304", + "name": "withIn", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "305", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "306", + "kind": "constant", + "valueType": { + "$id": "307", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "308", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "112" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/class", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withClass", - "decorators": [] - }, - { - "$id": "220", - "name": "withConstructor", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "309", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/in", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withIn", + "decorators": [] + }, { - "$id": "221", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "222", - "kind": "constant", - "valueType": { - "$id": "223", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "310", + "name": "withIs", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "311", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "312", + "kind": "constant", + "valueType": { + "$id": "313", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "314", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "117" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "315", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/is", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withIs", + "decorators": [] }, { - "$id": "224", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "42" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "225", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/constructor", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withConstructor", - "decorators": [] - }, - { - "$id": "226", - "name": "withContinue", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "227", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "228", - "kind": "constant", - "valueType": { - "$id": "229", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "316", + "name": "withLambda", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "317", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "318", + "kind": "constant", + "valueType": { + "$id": "319", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "230", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "47" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "231", - "statusCodes": [ - 204 + { + "$id": "320", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "122" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/continue", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withContinue", - "decorators": [] - }, - { - "$id": "232", - "name": "withDef", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "233", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "234", - "kind": "constant", - "valueType": { - "$id": "235", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "236", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "52" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "237", - "statusCodes": [ - 204 + "responses": [ + { + "$id": "321", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/def", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withDef", - "decorators": [] - }, - { - "$id": "238", - "name": "withDel", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "239", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "240", - "kind": "constant", - "valueType": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "242", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "57" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "243", - "statusCodes": [ - 204 + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/lambda", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/del", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withDel", - "decorators": [] - }, - { - "$id": "244", - "name": "withElif", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "245", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "246", - "kind": "constant", - "valueType": { - "$id": "247", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withLambda", + "decorators": [] }, { - "$id": "248", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "62" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "249", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/elif", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withElif", - "decorators": [] - }, - { - "$id": "250", - "name": "withElse", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "251", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "252", - "kind": "constant", - "valueType": { - "$id": "253", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "322", + "name": "withNot", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "323", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "324", + "kind": "constant", + "valueType": { + "$id": "325", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "254", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "67" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "255", - "statusCodes": [ - 204 + { + "$id": "326", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "127" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/else", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withElse", - "decorators": [] - }, - { - "$id": "256", - "name": "withExcept", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "257", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "258", - "kind": "constant", - "valueType": { - "$id": "259", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "260", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "72" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "261", - "statusCodes": [ - 204 + "responses": [ + { + "$id": "327", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/except", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withExcept", - "decorators": [] - }, - { - "$id": "262", - "name": "withExec", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/not", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withNot", + "decorators": [] + }, { - "$id": "263", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "264", - "kind": "constant", - "valueType": { - "$id": "265", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "328", + "name": "withOr", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "329", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "330", + "kind": "constant", + "valueType": { + "$id": "331", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "332", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "132" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "333", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/or", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withOr", + "decorators": [] }, { - "$id": "266", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "77" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "267", - "statusCodes": [ - 204 + "$id": "334", + "name": "withPass", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "335", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "336", + "kind": "constant", + "valueType": { + "$id": "337", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "338", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "137" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/exec", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withExec", - "decorators": [] - }, - { - "$id": "268", - "name": "withFinally", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "339", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/pass", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withPass", + "decorators": [] + }, { - "$id": "269", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "270", - "kind": "constant", - "valueType": { - "$id": "271", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "340", + "name": "withRaise", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "341", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "342", + "kind": "constant", + "valueType": { + "$id": "343", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "344", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "142" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "345", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/raise", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withRaise", + "decorators": [] }, { - "$id": "272", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "82" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "273", - "statusCodes": [ - 204 + "$id": "346", + "name": "withReturn", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "347", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "348", + "kind": "constant", + "valueType": { + "$id": "349", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "350", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "147" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/finally", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withFinally", - "decorators": [] - }, - { - "$id": "274", - "name": "withFor", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "351", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/return", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withReturn", + "decorators": [] + }, { - "$id": "275", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "276", - "kind": "constant", - "valueType": { - "$id": "277", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "352", + "name": "withTry", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "353", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "354", + "kind": "constant", + "valueType": { + "$id": "355", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "356", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "152" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "357", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/try", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withTry", + "decorators": [] }, { - "$id": "278", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "87" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "279", - "statusCodes": [ - 204 + "$id": "358", + "name": "withWhile", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "359", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "360", + "kind": "constant", + "valueType": { + "$id": "361", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "362", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "157" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/for", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withFor", - "decorators": [] - }, - { - "$id": "280", - "name": "withFrom", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "363", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/while", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withWhile", + "decorators": [] + }, { - "$id": "281", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "282", - "kind": "constant", - "valueType": { - "$id": "283", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "364", + "name": "withWith", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "365", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "366", + "kind": "constant", + "valueType": { + "$id": "367", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "284", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "92" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "285", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/from", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withFrom", - "decorators": [] - }, - { - "$id": "286", - "name": "withGlobal", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "287", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "288", - "kind": "constant", - "valueType": { - "$id": "289", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "290", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "97" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "291", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/global", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withGlobal", - "decorators": [] - }, - { - "$id": "292", - "name": "withIf", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "293", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "294", - "kind": "constant", - "valueType": { - "$id": "295", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "296", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "102" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "297", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/if", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withIf", - "decorators": [] - }, - { - "$id": "298", - "name": "withImport", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "299", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "300", - "kind": "constant", - "valueType": { - "$id": "301", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "302", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "107" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "303", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/import", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withImport", - "decorators": [] - }, - { - "$id": "304", - "name": "withIn", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "305", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "306", - "kind": "constant", - "valueType": { - "$id": "307", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "308", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "112" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "309", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/in", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withIn", - "decorators": [] - }, - { - "$id": "310", - "name": "withIs", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "311", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "312", - "kind": "constant", - "valueType": { - "$id": "313", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "314", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "117" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "315", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/is", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withIs", - "decorators": [] - }, - { - "$id": "316", - "name": "withLambda", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "317", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "318", - "kind": "constant", - "valueType": { - "$id": "319", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "320", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "122" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "321", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/lambda", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withLambda", - "decorators": [] - }, - { - "$id": "322", - "name": "withNot", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "323", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "324", - "kind": "constant", - "valueType": { - "$id": "325", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "326", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "127" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "327", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/not", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withNot", - "decorators": [] - }, - { - "$id": "328", - "name": "withOr", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "329", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "330", - "kind": "constant", - "valueType": { - "$id": "331", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "332", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "132" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "333", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/or", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withOr", - "decorators": [] - }, - { - "$id": "334", - "name": "withPass", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "335", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "336", - "kind": "constant", - "valueType": { - "$id": "337", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "338", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "137" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "339", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/pass", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withPass", - "decorators": [] - }, - { - "$id": "340", - "name": "withRaise", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "341", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "342", - "kind": "constant", - "valueType": { - "$id": "343", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "344", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "142" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "345", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/raise", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withRaise", - "decorators": [] - }, - { - "$id": "346", - "name": "withReturn", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "347", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "348", - "kind": "constant", - "valueType": { - "$id": "349", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "350", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "147" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "351", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/return", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withReturn", - "decorators": [] - }, - { - "$id": "352", - "name": "withTry", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "353", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "354", - "kind": "constant", - "valueType": { - "$id": "355", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "356", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "152" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "357", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/try", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withTry", - "decorators": [] - }, - { - "$id": "358", - "name": "withWhile", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "359", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "360", - "kind": "constant", - "valueType": { - "$id": "361", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "362", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "157" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "363", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/while", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withWhile", - "decorators": [] - }, - { - "$id": "364", - "name": "withWith", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "365", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "366", - "kind": "constant", - "valueType": { - "$id": "367", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "368", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "162" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "369", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/with", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withWith", - "decorators": [] - }, - { - "$id": "370", - "name": "withYield", - "resourceName": "Models", - "accessibility": "public", - "parameters": [ - { - "$id": "371", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "372", - "kind": "constant", - "valueType": { - "$id": "373", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "374", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "167" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "375", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/models/yield", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Models.withYield", - "decorators": [] - } - ], - "parent": "SpecialWordsClient", - "parameters": [ - { - "$id": "376", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "377", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "378", - "type": { - "$id": "379", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Models" - }, - { - "$id": "380", - "name": "ModelProperties", - "namespace": "SpecialWords.ModelProperties", - "doc": "Verify model names", - "operations": [ - { - "$id": "381", - "name": "sameAsModel", - "resourceName": "ModelProperties", - "accessibility": "public", - "parameters": [ - { - "$id": "382", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "383", - "kind": "constant", - "valueType": { - "$id": "384", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "385", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "2" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "386", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/special-words/model-properties/same-as-model", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel", - "decorators": [] - } - ], - "parent": "SpecialWordsClient", - "parameters": [ - { - "$id": "387", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "388", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "389", - "type": { - "$id": "390", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.ModelProperties" - }, - { - "$id": "391", - "name": "Operations", - "namespace": "SpecialWords", - "doc": "Test reserved words as operation name.", - "operations": [ - { - "$id": "392", - "name": "and", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "393", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/and", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.and", - "decorators": [] - }, - { - "$id": "394", - "name": "as", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "395", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/as", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.as", - "decorators": [] - }, - { - "$id": "396", - "name": "assert", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "397", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/assert", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.assert", - "decorators": [] - }, - { - "$id": "398", - "name": "async", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "399", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/async", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.async", - "decorators": [] - }, - { - "$id": "400", - "name": "await", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "401", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/await", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.await", - "decorators": [] - }, - { - "$id": "402", - "name": "break", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "403", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/break", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.break", - "decorators": [] - }, - { - "$id": "404", - "name": "class", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "405", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/class", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.class", - "decorators": [] - }, - { - "$id": "406", - "name": "constructor", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "407", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/constructor", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.constructor", - "decorators": [] - }, - { - "$id": "408", - "name": "continue", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "409", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/continue", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.continue", - "decorators": [] - }, - { - "$id": "410", - "name": "def", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "411", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/def", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.def", - "decorators": [] - }, - { - "$id": "412", - "name": "del", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "413", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/del", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.del", - "decorators": [] - }, - { - "$id": "414", - "name": "elif", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "415", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/elif", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.elif", - "decorators": [] - }, - { - "$id": "416", - "name": "else", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "417", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/else", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.else", - "decorators": [] - }, - { - "$id": "418", - "name": "except", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "419", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/except", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.except", - "decorators": [] - }, - { - "$id": "420", - "name": "exec", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "421", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/exec", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.exec", - "decorators": [] - }, - { - "$id": "422", - "name": "finally", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "423", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/finally", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.finally", - "decorators": [] - }, - { - "$id": "424", - "name": "for", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "425", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/for", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.for", - "decorators": [] - }, - { - "$id": "426", - "name": "from", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "427", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/from", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.from", - "decorators": [] - }, - { - "$id": "428", - "name": "global", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "429", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/global", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.global", - "decorators": [] - }, - { - "$id": "430", - "name": "if", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "431", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/if", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.if", - "decorators": [] - }, - { - "$id": "432", - "name": "import", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "433", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/import", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.import", - "decorators": [] - }, - { - "$id": "434", - "name": "in", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "435", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/in", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.in", - "decorators": [] - }, - { - "$id": "436", - "name": "is", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "437", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/is", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.is", - "decorators": [] - }, - { - "$id": "438", - "name": "lambda", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "439", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/lambda", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.lambda", - "decorators": [] - }, - { - "$id": "440", - "name": "not", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "441", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/not", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.not", - "decorators": [] - }, - { - "$id": "442", - "name": "or", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "443", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/or", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.or", - "decorators": [] - }, - { - "$id": "444", - "name": "pass", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "445", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/pass", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.pass", - "decorators": [] - }, - { - "$id": "446", - "name": "raise", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "447", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/raise", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.raise", - "decorators": [] - }, - { - "$id": "448", - "name": "return", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "449", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/return", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.return", - "decorators": [] - }, - { - "$id": "450", - "name": "try", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "451", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/try", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.try", - "decorators": [] - }, - { - "$id": "452", - "name": "while", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "453", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/while", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.while", - "decorators": [] - }, - { - "$id": "454", - "name": "with", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "455", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/with", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.with", - "decorators": [] - }, - { - "$id": "456", - "name": "yield", - "resourceName": "Operations", - "accessibility": "public", - "parameters": [], - "responses": [ - { - "$id": "457", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/operations/yield", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Operations.yield", - "decorators": [] - } - ], - "parent": "SpecialWordsClient", - "parameters": [ - { - "$id": "458", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "459", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "460", - "type": { - "$id": "461", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Operations" - }, - { - "$id": "462", - "name": "Parameters", - "namespace": "SpecialWords", - "doc": "Verify reserved words as parameter name.", - "operations": [ - { - "$id": "463", - "name": "withAnd", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "464", - "name": "and", - "nameInRequest": "and", - "type": { - "$id": "465", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "466", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/and", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAnd", - "decorators": [] - }, - { - "$id": "467", - "name": "withAs", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "468", - "name": "as", - "nameInRequest": "as", - "type": { - "$id": "469", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "470", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/as", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAs", - "decorators": [] - }, - { - "$id": "471", - "name": "withAssert", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "472", - "name": "assert", - "nameInRequest": "assert", - "type": { - "$id": "473", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "474", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/assert", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAssert", - "decorators": [] - }, - { - "$id": "475", - "name": "withAsync", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "476", - "name": "async", - "nameInRequest": "async", - "type": { - "$id": "477", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "478", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/async", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAsync", - "decorators": [] - }, - { - "$id": "479", - "name": "withAwait", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "480", - "name": "await", - "nameInRequest": "await", - "type": { - "$id": "481", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "482", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/await", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withAwait", - "decorators": [] - }, - { - "$id": "483", - "name": "withBreak", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "484", - "name": "break", - "nameInRequest": "break", - "type": { - "$id": "485", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "486", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/break", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withBreak", - "decorators": [] - }, - { - "$id": "487", - "name": "withClass", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "488", - "name": "class", - "nameInRequest": "class", - "type": { - "$id": "489", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "490", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/class", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withClass", - "decorators": [] - }, - { - "$id": "491", - "name": "withConstructor", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "492", - "name": "constructor", - "nameInRequest": "constructor", - "type": { - "$id": "493", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "494", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/constructor", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor", - "decorators": [] - }, - { - "$id": "495", - "name": "withContinue", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "496", - "name": "continue", - "nameInRequest": "continue", - "type": { - "$id": "497", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "498", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/continue", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withContinue", - "decorators": [] - }, - { - "$id": "499", - "name": "withDef", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "500", - "name": "def", - "nameInRequest": "def", - "type": { - "$id": "501", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "502", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/def", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withDef", - "decorators": [] - }, - { - "$id": "503", - "name": "withDel", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "504", - "name": "del", - "nameInRequest": "del", - "type": { - "$id": "505", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "506", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/del", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withDel", - "decorators": [] - }, - { - "$id": "507", - "name": "withElif", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "508", - "name": "elif", - "nameInRequest": "elif", - "type": { - "$id": "509", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "510", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/elif", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withElif", - "decorators": [] - }, - { - "$id": "511", - "name": "withElse", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "512", - "name": "else", - "nameInRequest": "else", - "type": { - "$id": "513", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "514", - "statusCodes": [ - 204 + { + "$id": "368", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "162" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/else", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withElse", - "decorators": [] - }, - { - "$id": "515", - "name": "withExcept", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "516", - "name": "except", - "nameInRequest": "except", - "type": { - "$id": "517", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "518", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/except", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withExcept", - "decorators": [] - }, - { - "$id": "519", - "name": "withExec", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ - { - "$id": "520", - "name": "exec", - "nameInRequest": "exec", - "type": { - "$id": "521", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "responses": [ + { + "$id": "369", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/with", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withWith", + "decorators": [] + }, { - "$id": "522", - "statusCodes": [ - 204 + "$id": "370", + "name": "withYield", + "resourceName": "Models", + "accessibility": "public", + "parameters": [ + { + "$id": "371", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "372", + "kind": "constant", + "valueType": { + "$id": "373", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "374", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "167" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "375", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/models/yield", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Models.withYield", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/exec", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withExec", - "decorators": [] - }, - { - "$id": "523", - "name": "withFinally", - "resourceName": "Parameters", - "accessibility": "public", "parameters": [ { - "$id": "524", - "name": "finally", - "nameInRequest": "finally", + "$id": "376", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "525", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "377", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Query", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "378", + "type": { + "$id": "379", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ - { - "$id": "526", - "statusCodes": [ - 204 + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.Models", + "apiVersions": [], + "parent": { + "$ref": "172" + } + }, + { + "$id": "380", + "kind": "client", + "name": "ModelProperties", + "namespace": "SpecialWords.ModelProperties", + "doc": "Verify model names", + "operations": [ + { + "$id": "381", + "name": "sameAsModel", + "resourceName": "ModelProperties", + "accessibility": "public", + "parameters": [ + { + "$id": "382", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "383", + "kind": "constant", + "valueType": { + "$id": "384", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "385", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "386", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/special-words/model-properties/same-as-model", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.ModelProperties.sameAsModel", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/finally", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withFinally", - "decorators": [] - }, - { - "$id": "527", - "name": "withFor", - "resourceName": "Parameters", - "accessibility": "public", "parameters": [ { - "$id": "528", - "name": "for", - "nameInRequest": "for", + "$id": "387", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "529", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "388", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Query", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "530", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "389", + "type": { + "$id": "390", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/for", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withFor", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.ModelProperties", + "apiVersions": [], + "parent": { + "$ref": "172" + } }, { - "$id": "531", - "name": "withFrom", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "$id": "391", + "kind": "client", + "name": "Operations", + "namespace": "SpecialWords", + "doc": "Test reserved words as operation name.", + "operations": [ { - "$id": "532", - "name": "from", - "nameInRequest": "from", - "type": { - "$id": "533", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "392", + "name": "and", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "393", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/and", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.and", + "decorators": [] + }, { - "$id": "534", - "statusCodes": [ - 204 + "$id": "394", + "name": "as", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "395", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/from", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withFrom", - "decorators": [] - }, - { - "$id": "535", - "name": "withGlobal", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/as", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.as", + "decorators": [] + }, { - "$id": "536", - "name": "global", - "nameInRequest": "global", - "type": { - "$id": "537", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "396", + "name": "assert", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "397", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/assert", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.assert", + "decorators": [] + }, { - "$id": "538", - "statusCodes": [ - 204 + "$id": "398", + "name": "async", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "399", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/global", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withGlobal", - "decorators": [] - }, - { - "$id": "539", - "name": "withIf", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/async", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.async", + "decorators": [] + }, { - "$id": "540", - "name": "if", - "nameInRequest": "if", - "type": { - "$id": "541", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "400", + "name": "await", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "401", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/await", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.await", + "decorators": [] + }, { - "$id": "542", - "statusCodes": [ - 204 + "$id": "402", + "name": "break", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "403", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/if", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withIf", - "decorators": [] - }, - { - "$id": "543", - "name": "withImport", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/break", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.break", + "decorators": [] + }, + { + "$id": "404", + "name": "class", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "405", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/class", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.class", + "decorators": [] + }, + { + "$id": "406", + "name": "constructor", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "407", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/constructor", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.constructor", + "decorators": [] + }, + { + "$id": "408", + "name": "continue", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "409", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/continue", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.continue", + "decorators": [] + }, + { + "$id": "410", + "name": "def", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "411", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/def", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.def", + "decorators": [] + }, + { + "$id": "412", + "name": "del", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "413", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/del", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.del", + "decorators": [] + }, + { + "$id": "414", + "name": "elif", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "415", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/elif", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.elif", + "decorators": [] + }, + { + "$id": "416", + "name": "else", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "417", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/else", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.else", + "decorators": [] + }, + { + "$id": "418", + "name": "except", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "419", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/except", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.except", + "decorators": [] + }, + { + "$id": "420", + "name": "exec", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "421", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/exec", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.exec", + "decorators": [] + }, + { + "$id": "422", + "name": "finally", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "423", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/finally", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.finally", + "decorators": [] + }, + { + "$id": "424", + "name": "for", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "425", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/for", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.for", + "decorators": [] + }, + { + "$id": "426", + "name": "from", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "427", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/from", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.from", + "decorators": [] + }, + { + "$id": "428", + "name": "global", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "429", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/global", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.global", + "decorators": [] + }, + { + "$id": "430", + "name": "if", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "431", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/if", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.if", + "decorators": [] + }, { - "$id": "544", + "$id": "432", "name": "import", - "nameInRequest": "import", - "type": { - "$id": "545", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "433", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/import", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.import", + "decorators": [] + }, + { + "$id": "434", + "name": "in", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "435", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/in", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.in", + "decorators": [] + }, + { + "$id": "436", + "name": "is", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "437", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/is", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.is", + "decorators": [] + }, + { + "$id": "438", + "name": "lambda", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "439", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/lambda", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.lambda", + "decorators": [] + }, + { + "$id": "440", + "name": "not", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "441", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/not", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.not", + "decorators": [] + }, + { + "$id": "442", + "name": "or", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "443", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/or", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.or", + "decorators": [] + }, + { + "$id": "444", + "name": "pass", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "445", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/pass", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.pass", + "decorators": [] + }, + { + "$id": "446", + "name": "raise", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "447", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/raise", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.raise", + "decorators": [] + }, + { + "$id": "448", + "name": "return", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "449", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/return", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.return", + "decorators": [] + }, { - "$id": "546", - "statusCodes": [ - 204 + "$id": "450", + "name": "try", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "451", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/try", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.try", + "decorators": [] + }, + { + "$id": "452", + "name": "while", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "453", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/while", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.while", + "decorators": [] + }, + { + "$id": "454", + "name": "with", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "455", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/with", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.with", + "decorators": [] + }, + { + "$id": "456", + "name": "yield", + "resourceName": "Operations", + "accessibility": "public", + "parameters": [], + "responses": [ + { + "$id": "457", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/operations/yield", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Operations.yield", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/import", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withImport", - "decorators": [] - }, - { - "$id": "547", - "name": "withIn", - "resourceName": "Parameters", - "accessibility": "public", "parameters": [ { - "$id": "548", - "name": "in", - "nameInRequest": "in", + "$id": "458", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "549", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "459", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Query", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "460", + "type": { + "$id": "461", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.Operations", + "apiVersions": [], + "parent": { + "$ref": "172" + } + }, + { + "$id": "462", + "kind": "client", + "name": "Parameters", + "namespace": "SpecialWords", + "doc": "Verify reserved words as parameter name.", + "operations": [ + { + "$id": "463", + "name": "withAnd", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "464", + "name": "and", + "nameInRequest": "and", + "type": { + "$id": "465", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "466", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/and", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAnd", + "decorators": [] + }, + { + "$id": "467", + "name": "withAs", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "468", + "name": "as", + "nameInRequest": "as", + "type": { + "$id": "469", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "470", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/as", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAs", + "decorators": [] + }, + { + "$id": "471", + "name": "withAssert", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "472", + "name": "assert", + "nameInRequest": "assert", + "type": { + "$id": "473", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "474", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/assert", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAssert", + "decorators": [] + }, + { + "$id": "475", + "name": "withAsync", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "476", + "name": "async", + "nameInRequest": "async", + "type": { + "$id": "477", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "478", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/async", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAsync", + "decorators": [] + }, + { + "$id": "479", + "name": "withAwait", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "480", + "name": "await", + "nameInRequest": "await", + "type": { + "$id": "481", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "482", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/await", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withAwait", + "decorators": [] + }, + { + "$id": "483", + "name": "withBreak", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "484", + "name": "break", + "nameInRequest": "break", + "type": { + "$id": "485", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "486", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/break", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withBreak", + "decorators": [] + }, + { + "$id": "487", + "name": "withClass", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "488", + "name": "class", + "nameInRequest": "class", + "type": { + "$id": "489", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "490", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/class", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withClass", + "decorators": [] + }, + { + "$id": "491", + "name": "withConstructor", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "492", + "name": "constructor", + "nameInRequest": "constructor", + "type": { + "$id": "493", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "494", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/constructor", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withConstructor", + "decorators": [] + }, + { + "$id": "495", + "name": "withContinue", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "496", + "name": "continue", + "nameInRequest": "continue", + "type": { + "$id": "497", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "498", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/continue", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withContinue", + "decorators": [] + }, + { + "$id": "499", + "name": "withDef", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "500", + "name": "def", + "nameInRequest": "def", + "type": { + "$id": "501", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "502", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/def", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withDef", + "decorators": [] + }, { - "$id": "550", - "statusCodes": [ - 204 + "$id": "503", + "name": "withDel", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "504", + "name": "del", + "nameInRequest": "del", + "type": { + "$id": "505", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/in", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withIn", - "decorators": [] - }, - { - "$id": "551", - "name": "withIs", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "506", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/del", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withDel", + "decorators": [] + }, { - "$id": "552", - "name": "is", - "nameInRequest": "is", - "type": { - "$id": "553", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "507", + "name": "withElif", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "508", + "name": "elif", + "nameInRequest": "elif", + "type": { + "$id": "509", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "510", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/elif", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withElif", + "decorators": [] + }, { - "$id": "554", - "statusCodes": [ - 204 + "$id": "511", + "name": "withElse", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "512", + "name": "else", + "nameInRequest": "else", + "type": { + "$id": "513", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/is", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withIs", - "decorators": [] - }, - { - "$id": "555", - "name": "withLambda", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "514", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/else", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withElse", + "decorators": [] + }, { - "$id": "556", - "name": "lambda", - "nameInRequest": "lambda", - "type": { - "$id": "557", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "515", + "name": "withExcept", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "516", + "name": "except", + "nameInRequest": "except", + "type": { + "$id": "517", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "518", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/except", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withExcept", + "decorators": [] + }, { - "$id": "558", - "statusCodes": [ - 204 + "$id": "519", + "name": "withExec", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "520", + "name": "exec", + "nameInRequest": "exec", + "type": { + "$id": "521", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/lambda", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withLambda", - "decorators": [] - }, - { - "$id": "559", - "name": "withNot", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "522", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/exec", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withExec", + "decorators": [] + }, { - "$id": "560", - "name": "not", - "nameInRequest": "not", - "type": { - "$id": "561", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "523", + "name": "withFinally", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "524", + "name": "finally", + "nameInRequest": "finally", + "type": { + "$id": "525", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "526", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/finally", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withFinally", + "decorators": [] + }, { - "$id": "562", - "statusCodes": [ - 204 + "$id": "527", + "name": "withFor", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "528", + "name": "for", + "nameInRequest": "for", + "type": { + "$id": "529", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/not", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withNot", - "decorators": [] - }, - { - "$id": "563", - "name": "withOr", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "530", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/for", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withFor", + "decorators": [] + }, { - "$id": "564", - "name": "or", - "nameInRequest": "or", - "type": { - "$id": "565", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "531", + "name": "withFrom", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "532", + "name": "from", + "nameInRequest": "from", + "type": { + "$id": "533", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "534", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/from", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withFrom", + "decorators": [] + }, { - "$id": "566", - "statusCodes": [ - 204 + "$id": "535", + "name": "withGlobal", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "536", + "name": "global", + "nameInRequest": "global", + "type": { + "$id": "537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/or", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withOr", - "decorators": [] - }, - { - "$id": "567", - "name": "withPass", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "538", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/global", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withGlobal", + "decorators": [] + }, { - "$id": "568", - "name": "pass", - "nameInRequest": "pass", - "type": { - "$id": "569", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "539", + "name": "withIf", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "540", + "name": "if", + "nameInRequest": "if", + "type": { + "$id": "541", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "542", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/if", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withIf", + "decorators": [] + }, { - "$id": "570", - "statusCodes": [ - 204 + "$id": "543", + "name": "withImport", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "544", + "name": "import", + "nameInRequest": "import", + "type": { + "$id": "545", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/pass", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withPass", - "decorators": [] - }, - { - "$id": "571", - "name": "withRaise", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "546", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/import", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withImport", + "decorators": [] + }, { - "$id": "572", - "name": "raise", - "nameInRequest": "raise", - "type": { - "$id": "573", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "547", + "name": "withIn", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "548", + "name": "in", + "nameInRequest": "in", + "type": { + "$id": "549", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "550", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/in", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withIn", + "decorators": [] + }, { - "$id": "574", - "statusCodes": [ - 204 + "$id": "551", + "name": "withIs", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "552", + "name": "is", + "nameInRequest": "is", + "type": { + "$id": "553", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/raise", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withRaise", - "decorators": [] - }, - { - "$id": "575", - "name": "withReturn", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "554", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/is", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withIs", + "decorators": [] + }, { - "$id": "576", - "name": "return", - "nameInRequest": "return", - "type": { - "$id": "577", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "555", + "name": "withLambda", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "556", + "name": "lambda", + "nameInRequest": "lambda", + "type": { + "$id": "557", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "558", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/lambda", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withLambda", + "decorators": [] + }, { - "$id": "578", - "statusCodes": [ - 204 + "$id": "559", + "name": "withNot", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "560", + "name": "not", + "nameInRequest": "not", + "type": { + "$id": "561", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/return", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withReturn", - "decorators": [] - }, - { - "$id": "579", - "name": "withTry", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "562", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/not", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withNot", + "decorators": [] + }, { - "$id": "580", - "name": "try", - "nameInRequest": "try", - "type": { - "$id": "581", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "563", + "name": "withOr", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "564", + "name": "or", + "nameInRequest": "or", + "type": { + "$id": "565", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "566", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/or", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withOr", + "decorators": [] + }, { - "$id": "582", - "statusCodes": [ - 204 + "$id": "567", + "name": "withPass", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "568", + "name": "pass", + "nameInRequest": "pass", + "type": { + "$id": "569", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/try", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withTry", - "decorators": [] - }, - { - "$id": "583", - "name": "withWhile", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "570", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/pass", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withPass", + "decorators": [] + }, { - "$id": "584", - "name": "while", - "nameInRequest": "while", - "type": { - "$id": "585", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "571", + "name": "withRaise", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "572", + "name": "raise", + "nameInRequest": "raise", + "type": { + "$id": "573", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "574", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/raise", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withRaise", + "decorators": [] + }, { - "$id": "586", - "statusCodes": [ - 204 + "$id": "575", + "name": "withReturn", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "576", + "name": "return", + "nameInRequest": "return", + "type": { + "$id": "577", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/while", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withWhile", - "decorators": [] - }, - { - "$id": "587", - "name": "withWith", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "578", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/return", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withReturn", + "decorators": [] + }, { - "$id": "588", - "name": "with", - "nameInRequest": "with", - "type": { - "$id": "589", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "579", + "name": "withTry", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "580", + "name": "try", + "nameInRequest": "try", + "type": { + "$id": "581", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "582", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/try", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withTry", + "decorators": [] + }, { - "$id": "590", - "statusCodes": [ - 204 + "$id": "583", + "name": "withWhile", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "584", + "name": "while", + "nameInRequest": "while", + "type": { + "$id": "585", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/with", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withWith", - "decorators": [] - }, - { - "$id": "591", - "name": "withYield", - "resourceName": "Parameters", - "accessibility": "public", - "parameters": [ + "responses": [ + { + "$id": "586", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/while", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withWhile", + "decorators": [] + }, { - "$id": "592", - "name": "yield", - "nameInRequest": "yield", - "type": { - "$id": "593", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "location": "Query", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "587", + "name": "withWith", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "588", + "name": "with", + "nameInRequest": "with", + "type": { + "$id": "589", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "590", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/with", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withWith", + "decorators": [] + }, + { + "$id": "591", + "name": "withYield", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "592", + "name": "yield", + "nameInRequest": "yield", + "type": { + "$id": "593", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "594", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/yield", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withYield", + "decorators": [] + }, { - "$id": "594", - "statusCodes": [ - 204 + "$id": "595", + "name": "withCancellationToken", + "resourceName": "Parameters", + "accessibility": "public", + "parameters": [ + { + "$id": "596", + "name": "cancellationToken", + "nameInRequest": "cancellationToken", + "type": { + "$id": "597", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "598", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/special-words/parameters/cancellationToken", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "SpecialWords.Parameters.withCancellationToken", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/yield", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withYield", - "decorators": [] - }, - { - "$id": "595", - "name": "withCancellationToken", - "resourceName": "Parameters", - "accessibility": "public", "parameters": [ { - "$id": "596", - "name": "cancellationToken", - "nameInRequest": "cancellationToken", + "$id": "599", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "597", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "600", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Query", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "598", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "601", + "type": { + "$id": "602", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/special-words/parameters/cancellationToken", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "SpecialWords.Parameters.withCancellationToken", - "decorators": [] - } - ], - "parent": "SpecialWordsClient", - "parameters": [ - { - "$id": "599", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "600", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "601", - "type": { - "$id": "602", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "SpecialWords.Parameters", + "apiVersions": [], + "parent": { + "$ref": "172" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "SpecialWords.Parameters" + ] } ] } 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 eb2e2e9db5f..c9b17d4c07a 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 @@ -76,6 +76,7 @@ "clients": [ { "$id": "11", + "kind": "client", "name": "ArrayClient", "namespace": "Type.Array", "doc": "Illustrates various types of arrays.", @@ -113,2804 +114,2863 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Array" - }, - { - "$id": "16", - "name": "Int32Value", - "namespace": "Type.Array", - "doc": "Array of int32 values", - "operations": [ - { - "$id": "17", - "name": "get", - "resourceName": "Int32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "18", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "19", - "kind": "constant", - "valueType": { - "$id": "20", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "21", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "22", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "23", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/array/int32", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.Int32Value.get", - "decorators": [] - }, - { - "$id": "24", - "name": "put", - "resourceName": "Int32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "25", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "26", - "kind": "constant", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "28", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "29", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "30", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "31", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/int32", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.Int32Value.put", - "decorators": [] - } - ], - "parent": "ArrayClient", - "parameters": [ - { - "$id": "32", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "33", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "34", - "type": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.Int32Value" - }, - { - "$id": "36", - "name": "Int64Value", - "namespace": "Type.Array", - "doc": "Array of int64 values", - "operations": [ - { - "$id": "37", - "name": "get", - "resourceName": "Int64Value", - "accessibility": "public", - "parameters": [ - { - "$id": "38", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "39", - "kind": "constant", - "valueType": { - "$id": "40", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "41", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "42", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "43", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/array/int64", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.Int64Value.get", - "decorators": [] - }, - { - "$id": "44", - "name": "put", - "resourceName": "Int64Value", - "accessibility": "public", - "parameters": [ - { - "$id": "45", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "46", - "kind": "constant", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "48", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "49", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "50", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "51", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/int64", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.Int64Value.put", - "decorators": [] - } - ], - "parent": "ArrayClient", - "parameters": [ - { - "$id": "52", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "53", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "54", - "type": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.Int64Value" - }, - { - "$id": "56", - "name": "BooleanValue", - "namespace": "Type.Array", - "doc": "Array of boolean values", - "operations": [ - { - "$id": "57", - "name": "get", - "resourceName": "BooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "58", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "59", - "kind": "constant", - "valueType": { - "$id": "60", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "61", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "62", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "63", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/array/boolean", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.BooleanValue.get", - "decorators": [] - }, - { - "$id": "64", - "name": "put", - "resourceName": "BooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "65", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "66", - "kind": "constant", - "valueType": { - "$id": "67", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "68", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "69", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "70", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "71", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/boolean", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.BooleanValue.put", - "decorators": [] - } - ], - "parent": "ArrayClient", - "parameters": [ - { - "$id": "72", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "73", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "74", - "type": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.BooleanValue" - }, - { - "$id": "76", - "name": "StringValue", - "namespace": "Type.Array", - "doc": "Array of string values", - "operations": [ - { - "$id": "77", - "name": "get", - "resourceName": "StringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "78", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "79", - "kind": "constant", - "valueType": { - "$id": "80", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "81", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "82", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "83", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/array/string", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.StringValue.get", - "decorators": [] - }, - { - "$id": "84", - "name": "put", - "resourceName": "StringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "85", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "86", - "kind": "constant", - "valueType": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "88", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "89", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "90", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "91", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/string", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.StringValue.put", - "decorators": [] - } - ], - "parent": "ArrayClient", - "parameters": [ - { - "$id": "92", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "93", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "94", - "type": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.StringValue" - }, - { - "$id": "96", - "name": "Float32Value", - "namespace": "Type.Array", - "doc": "Array of float values", - "operations": [ - { - "$id": "97", - "name": "get", - "resourceName": "Float32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "98", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "99", - "kind": "constant", - "valueType": { - "$id": "100", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "101", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "102", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "103", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/array/float32", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.Float32Value.get", - "decorators": [] - }, - { - "$id": "104", - "name": "put", - "resourceName": "Float32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "105", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "106", - "kind": "constant", - "valueType": { - "$id": "107", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "108", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "109", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "110", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "111", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/float32", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.Float32Value.put", - "decorators": [] - } - ], - "parent": "ArrayClient", - "parameters": [ - { - "$id": "112", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "113", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "114", - "type": { - "$id": "115", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.Float32Value" - }, - { - "$id": "116", - "name": "DatetimeValue", - "namespace": "Type.Array", - "doc": "Array of datetime values", - "operations": [ - { - "$id": "117", - "name": "get", - "resourceName": "DatetimeValue", - "accessibility": "public", - "parameters": [ - { - "$id": "118", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "119", - "kind": "constant", - "valueType": { - "$id": "120", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "121", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "122", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "123", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "124", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/array/datetime", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.DatetimeValue.get", - "decorators": [] - }, - { - "$id": "125", - "name": "put", - "resourceName": "DatetimeValue", - "accessibility": "public", - "parameters": [ - { - "$id": "126", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "127", - "kind": "constant", - "valueType": { - "$id": "128", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "129", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "130", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "131", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "132", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "133", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/datetime", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.DatetimeValue.put", - "decorators": [] - } - ], - "parent": "ArrayClient", - "parameters": [ - { - "$id": "134", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "135", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "136", - "type": { - "$id": "137", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.DatetimeValue" - }, - { - "$id": "138", - "name": "DurationValue", - "namespace": "Type.Array", - "doc": "Array of duration values", - "operations": [ - { - "$id": "139", - "name": "get", - "resourceName": "DurationValue", - "accessibility": "public", - "parameters": [ - { - "$id": "140", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "141", - "kind": "constant", - "valueType": { - "$id": "142", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "143", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "144", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "145", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "146", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/array/duration", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.DurationValue.get", - "decorators": [] - }, - { - "$id": "147", - "name": "put", - "resourceName": "DurationValue", - "accessibility": "public", - "parameters": [ - { - "$id": "148", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "149", - "kind": "constant", - "valueType": { - "$id": "150", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "151", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "152", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "153", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "154", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "155", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/duration", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.DurationValue.put", - "decorators": [] - } - ], - "parent": "ArrayClient", - "parameters": [ - { - "$id": "156", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "157", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "158", - "type": { - "$id": "159", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.DurationValue" - }, - { - "$id": "160", - "name": "UnknownValue", - "namespace": "Type.Array", - "doc": "Array of unknown values", - "operations": [ + "crossLanguageDefinitionId": "Type.Array", + "apiVersions": [], + "children": [ { - "$id": "161", - "name": "get", - "resourceName": "UnknownValue", - "accessibility": "public", - "parameters": [ - { - "$id": "162", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "163", - "kind": "constant", - "valueType": { - "$id": "164", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "16", + "kind": "client", + "name": "Int32Value", + "namespace": "Type.Array", + "doc": "Array of int32 values", + "operations": [ + { + "$id": "17", + "name": "get", + "resourceName": "Int32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "18", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "19", + "kind": "constant", + "valueType": { + "$id": "20", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "21", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "22", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "23", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/int32", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.Int32Value.get", + "decorators": [] + }, { - "$id": "165", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "166", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "167", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] + "$id": "24", + "name": "put", + "resourceName": "Int32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "25", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "26", + "kind": "constant", + "valueType": { + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + { + "$id": "28", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "29", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "30", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "31", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/int32", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.Int32Value.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/array/unknown", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.UnknownValue.get", - "decorators": [] - }, - { - "$id": "168", - "name": "put", - "resourceName": "UnknownValue", - "accessibility": "public", "parameters": [ { - "$id": "169", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "170", - "kind": "constant", - "valueType": { - "$id": "171", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "172", - "name": "body", - "nameInRequest": "body", + "$id": "32", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "173", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "174", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "33", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "175", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/unknown", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.UnknownValue.put", - "decorators": [] - } - ], - "parent": "ArrayClient", - "parameters": [ - { - "$id": "176", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "177", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "178", - "type": { - "$id": "179", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.UnknownValue" - }, - { - "$id": "180", - "name": "ModelValue", - "namespace": "Type.Array", - "doc": "Array of model values", - "operations": [ - { - "$id": "181", - "name": "get", - "resourceName": "ModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "182", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "183", - "kind": "constant", - "valueType": { - "$id": "184", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "34", + "type": { + "$id": "35", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "185", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "186", - "kind": "array", - "name": "ArrayInnerModel", - "valueType": { - "$ref": "2" + "crossLanguageDefinitionId": "TypeSpec.string" }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/array/model", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.ModelValue.get", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.Int32Value", + "apiVersions": [], + "parent": { + "$ref": "11" + } }, { - "$id": "187", - "name": "put", - "resourceName": "ModelValue", - "accessibility": "public", - "parameters": [ - { - "$id": "188", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "189", - "kind": "constant", - "valueType": { - "$id": "190", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "191", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "192", - "kind": "array", - "name": "ArrayInnerModel", - "valueType": { - "$ref": "2" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "193", - "statusCodes": [ - 204 + "$id": "36", + "kind": "client", + "name": "Int64Value", + "namespace": "Type.Array", + "doc": "Array of int64 values", + "operations": [ + { + "$id": "37", + "name": "get", + "resourceName": "Int64Value", + "accessibility": "public", + "parameters": [ + { + "$id": "38", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "39", + "kind": "constant", + "valueType": { + "$id": "40", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/model", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.ModelValue.put", - "decorators": [] - } - ], - "parent": "ArrayClient", - "parameters": [ - { - "$id": "194", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "195", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "196", - "type": { - "$id": "197", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "responses": [ + { + "$id": "41", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "42", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "43", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/int64", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.Int64Value.get", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.ModelValue" - }, - { - "$id": "198", - "name": "NullableFloatValue", - "namespace": "Type.Array", - "doc": "Array of nullable float values", - "operations": [ - { - "$id": "199", - "name": "get", - "resourceName": "NullableFloatValue", - "accessibility": "public", - "parameters": [ - { - "$id": "200", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "201", - "kind": "constant", - "valueType": { - "$id": "202", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ { - "$id": "203", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "204", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "205", - "kind": "nullable", + "$id": "44", + "name": "put", + "resourceName": "Int64Value", + "accessibility": "public", + "parameters": [ + { + "$id": "45", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "206", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "46", + "kind": "constant", + "valueType": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "namespace": "" + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + { + "$id": "48", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "49", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "50", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "51", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/int64", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.Int64Value.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/array/nullable-float", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.get", - "decorators": [] - }, - { - "$id": "207", - "name": "put", - "resourceName": "NullableFloatValue", - "accessibility": "public", "parameters": [ { - "$id": "208", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "209", - "kind": "constant", - "valueType": { - "$id": "210", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "211", - "name": "body", - "nameInRequest": "body", + "$id": "52", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "212", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "205" - }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + "$id": "53", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "213", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "54", + "type": { + "$id": "55", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/nullable-float", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.put", - "decorators": [] - } - ], - "parent": "ArrayClient", - "parameters": [ - { - "$id": "214", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "215", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "216", - "type": { - "$id": "217", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.Int64Value", + "apiVersions": [], + "parent": { + "$ref": "11" } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableFloatValue" - }, - { - "$id": "218", - "name": "NullableInt32Value", - "namespace": "Type.Array", - "doc": "Array of nullable int32 values", - "operations": [ + }, { - "$id": "219", - "name": "get", - "resourceName": "NullableInt32Value", - "accessibility": "public", + "$id": "56", + "kind": "client", + "name": "BooleanValue", + "namespace": "Type.Array", + "doc": "Array of boolean values", + "operations": [ + { + "$id": "57", + "name": "get", + "resourceName": "BooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "58", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "59", + "kind": "constant", + "valueType": { + "$id": "60", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "61", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "62", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "63", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/boolean", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.BooleanValue.get", + "decorators": [] + }, + { + "$id": "64", + "name": "put", + "resourceName": "BooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "65", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "66", + "kind": "constant", + "valueType": { + "$id": "67", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "68", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "69", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "70", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "71", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/boolean", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.BooleanValue.put", + "decorators": [] + } + ], "parameters": [ { - "$id": "220", - "name": "accept", - "nameInRequest": "Accept", + "$id": "72", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "221", - "kind": "constant", - "valueType": { - "$id": "222", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "73", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "74", + "type": { + "$id": "75", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.BooleanValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "76", + "kind": "client", + "name": "StringValue", + "namespace": "Type.Array", + "doc": "Array of string values", + "operations": [ + { + "$id": "77", + "name": "get", + "resourceName": "StringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "78", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "79", + "kind": "constant", + "valueType": { + "$id": "80", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "81", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "82", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "83", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/string", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.StringValue.get", + "decorators": [] + }, { - "$id": "223", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "224", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "225", - "kind": "nullable", + "$id": "84", + "name": "put", + "resourceName": "StringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "85", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "226", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", + "$id": "86", + "kind": "constant", + "valueType": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "namespace": "" + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + { + "$id": "88", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "89", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "91", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/string", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.StringValue.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/array/nullable-int32", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.get", - "decorators": [] - }, - { - "$id": "227", - "name": "put", - "resourceName": "NullableInt32Value", - "accessibility": "public", "parameters": [ { - "$id": "228", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "92", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "229", - "kind": "constant", - "valueType": { - "$id": "230", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "93", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, + "isContentType": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "94", + "type": { + "$id": "95", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.StringValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "96", + "kind": "client", + "name": "Float32Value", + "namespace": "Type.Array", + "doc": "Array of float values", + "operations": [ + { + "$id": "97", + "name": "get", + "resourceName": "Float32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "98", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "99", + "kind": "constant", + "valueType": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "101", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "102", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "103", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/float32", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.Float32Value.get", + "decorators": [] }, { - "$id": "231", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "232", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "225" + "$id": "104", + "name": "put", + "resourceName": "Float32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "105", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "106", + "kind": "constant", + "valueType": { + "$id": "107", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + { + "$id": "108", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "109", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "110", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "111", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/float32", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.Float32Value.put", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "112", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "113", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "114", + "type": { + "$id": "115", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.Float32Value", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "116", + "kind": "client", + "name": "DatetimeValue", + "namespace": "Type.Array", + "doc": "Array of datetime values", + "operations": [ + { + "$id": "117", + "name": "get", + "resourceName": "DatetimeValue", + "accessibility": "public", + "parameters": [ + { + "$id": "118", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "119", + "kind": "constant", + "valueType": { + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "121", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "122", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "123", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/datetime", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.DatetimeValue.get", + "decorators": [] + }, { - "$id": "233", - "statusCodes": [ - 204 + "$id": "125", + "name": "put", + "resourceName": "DatetimeValue", + "accessibility": "public", + "parameters": [ + { + "$id": "126", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "127", + "kind": "constant", + "valueType": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "129", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "130", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "131", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "133", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/datetime", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.DatetimeValue.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/nullable-int32", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.put", - "decorators": [] - } - ], - "parent": "ArrayClient", - "parameters": [ - { - "$id": "234", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "235", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "236", - "type": { - "$id": "237", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableInt32Value" - }, - { - "$id": "238", - "name": "NullableBooleanValue", - "namespace": "Type.Array", - "doc": "Array of nullable boolean values", - "operations": [ - { - "$id": "239", - "name": "get", - "resourceName": "NullableBooleanValue", - "accessibility": "public", "parameters": [ { - "$id": "240", - "name": "accept", - "nameInRequest": "Accept", + "$id": "134", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "241", - "kind": "constant", - "valueType": { - "$id": "242", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "135", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "136", + "type": { + "$id": "137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.DatetimeValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "138", + "kind": "client", + "name": "DurationValue", + "namespace": "Type.Array", + "doc": "Array of duration values", + "operations": [ + { + "$id": "139", + "name": "get", + "resourceName": "DurationValue", + "accessibility": "public", + "parameters": [ + { + "$id": "140", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "141", + "kind": "constant", + "valueType": { + "$id": "142", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "143", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "144", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "145", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "146", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/duration", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.DurationValue.get", + "decorators": [] + }, { - "$id": "243", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "244", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "245", - "kind": "nullable", + "$id": "147", + "name": "put", + "resourceName": "DurationValue", + "accessibility": "public", + "parameters": [ + { + "$id": "148", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "246", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", + "$id": "149", + "kind": "constant", + "valueType": { + "$id": "150", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "namespace": "" + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + { + "$id": "151", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "152", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "153", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "155", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/duration", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.DurationValue.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/array/nullable-boolean", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get", - "decorators": [] - }, - { - "$id": "247", - "name": "put", - "resourceName": "NullableBooleanValue", - "accessibility": "public", "parameters": [ { - "$id": "248", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "156", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "249", - "kind": "constant", - "valueType": { - "$id": "250", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "157", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, + "isContentType": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "158", + "type": { + "$id": "159", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.DurationValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "160", + "kind": "client", + "name": "UnknownValue", + "namespace": "Type.Array", + "doc": "Array of unknown values", + "operations": [ + { + "$id": "161", + "name": "get", + "resourceName": "UnknownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "162", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "163", + "kind": "constant", + "valueType": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "165", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "166", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "167", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/unknown", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.UnknownValue.get", + "decorators": [] }, { - "$id": "251", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "252", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "245" + "$id": "168", + "name": "put", + "resourceName": "UnknownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "169", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "170", + "kind": "constant", + "valueType": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + { + "$id": "172", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "173", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "174", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "175", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/unknown", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.UnknownValue.put", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "176", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "177", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "253", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "178", + "type": { + "$id": "179", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/nullable-boolean", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put", - "decorators": [] - } - ], - "parent": "ArrayClient", - "parameters": [ - { - "$id": "254", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "255", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "256", - "type": { - "$id": "257", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.UnknownValue", + "apiVersions": [], + "parent": { + "$ref": "11" } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue" - }, - { - "$id": "258", - "name": "NullableStringValue", - "namespace": "Type.Array", - "doc": "Array of nullable string values", - "operations": [ + }, { - "$id": "259", - "name": "get", - "resourceName": "NullableStringValue", - "accessibility": "public", + "$id": "180", + "kind": "client", + "name": "ModelValue", + "namespace": "Type.Array", + "doc": "Array of model values", + "operations": [ + { + "$id": "181", + "name": "get", + "resourceName": "ModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "182", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "183", + "kind": "constant", + "valueType": { + "$id": "184", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "185", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "186", + "kind": "array", + "name": "ArrayInnerModel", + "valueType": { + "$ref": "2" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/model", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.ModelValue.get", + "decorators": [] + }, + { + "$id": "187", + "name": "put", + "resourceName": "ModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "188", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "189", + "kind": "constant", + "valueType": { + "$id": "190", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "191", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "192", + "kind": "array", + "name": "ArrayInnerModel", + "valueType": { + "$ref": "2" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "193", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/model", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.ModelValue.put", + "decorators": [] + } + ], "parameters": [ { - "$id": "260", - "name": "accept", - "nameInRequest": "Accept", + "$id": "194", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "261", - "kind": "constant", - "valueType": { - "$id": "262", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "195", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "196", + "type": { + "$id": "197", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.ModelValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "198", + "kind": "client", + "name": "NullableFloatValue", + "namespace": "Type.Array", + "doc": "Array of nullable float values", + "operations": [ + { + "$id": "199", + "name": "get", + "resourceName": "NullableFloatValue", + "accessibility": "public", + "parameters": [ + { + "$id": "200", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "201", + "kind": "constant", + "valueType": { + "$id": "202", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "203", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "204", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "205", + "kind": "nullable", + "type": { + "$id": "206", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/nullable-float", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.get", + "decorators": [] + }, { - "$id": "263", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "264", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "265", - "kind": "nullable", + "$id": "207", + "name": "put", + "resourceName": "NullableFloatValue", + "accessibility": "public", + "parameters": [ + { + "$id": "208", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "266", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "209", + "kind": "constant", + "valueType": { + "$id": "210", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "namespace": "" + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + { + "$id": "211", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "212", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "205" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "213", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/nullable-float", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/array/nullable-string", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.NullableStringValue.get", - "decorators": [] - }, - { - "$id": "267", - "name": "put", - "resourceName": "NullableStringValue", - "accessibility": "public", "parameters": [ { - "$id": "268", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "214", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "269", - "kind": "constant", - "valueType": { - "$id": "270", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "215", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, + "isContentType": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "216", + "type": { + "$id": "217", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.NullableFloatValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "218", + "kind": "client", + "name": "NullableInt32Value", + "namespace": "Type.Array", + "doc": "Array of nullable int32 values", + "operations": [ + { + "$id": "219", + "name": "get", + "resourceName": "NullableInt32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "220", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "221", + "kind": "constant", + "valueType": { + "$id": "222", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "223", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "224", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "225", + "kind": "nullable", + "type": { + "$id": "226", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/nullable-int32", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.get", + "decorators": [] }, { - "$id": "271", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "272", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "265" + "$id": "227", + "name": "put", + "resourceName": "NullableInt32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "228", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "229", + "kind": "constant", + "valueType": { + "$id": "230", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + { + "$id": "231", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "232", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "225" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "233", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/nullable-int32", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value.put", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "234", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "235", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "236", + "type": { + "$id": "237", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.NullableInt32Value", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "238", + "kind": "client", + "name": "NullableBooleanValue", + "namespace": "Type.Array", + "doc": "Array of nullable boolean values", + "operations": [ + { + "$id": "239", + "name": "get", + "resourceName": "NullableBooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "240", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "241", + "kind": "constant", + "valueType": { + "$id": "242", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "243", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "244", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "245", + "kind": "nullable", + "type": { + "$id": "246", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/nullable-boolean", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get", + "decorators": [] + }, { - "$id": "273", - "statusCodes": [ - 204 + "$id": "247", + "name": "put", + "resourceName": "NullableBooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "248", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "249", + "kind": "constant", + "valueType": { + "$id": "250", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "251", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "252", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "245" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "253", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/nullable-boolean", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/nullable-string", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.NullableStringValue.put", - "decorators": [] - } - ], - "parent": "ArrayClient", - "parameters": [ - { - "$id": "274", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "275", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "276", - "type": { - "$id": "277", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableStringValue" - }, - { - "$id": "278", - "name": "NullableModelValue", - "namespace": "Type.Array", - "doc": "Array of nullable model values", - "operations": [ - { - "$id": "279", - "name": "get", - "resourceName": "NullableModelValue", - "accessibility": "public", "parameters": [ { - "$id": "280", - "name": "accept", - "nameInRequest": "Accept", + "$id": "254", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "281", - "kind": "constant", - "valueType": { - "$id": "282", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "255", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "256", + "type": { + "$id": "257", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.NullableBooleanValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "258", + "kind": "client", + "name": "NullableStringValue", + "namespace": "Type.Array", + "doc": "Array of nullable string values", + "operations": [ + { + "$id": "259", + "name": "get", + "resourceName": "NullableStringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "260", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "261", + "kind": "constant", + "valueType": { + "$id": "262", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "263", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "264", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "265", + "kind": "nullable", + "type": { + "$id": "266", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/nullable-string", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.NullableStringValue.get", + "decorators": [] + }, { - "$id": "283", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "284", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "285", - "kind": "nullable", + "$id": "267", + "name": "put", + "resourceName": "NullableStringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "268", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "2" + "$id": "269", + "kind": "constant", + "valueType": { + "$id": "270", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] }, - "namespace": "" + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + { + "$id": "271", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "272", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "265" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "273", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/nullable-string", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.NullableStringValue.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/array/nullable-model", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.NullableModelValue.get", - "decorators": [] - }, - { - "$id": "286", - "name": "put", - "resourceName": "NullableModelValue", - "accessibility": "public", "parameters": [ { - "$id": "287", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "274", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "288", - "kind": "constant", - "valueType": { - "$id": "289", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "275", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, + "isContentType": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "276", + "type": { + "$id": "277", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.NullableStringValue", + "apiVersions": [], + "parent": { + "$ref": "11" + } + }, + { + "$id": "278", + "kind": "client", + "name": "NullableModelValue", + "namespace": "Type.Array", + "doc": "Array of nullable model values", + "operations": [ + { + "$id": "279", + "name": "get", + "resourceName": "NullableModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "280", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "281", + "kind": "constant", + "valueType": { + "$id": "282", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "283", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "284", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "285", + "kind": "nullable", + "type": { + "$ref": "2" + }, + "namespace": "" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/array/nullable-model", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.NullableModelValue.get", + "decorators": [] }, { - "$id": "290", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "291", - "kind": "array", - "name": "Array", - "valueType": { - "$ref": "285" + "$id": "286", + "name": "put", + "resourceName": "NullableModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "287", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "288", + "kind": "constant", + "valueType": { + "$id": "289", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] + { + "$id": "290", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "291", + "kind": "array", + "name": "Array", + "valueType": { + "$ref": "285" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "292", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/array/nullable-model", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "293", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", + "type": { + "$id": "294", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "292", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "295", + "type": { + "$id": "296", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/array/nullable-model", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Array.NullableModelValue.put", - "decorators": [] - } - ], - "parent": "ArrayClient", - "parameters": [ - { - "$id": "293", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "294", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "295", - "type": { - "$id": "296", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Array.NullableModelValue", + "apiVersions": [], + "parent": { + "$ref": "11" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Array.NullableModelValue" + ] } ] } 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 56295630522..68a6de2d677 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 @@ -81,6 +81,7 @@ "clients": [ { "$id": "12", + "kind": "client", "name": "DictionaryClient", "namespace": "Type.Dictionary", "doc": "Illustrates various of dictionaries.", @@ -118,2312 +119,2359 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary" - }, - { - "$id": "17", - "name": "Int32Value", - "namespace": "Type.Dictionary", - "doc": "Dictionary of int32 values", - "operations": [ - { - "$id": "18", - "name": "get", - "resourceName": "Int32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "19", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "20", - "kind": "constant", - "valueType": { - "$id": "21", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "22", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "23", - "kind": "dict", - "keyType": { - "$id": "24", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "25", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/dictionary/int32", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.get", - "decorators": [] - }, - { - "$id": "26", - "name": "put", - "resourceName": "Int32Value", - "accessibility": "public", - "parameters": [ - { - "$id": "27", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "28", - "kind": "constant", - "valueType": { - "$id": "29", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "30", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "31", - "kind": "dict", - "keyType": { - "$id": "32", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "33", - "kind": "int32", - "name": "int32", - "crossLanguageDefinitionId": "TypeSpec.int32", - "decorators": [] - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "34", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/dictionary/int32", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.put", - "decorators": [] - } - ], - "parent": "DictionaryClient", - "parameters": [ - { - "$id": "35", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "36", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "37", - "type": { - "$id": "38", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.Int32Value" - }, - { - "$id": "39", - "name": "Int64Value", - "namespace": "Type.Dictionary", - "doc": "Dictionary of int64 values", - "operations": [ - { - "$id": "40", - "name": "get", - "resourceName": "Int64Value", - "accessibility": "public", - "parameters": [ - { - "$id": "41", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "42", - "kind": "constant", - "valueType": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "44", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "45", - "kind": "dict", - "keyType": { - "$id": "46", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "47", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/dictionary/int64", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.get", - "decorators": [] - }, - { - "$id": "48", - "name": "put", - "resourceName": "Int64Value", - "accessibility": "public", - "parameters": [ - { - "$id": "49", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "50", - "kind": "constant", - "valueType": { - "$id": "51", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "52", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "53", - "kind": "dict", - "keyType": { - "$id": "54", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "55", - "kind": "int64", - "name": "int64", - "crossLanguageDefinitionId": "TypeSpec.int64", - "decorators": [] - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "56", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/dictionary/int64", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.put", - "decorators": [] - } - ], - "parent": "DictionaryClient", - "parameters": [ - { - "$id": "57", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "58", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "59", - "type": { - "$id": "60", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.Int64Value" - }, - { - "$id": "61", - "name": "BooleanValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of boolean values", - "operations": [ - { - "$id": "62", - "name": "get", - "resourceName": "BooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "63", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "64", - "kind": "constant", - "valueType": { - "$id": "65", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "66", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "67", - "kind": "dict", - "keyType": { - "$id": "68", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "69", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/dictionary/boolean", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get", - "decorators": [] - }, - { - "$id": "70", - "name": "put", - "resourceName": "BooleanValue", - "accessibility": "public", - "parameters": [ - { - "$id": "71", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "72", - "kind": "constant", - "valueType": { - "$id": "73", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "74", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "75", - "kind": "dict", - "keyType": { - "$id": "76", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "77", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "78", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/dictionary/boolean", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put", - "decorators": [] - } - ], - "parent": "DictionaryClient", - "parameters": [ - { - "$id": "79", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "80", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "81", - "type": { - "$id": "82", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue" - }, - { - "$id": "83", - "name": "StringValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of string values", - "operations": [ - { - "$id": "84", - "name": "get", - "resourceName": "StringValue", - "accessibility": "public", - "parameters": [ - { - "$id": "85", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "86", - "kind": "constant", - "valueType": { - "$id": "87", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "88", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "89", - "kind": "dict", - "keyType": { - "$id": "90", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "91", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/dictionary/string", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.StringValue.get", - "decorators": [] - }, + "crossLanguageDefinitionId": "Type.Dictionary", + "apiVersions": [], + "children": [ { - "$id": "92", - "name": "put", - "resourceName": "StringValue", - "accessibility": "public", - "parameters": [ + "$id": "17", + "kind": "client", + "name": "Int32Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of int32 values", + "operations": [ { - "$id": "93", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "94", - "kind": "constant", - "valueType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "18", + "name": "get", + "resourceName": "Int32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "19", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "20", + "kind": "constant", + "valueType": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "22", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "23", + "kind": "dict", + "keyType": { + "$id": "24", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "25", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/dictionary/int32", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.get", + "decorators": [] }, { - "$id": "96", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "97", - "kind": "dict", - "keyType": { - "$id": "98", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "99", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "100", - "statusCodes": [ - 204 + "$id": "26", + "name": "put", + "resourceName": "Int32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "27", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "28", + "kind": "constant", + "valueType": { + "$id": "29", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "30", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "31", + "kind": "dict", + "keyType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "33", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "34", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/dictionary/int32", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/dictionary/string", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.StringValue.put", - "decorators": [] - } - ], - "parent": "DictionaryClient", - "parameters": [ - { - "$id": "101", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "102", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "103", - "type": { - "$id": "104", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.StringValue" - }, - { - "$id": "105", - "name": "Float32Value", - "namespace": "Type.Dictionary", - "doc": "Dictionary of float values", - "operations": [ - { - "$id": "106", - "name": "get", - "resourceName": "Float32Value", - "accessibility": "public", "parameters": [ { - "$id": "107", - "name": "accept", - "nameInRequest": "Accept", + "$id": "35", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "108", - "kind": "constant", - "valueType": { - "$id": "109", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "36", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "110", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "111", - "kind": "dict", - "keyType": { - "$id": "112", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "37", + "type": { + "$id": "38", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "valueType": { - "$id": "113", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/dictionary/float32", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.get", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.Int32Value", + "apiVersions": [], + "parent": { + "$ref": "12" + } }, { - "$id": "114", - "name": "put", - "resourceName": "Float32Value", - "accessibility": "public", - "parameters": [ + "$id": "39", + "kind": "client", + "name": "Int64Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of int64 values", + "operations": [ { - "$id": "115", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "116", - "kind": "constant", - "valueType": { - "$id": "117", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "40", + "name": "get", + "resourceName": "Int64Value", + "accessibility": "public", + "parameters": [ + { + "$id": "41", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "42", + "kind": "constant", + "valueType": { + "$id": "43", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "44", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "45", + "kind": "dict", + "keyType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "47", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/dictionary/int64", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.get", + "decorators": [] }, { - "$id": "118", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "119", - "kind": "dict", - "keyType": { - "$id": "120", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "121", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", - "decorators": [] - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "122", - "statusCodes": [ - 204 + "$id": "48", + "name": "put", + "resourceName": "Int64Value", + "accessibility": "public", + "parameters": [ + { + "$id": "49", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "50", + "kind": "constant", + "valueType": { + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "52", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "53", + "kind": "dict", + "keyType": { + "$id": "54", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "55", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "56", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/dictionary/int64", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/dictionary/float32", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.put", - "decorators": [] - } - ], - "parent": "DictionaryClient", - "parameters": [ - { - "$id": "123", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "124", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "125", - "type": { - "$id": "126", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.Float32Value" - }, - { - "$id": "127", - "name": "DatetimeValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of datetime values", - "operations": [ - { - "$id": "128", - "name": "get", - "resourceName": "DatetimeValue", - "accessibility": "public", "parameters": [ { - "$id": "129", - "name": "accept", - "nameInRequest": "Accept", + "$id": "57", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "130", - "kind": "constant", - "valueType": { - "$id": "131", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "58", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "132", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "133", - "kind": "dict", - "keyType": { - "$id": "134", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "59", + "type": { + "$id": "60", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "135", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "136", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/dictionary/datetime", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.Int64Value", + "apiVersions": [], + "parent": { + "$ref": "12" + } }, { - "$id": "137", - "name": "put", - "resourceName": "DatetimeValue", - "accessibility": "public", - "parameters": [ + "$id": "61", + "kind": "client", + "name": "BooleanValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of boolean values", + "operations": [ { - "$id": "138", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "139", - "kind": "constant", - "valueType": { - "$id": "140", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "62", + "name": "get", + "resourceName": "BooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "63", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "64", + "kind": "constant", + "valueType": { + "$id": "65", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "66", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "67", + "kind": "dict", + "keyType": { + "$id": "68", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "69", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/dictionary/boolean", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get", + "decorators": [] }, { - "$id": "141", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "142", - "kind": "dict", - "keyType": { - "$id": "143", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "144", - "kind": "utcDateTime", - "name": "utcDateTime", - "encode": "rfc3339", - "wireType": { - "$id": "145", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "$id": "70", + "name": "put", + "resourceName": "BooleanValue", + "accessibility": "public", + "parameters": [ + { + "$id": "71", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "72", + "kind": "constant", + "valueType": { + "$id": "73", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.utcDateTime", - "decorators": [] - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "146", - "statusCodes": [ - 204 + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "74", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "75", + "kind": "dict", + "keyType": { + "$id": "76", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "77", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "78", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/dictionary/boolean", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.put", + "decorators": [] } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/dictionary/datetime", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put", - "decorators": [] - } - ], - "parent": "DictionaryClient", - "parameters": [ - { - "$id": "147", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "148", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "149", - "type": { - "$id": "150", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue" - }, - { - "$id": "151", - "name": "DurationValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of duration values", - "operations": [ - { - "$id": "152", - "name": "get", - "resourceName": "DurationValue", - "accessibility": "public", + ], "parameters": [ { - "$id": "153", - "name": "accept", - "nameInRequest": "Accept", + "$id": "79", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "154", - "kind": "constant", - "valueType": { - "$id": "155", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "80", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "81", + "type": { + "$id": "82", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.BooleanValue", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "83", + "kind": "client", + "name": "StringValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of string values", + "operations": [ { - "$id": "156", - "statusCodes": [ - 200 + "$id": "84", + "name": "get", + "resourceName": "StringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "85", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "86", + "kind": "constant", + "valueType": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$id": "157", - "kind": "dict", - "keyType": { - "$id": "158", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "159", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "160", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", + "responses": [ + { + "$id": "88", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "89", + "kind": "dict", + "keyType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "91", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, "decorators": [] }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] - }, - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/dictionary/string", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.StringValue.get", + "decorators": [] + }, + { + "$id": "92", + "name": "put", + "resourceName": "StringValue", + "accessibility": "public", + "parameters": [ + { + "$id": "93", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "94", + "kind": "constant", + "valueType": { + "$id": "95", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "96", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "97", + "kind": "dict", + "keyType": { + "$id": "98", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "99", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "100", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/dictionary/string", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.StringValue.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/dictionary/duration", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.get", - "decorators": [] - }, - { - "$id": "161", - "name": "put", - "resourceName": "DurationValue", - "accessibility": "public", "parameters": [ { - "$id": "162", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "101", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "163", - "kind": "constant", - "valueType": { - "$id": "164", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "102", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, + "isContentType": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "165", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "166", - "kind": "dict", - "keyType": { - "$id": "167", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "103", + "type": { + "$id": "104", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "168", - "kind": "duration", - "name": "duration", - "encode": "ISO8601", - "wireType": { - "$id": "169", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "crossLanguageDefinitionId": "TypeSpec.duration", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.StringValue", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "105", + "kind": "client", + "name": "Float32Value", + "namespace": "Type.Dictionary", + "doc": "Dictionary of float values", + "operations": [ + { + "$id": "106", + "name": "get", + "resourceName": "Float32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "107", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "108", + "kind": "constant", + "valueType": { + "$id": "109", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "110", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "111", + "kind": "dict", + "keyType": { + "$id": "112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "113", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/dictionary/float32", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.get", + "decorators": [] + }, { - "$id": "170", - "statusCodes": [ - 204 + "$id": "114", + "name": "put", + "resourceName": "Float32Value", + "accessibility": "public", + "parameters": [ + { + "$id": "115", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "116", + "kind": "constant", + "valueType": { + "$id": "117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "118", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "119", + "kind": "dict", + "keyType": { + "$id": "120", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "121", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "122", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/dictionary/float32", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/dictionary/duration", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.put", - "decorators": [] - } - ], - "parent": "DictionaryClient", - "parameters": [ - { - "$id": "171", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "172", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "173", - "type": { - "$id": "174", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.DurationValue" - }, - { - "$id": "175", - "name": "UnknownValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of unknown values", - "operations": [ - { - "$id": "176", - "name": "get", - "resourceName": "UnknownValue", - "accessibility": "public", "parameters": [ { - "$id": "177", - "name": "accept", - "nameInRequest": "Accept", + "$id": "123", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "178", - "kind": "constant", - "valueType": { - "$id": "179", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "124", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "180", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "181", - "kind": "dict", - "keyType": { - "$id": "182", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "125", + "type": { + "$id": "126", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "valueType": { - "$id": "183", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/dictionary/unknown", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.Float32Value", + "apiVersions": [], + "parent": { + "$ref": "12" + } }, { - "$id": "184", - "name": "put", - "resourceName": "UnknownValue", - "accessibility": "public", + "$id": "127", + "kind": "client", + "name": "DatetimeValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of datetime values", + "operations": [ + { + "$id": "128", + "name": "get", + "resourceName": "DatetimeValue", + "accessibility": "public", + "parameters": [ + { + "$id": "129", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "130", + "kind": "constant", + "valueType": { + "$id": "131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "132", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "133", + "kind": "dict", + "keyType": { + "$id": "134", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "135", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "136", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/dictionary/datetime", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get", + "decorators": [] + }, + { + "$id": "137", + "name": "put", + "resourceName": "DatetimeValue", + "accessibility": "public", + "parameters": [ + { + "$id": "138", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "139", + "kind": "constant", + "valueType": { + "$id": "140", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "141", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "142", + "kind": "dict", + "keyType": { + "$id": "143", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "144", + "kind": "utcDateTime", + "name": "utcDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "145", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.utcDateTime", + "decorators": [] + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "146", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/dictionary/datetime", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.put", + "decorators": [] + } + ], "parameters": [ { - "$id": "185", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "147", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "186", - "kind": "constant", - "valueType": { - "$id": "187", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "148", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, + "isContentType": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "188", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "189", - "kind": "dict", - "keyType": { - "$id": "190", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "149", + "type": { + "$id": "150", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "valueType": { - "$id": "191", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "151", + "kind": "client", + "name": "DurationValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of duration values", + "operations": [ + { + "$id": "152", + "name": "get", + "resourceName": "DurationValue", + "accessibility": "public", + "parameters": [ + { + "$id": "153", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "154", + "kind": "constant", + "valueType": { + "$id": "155", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "156", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "157", + "kind": "dict", + "keyType": { + "$id": "158", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "159", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "160", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/dictionary/duration", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.get", + "decorators": [] + }, { - "$id": "192", - "statusCodes": [ - 204 + "$id": "161", + "name": "put", + "resourceName": "DurationValue", + "accessibility": "public", + "parameters": [ + { + "$id": "162", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "163", + "kind": "constant", + "valueType": { + "$id": "164", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "165", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "166", + "kind": "dict", + "keyType": { + "$id": "167", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "168", + "kind": "duration", + "name": "duration", + "encode": "ISO8601", + "wireType": { + "$id": "169", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.duration", + "decorators": [] + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "170", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/dictionary/duration", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/dictionary/unknown", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put", - "decorators": [] - } - ], - "parent": "DictionaryClient", - "parameters": [ - { - "$id": "193", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "194", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "195", - "type": { - "$id": "196", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue" - }, - { - "$id": "197", - "name": "ModelValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of model values", - "operations": [ - { - "$id": "198", - "name": "get", - "resourceName": "ModelValue", - "accessibility": "public", "parameters": [ { - "$id": "199", - "name": "accept", - "nameInRequest": "Accept", + "$id": "171", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "200", - "kind": "constant", - "valueType": { - "$id": "201", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "172", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "173", + "type": { + "$id": "174", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.DurationValue", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "175", + "kind": "client", + "name": "UnknownValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of unknown values", + "operations": [ { - "$id": "202", - "statusCodes": [ - 200 + "$id": "176", + "name": "get", + "resourceName": "UnknownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "177", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "178", + "kind": "constant", + "valueType": { + "$id": "179", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$id": "203", - "kind": "dict", - "keyType": { - "$id": "204", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "2" - }, - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "180", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "181", + "kind": "dict", + "keyType": { + "$id": "182", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "183", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/dictionary/unknown", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get", + "decorators": [] + }, + { + "$id": "184", + "name": "put", + "resourceName": "UnknownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "185", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "186", + "kind": "constant", + "valueType": { + "$id": "187", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "188", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "189", + "kind": "dict", + "keyType": { + "$id": "190", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "191", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "192", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/dictionary/unknown", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/dictionary/model", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.get", - "decorators": [] - }, - { - "$id": "205", - "name": "put", - "resourceName": "ModelValue", - "accessibility": "public", "parameters": [ { - "$id": "206", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "193", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "207", - "kind": "constant", - "valueType": { - "$id": "208", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "194", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, + "isContentType": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "209", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "210", - "kind": "dict", - "keyType": { - "$id": "211", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "195", + "type": { + "$id": "196", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "valueType": { - "$ref": "2" - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.UnknownValue", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "197", + "kind": "client", + "name": "ModelValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of model values", + "operations": [ + { + "$id": "198", + "name": "get", + "resourceName": "ModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "199", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "200", + "kind": "constant", + "valueType": { + "$id": "201", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "202", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "203", + "kind": "dict", + "keyType": { + "$id": "204", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "2" + }, + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/dictionary/model", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.get", + "decorators": [] + }, { - "$id": "212", - "statusCodes": [ - 204 + "$id": "205", + "name": "put", + "resourceName": "ModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "206", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "207", + "kind": "constant", + "valueType": { + "$id": "208", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "209", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "210", + "kind": "dict", + "keyType": { + "$id": "211", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "2" + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "212", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/dictionary/model", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/dictionary/model", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue.put", - "decorators": [] - } - ], - "parent": "DictionaryClient", - "parameters": [ - { - "$id": "213", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "214", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "215", - "type": { - "$id": "216", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.ModelValue" - }, - { - "$id": "217", - "name": "RecursiveModelValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of model values", - "operations": [ - { - "$id": "218", - "name": "get", - "resourceName": "RecursiveModelValue", - "accessibility": "public", "parameters": [ { - "$id": "219", - "name": "accept", - "nameInRequest": "Accept", + "$id": "213", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "220", - "kind": "constant", - "valueType": { - "$id": "221", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "214", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "222", - "statusCodes": [ - 200 - ], - "bodyType": { - "$id": "223", - "kind": "dict", - "keyType": { - "$id": "224", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "215", + "type": { + "$id": "216", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "valueType": { - "$ref": "2" - }, - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/dictionary/model/recursive", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.ModelValue", + "apiVersions": [], + "parent": { + "$ref": "12" + } }, { - "$id": "225", - "name": "put", - "resourceName": "RecursiveModelValue", - "accessibility": "public", - "parameters": [ + "$id": "217", + "kind": "client", + "name": "RecursiveModelValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of model values", + "operations": [ { - "$id": "226", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "227", - "kind": "constant", - "valueType": { - "$id": "228", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "218", + "name": "get", + "resourceName": "RecursiveModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "219", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "220", + "kind": "constant", + "valueType": { + "$id": "221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "222", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "223", + "kind": "dict", + "keyType": { + "$id": "224", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "2" + }, + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/dictionary/model/recursive", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get", + "decorators": [] }, { - "$id": "229", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "230", - "kind": "dict", - "keyType": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$ref": "2" - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "232", - "statusCodes": [ - 204 + "$id": "225", + "name": "put", + "resourceName": "RecursiveModelValue", + "accessibility": "public", + "parameters": [ + { + "$id": "226", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "227", + "kind": "constant", + "valueType": { + "$id": "228", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "229", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "230", + "kind": "dict", + "keyType": { + "$id": "231", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "2" + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "232", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/dictionary/model/recursive", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/dictionary/model/recursive", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.put", - "decorators": [] - } - ], - "parent": "DictionaryClient", - "parameters": [ - { - "$id": "233", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "234", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "235", - "type": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue" - }, - { - "$id": "237", - "name": "NullableFloatValue", - "namespace": "Type.Dictionary", - "doc": "Dictionary of nullable float values", - "operations": [ - { - "$id": "238", - "name": "get", - "resourceName": "NullableFloatValue", - "accessibility": "public", "parameters": [ { - "$id": "239", - "name": "accept", - "nameInRequest": "Accept", + "$id": "233", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "240", - "kind": "constant", - "valueType": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "234", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "235", + "type": { + "$id": "236", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue", + "apiVersions": [], + "parent": { + "$ref": "12" + } + }, + { + "$id": "237", + "kind": "client", + "name": "NullableFloatValue", + "namespace": "Type.Dictionary", + "doc": "Dictionary of nullable float values", + "operations": [ { - "$id": "242", - "statusCodes": [ - 200 + "$id": "238", + "name": "get", + "resourceName": "NullableFloatValue", + "accessibility": "public", + "parameters": [ + { + "$id": "239", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "240", + "kind": "constant", + "valueType": { + "$id": "241", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$id": "243", - "kind": "dict", - "keyType": { - "$id": "244", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "valueType": { - "$id": "245", - "kind": "nullable", + "responses": [ + { + "$id": "242", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "243", + "kind": "dict", + "keyType": { + "$id": "244", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "245", + "kind": "nullable", + "type": { + "$id": "246", + "kind": "float32", + "name": "float32", + "crossLanguageDefinitionId": "TypeSpec.float32", + "decorators": [] + }, + "namespace": "" + }, + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/dictionary/nullable-float", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get", + "decorators": [] + }, + { + "$id": "247", + "name": "put", + "resourceName": "NullableFloatValue", + "accessibility": "public", + "parameters": [ + { + "$id": "248", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", "type": { - "$id": "246", - "kind": "float32", - "name": "float32", - "crossLanguageDefinitionId": "TypeSpec.float32", + "$id": "249", + "kind": "constant", + "valueType": { + "$id": "250", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", "decorators": [] }, - "namespace": "" - }, - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "251", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "252", + "kind": "dict", + "keyType": { + "$id": "253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$ref": "245" + }, + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "254", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/dictionary/nullable-float", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/dictionary/nullable-float", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get", - "decorators": [] - }, - { - "$id": "247", - "name": "put", - "resourceName": "NullableFloatValue", - "accessibility": "public", "parameters": [ { - "$id": "248", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "255", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "249", - "kind": "constant", - "valueType": { - "$id": "250", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "256", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, + "isContentType": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "251", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "252", - "kind": "dict", - "keyType": { - "$id": "253", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "257", + "type": { + "$id": "258", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "valueType": { - "$ref": "245" - }, - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "254", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/dictionary/nullable-float", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.put", - "decorators": [] - } - ], - "parent": "DictionaryClient", - "parameters": [ - { - "$id": "255", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "256", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "257", - "type": { - "$id": "258", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue", + "apiVersions": [], + "parent": { + "$ref": "12" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue" + ] } ] } 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 b29e9961140..10481689023 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 @@ -155,6 +155,7 @@ "clients": [ { "$id": "18", + "kind": "client", "name": "ExtensibleClient", "namespace": "Type.Enum.Extensible", "operations": [], @@ -191,66 +192,186 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Extensible" - }, - { - "$id": "23", - "name": "String", - "namespace": "Type.Enum.Extensible", - "operations": [ + "crossLanguageDefinitionId": "Type.Enum.Extensible", + "apiVersions": [], + "children": [ { - "$id": "24", - "name": "getKnownValue", - "resourceName": "String", - "accessibility": "public", - "parameters": [ + "$id": "23", + "kind": "client", + "name": "String", + "namespace": "Type.Enum.Extensible", + "operations": [ { - "$id": "25", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "26", - "kind": "constant", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "24", + "name": "getKnownValue", + "resourceName": "String", + "accessibility": "public", + "parameters": [ + { + "$id": "25", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "26", + "kind": "constant", + "valueType": { + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "28", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2" + }, + "headers": [ + { + "$id": "29", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "30", + "kind": "constant", + "valueType": { + "$id": "31", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/enum/extensible/string/known-value", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue", + "decorators": [] + }, { - "$id": "28", - "statusCodes": [ - 200 + "$id": "32", + "name": "getUnknownValue", + "resourceName": "String", + "accessibility": "public", + "parameters": [ + { + "$id": "33", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "34", + "kind": "constant", + "valueType": { + "$id": "35", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "2" - }, - "headers": [ + "responses": [ + { + "$id": "36", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2" + }, + "headers": [ + { + "$id": "37", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "38", + "kind": "constant", + "valueType": { + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/enum/extensible/string/unknown-value", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue", + "decorators": [] + }, + { + "$id": "40", + "name": "putKnownValue", + "resourceName": "String", + "accessibility": "public", + "parameters": [ { - "$id": "29", + "$id": "41", "name": "contentType", - "nameInResponse": "content-type", + "nameInRequest": "Content-Type", "type": { - "$id": "30", + "$id": "42", "kind": "constant", "valueType": { - "$id": "31", + "$id": "43", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -258,77 +379,72 @@ }, "value": "application/json", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "44", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "45", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false } ], - "isErrorResponse": false, - "contentTypes": [ + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/enum/extensible/string/known-value", + "requestMediaTypes": [ "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/enum/extensible/string/known-value", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue", - "decorators": [] - }, - { - "$id": "32", - "name": "getUnknownValue", - "resourceName": "String", - "accessibility": "public", - "parameters": [ - { - "$id": "33", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "34", - "kind": "constant", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "36", - "statusCodes": [ - 200 ], - "bodyType": { - "$ref": "2" - }, - "headers": [ + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue", + "decorators": [] + }, + { + "$id": "46", + "name": "putUnknownValue", + "resourceName": "String", + "accessibility": "public", + "parameters": [ { - "$id": "37", + "$id": "47", "name": "contentType", - "nameInResponse": "content-type", + "nameInRequest": "Content-Type", "type": { - "$id": "38", + "$id": "48", "kind": "constant", "valueType": { - "$id": "39", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -336,206 +452,98 @@ }, "value": "application/json", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "50", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false } ], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "51", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/enum/extensible/string/unknown-value", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/enum/extensible/string/unknown-value", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue", - "decorators": [] - }, - { - "$id": "40", - "name": "putKnownValue", - "resourceName": "String", - "accessibility": "public", "parameters": [ { - "$id": "41", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "42", - "kind": "constant", - "valueType": { - "$id": "43", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "44", - "name": "body", - "nameInRequest": "body", + "$id": "52", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "2" + "$id": "53", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "45", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/enum/extensible/string/known-value", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue", - "decorators": [] - }, - { - "$id": "46", - "name": "putUnknownValue", - "resourceName": "String", - "accessibility": "public", - "parameters": [ - { - "$id": "47", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "48", - "kind": "constant", - "valueType": { - "$id": "49", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "54", + "type": { + "$id": "55", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "50", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "2" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "51", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/enum/extensible/string/unknown-value", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue", - "decorators": [] - } - ], - "parent": "ExtensibleClient", - "parameters": [ - { - "$id": "52", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "53", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "54", - "type": { - "$id": "55", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Enum.Extensible.String", + "apiVersions": [], + "parent": { + "$ref": "18" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Extensible.String" + ] } ] } 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 640af7cd343..4511a5d748b 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 @@ -155,6 +155,7 @@ "clients": [ { "$id": "18", + "kind": "client", "name": "FixedClient", "namespace": "Type.Enum.Fixed", "operations": [], @@ -191,67 +192,185 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Fixed" - }, - { - "$id": "23", - "name": "String", - "namespace": "Type.Enum.Fixed", - "operations": [ + "crossLanguageDefinitionId": "Type.Enum.Fixed", + "apiVersions": [], + "children": [ { - "$id": "24", - "name": "getKnownValue", - "resourceName": "String", - "doc": "getKnownValue", - "accessibility": "public", - "parameters": [ + "$id": "23", + "kind": "client", + "name": "String", + "namespace": "Type.Enum.Fixed", + "operations": [ { - "$id": "25", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "26", - "kind": "constant", - "valueType": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "24", + "name": "getKnownValue", + "resourceName": "String", + "doc": "getKnownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "25", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "26", + "kind": "constant", + "valueType": { + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "28", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2" + }, + "headers": [ + { + "$id": "29", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "30", + "kind": "constant", + "valueType": { + "$id": "31", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/enum/fixed/string/known-value", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue", + "decorators": [] + }, { - "$id": "28", - "statusCodes": [ - 200 + "$id": "32", + "name": "putKnownValue", + "resourceName": "String", + "doc": "putKnownValue", + "accessibility": "public", + "parameters": [ + { + "$id": "33", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "34", + "kind": "constant", + "valueType": { + "$id": "35", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "36", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "2" - }, - "headers": [ + "responses": [ + { + "$id": "37", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/enum/fixed/string/known-value", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue", + "decorators": [] + }, + { + "$id": "38", + "name": "putUnknownValue", + "resourceName": "String", + "doc": "putUnknownValue", + "accessibility": "public", + "parameters": [ { - "$id": "29", + "$id": "39", "name": "contentType", - "nameInResponse": "content-type", + "nameInRequest": "Content-Type", "type": { - "$id": "30", + "$id": "40", "kind": "constant", "valueType": { - "$id": "31", + "$id": "41", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -259,210 +378,99 @@ }, "value": "application/json", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "42", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "43", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false } ], - "isErrorResponse": false, - "contentTypes": [ + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/enum/fixed/string/unknown-value", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/enum/fixed/string/known-value", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue", - "decorators": [] - }, - { - "$id": "32", - "name": "putKnownValue", - "resourceName": "String", - "doc": "putKnownValue", - "accessibility": "public", "parameters": [ { - "$id": "33", - "name": "contentType", - "nameInRequest": "Content-Type", + "$id": "44", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "34", - "kind": "constant", - "valueType": { - "$id": "35", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "45", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "36", - "name": "body", - "nameInRequest": "body", - "doc": "_", - "type": { - "$ref": "2" - }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "37", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/enum/fixed/string/known-value", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue", - "decorators": [] - }, - { - "$id": "38", - "name": "putUnknownValue", - "resourceName": "String", - "doc": "putUnknownValue", - "accessibility": "public", - "parameters": [ - { - "$id": "39", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "40", - "kind": "constant", - "valueType": { - "$id": "41", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "46", + "type": { + "$id": "47", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "42", - "name": "body", - "nameInRequest": "body", - "doc": "_", - "type": { - "$ref": "2" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "43", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/enum/fixed/string/unknown-value", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue", - "decorators": [] - } - ], - "parent": "FixedClient", - "parameters": [ - { - "$id": "44", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "45", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "46", - "type": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Enum.Fixed.String", + "apiVersions": [], + "parent": { + "$ref": "18" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Enum.Fixed.String" + ] } ] } 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 caebf59de97..1b82949c5a8 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 @@ -41,6 +41,7 @@ "clients": [ { "$id": "5", + "kind": "client", "name": "EmptyClient", "namespace": "Type.Model.Empty", "doc": "Illustrates usage of empty model used in operation's parameters and responses.", @@ -319,7 +320,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Empty" + "crossLanguageDefinitionId": "Type.Model.Empty", + "apiVersions": [] } ] } 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 357d4c361ff..0d5242f60c2 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 @@ -327,6 +327,7 @@ "clients": [ { "$id": "40", + "kind": "client", "name": "EnumDiscriminatorClient", "namespace": "Type.Model.Inheritance.EnumDiscriminator", "doc": "Illustrates inheritance with enum discriminator.", @@ -877,7 +878,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator" + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator", + "apiVersions": [] } ] } 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 d60b6a3eeb0..503e51369c3 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 @@ -400,6 +400,7 @@ "clients": [ { "$id": "53", + "kind": "client", "name": "NestedDiscriminatorClient", "namespace": "Type.Model.Inheritance.NestedDiscriminator", "doc": "Illustrates multiple level inheritance with multiple discriminators.", @@ -822,7 +823,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator", + "apiVersions": [] } ] } 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 9947c8769c2..092bf7dc097 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 @@ -128,6 +128,7 @@ "clients": [ { "$id": "17", + "kind": "client", "name": "NotDiscriminatedClient", "namespace": "Type.Model.Inheritance.NotDiscriminated", "doc": "Illustrates not-discriminated inheritance model.", @@ -406,7 +407,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated" + "crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated", + "apiVersions": [] } ] } 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 19741cb79bd..c37ead36d1d 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 @@ -90,6 +90,7 @@ "clients": [ { "$id": "12", + "kind": "client", "name": "RecursiveClient", "namespace": "Type.Model.Inheritance.Recursive", "doc": "Illustrates inheritance recursion", @@ -261,7 +262,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive" + "crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive", + "apiVersions": [] } ] } 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 316d2319a73..b07d2ba17e1 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 @@ -489,6 +489,7 @@ "clients": [ { "$id": "64", + "kind": "client", "name": "SingleDiscriminatorClient", "namespace": "Type.Model.Inheritance.SingleDiscriminator", "doc": "Illustrates inheritance with single discriminator.", @@ -970,7 +971,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator" + "crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator", + "apiVersions": [] } ] } 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 ab3bd5e566b..41522bce920 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 @@ -122,6 +122,7 @@ "clients": [ { "$id": "17", + "kind": "client", "name": "UsageClient", "namespace": "Type.Model.Usage", "doc": "Illustrates usage of Record in different places(Operation parameters, return type or both).", @@ -400,7 +401,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Usage" + "crossLanguageDefinitionId": "Type.Model.Usage", + "apiVersions": [] } ] } 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 4da45f1c79f..d26f26db25c 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 @@ -259,6 +259,7 @@ "clients": [ { "$id": "38", + "kind": "client", "name": "VisibilityClient", "namespace": "Type.Model.Visibility", "doc": "Illustrates models with visibility properties.", @@ -881,7 +882,8 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Model.Visibility" + "crossLanguageDefinitionId": "Type.Model.Visibility", + "apiVersions": [] } ] } 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 c0d6e809be4..d5182473d44 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 @@ -2165,6 +2165,7 @@ "clients": [ { "$id": "272", + "kind": "client", "name": "AdditionalPropertiesClient", "namespace": "Type.Property.AdditionalProperties", "doc": "Tests for additional properties of models", @@ -2202,5525 +2203,5652 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties" - }, - { - "$id": "277", - "name": "ExtendsUnknown", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties", + "apiVersions": [], + "children": [ { - "$id": "278", - "name": "get", - "resourceName": "ExtendsUnknown", - "doc": "Get call", - "accessibility": "public", - "parameters": [ + "$id": "277", + "kind": "client", + "name": "ExtendsUnknown", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "278", + "name": "get", + "resourceName": "ExtendsUnknown", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "279", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "280", + "kind": "constant", + "valueType": { + "$id": "281", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "282", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "258" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordUnknown", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get", + "decorators": [] + }, { - "$id": "279", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "280", - "kind": "constant", - "valueType": { - "$id": "281", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "283", + "name": "put", + "resourceName": "ExtendsUnknown", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "284", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "285", + "kind": "constant", + "valueType": { + "$id": "286", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "282", - "statusCodes": [ - 200 + { + "$id": "287", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "258" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "258" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "288", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordUnknown", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsRecordUnknown", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get", - "decorators": [] - }, - { - "$id": "283", - "name": "put", - "resourceName": "ExtendsUnknown", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "284", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "285", - "kind": "constant", - "valueType": { - "$id": "286", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "287", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "289", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "258" + "$id": "290", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "291", + "type": { + "$id": "292", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "293", + "kind": "client", + "name": "ExtendsUnknownDerived", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "294", + "name": "get", + "resourceName": "ExtendsUnknownDerived", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "295", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "296", + "kind": "constant", + "valueType": { + "$id": "297", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "298", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "257" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordUnknownDerived", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get", + "decorators": [] + }, { - "$id": "288", - "statusCodes": [ - 204 + "$id": "299", + "name": "put", + "resourceName": "ExtendsUnknownDerived", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "300", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "301", + "kind": "constant", + "valueType": { + "$id": "302", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "303", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "257" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "304", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordUnknownDerived", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsRecordUnknown", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "289", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "290", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "291", - "type": { - "$id": "292", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown" - }, - { - "$id": "293", - "name": "ExtendsUnknownDerived", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "294", - "name": "get", - "resourceName": "ExtendsUnknownDerived", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "295", - "name": "accept", - "nameInRequest": "Accept", + "$id": "305", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "296", - "kind": "constant", - "valueType": { - "$id": "297", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "306", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "307", + "type": { + "$id": "308", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "309", + "kind": "client", + "name": "ExtendsUnknownDiscriminated", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "310", + "name": "get", + "resourceName": "ExtendsUnknownDiscriminated", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "311", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "312", + "kind": "constant", + "valueType": { + "$id": "313", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "314", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "232" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsUnknownDiscriminated", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get", + "decorators": [] + }, { - "$id": "298", - "statusCodes": [ - 200 + "$id": "315", + "name": "put", + "resourceName": "ExtendsUnknownDiscriminated", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "316", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "317", + "kind": "constant", + "valueType": { + "$id": "318", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "319", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "232" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "257" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "320", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsUnknownDiscriminated", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsRecordUnknownDerived", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get", - "decorators": [] - }, - { - "$id": "299", - "name": "put", - "resourceName": "ExtendsUnknownDerived", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "300", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "321", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "301", - "kind": "constant", - "valueType": { - "$id": "302", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "303", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "257" + "$id": "322", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "304", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "323", + "type": { + "$id": "324", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsRecordUnknownDerived", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "305", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "306", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "307", - "type": { - "$id": "308", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated", + "apiVersions": [], + "parent": { + "$ref": "272" } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived" - }, - { - "$id": "309", - "name": "ExtendsUnknownDiscriminated", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ + }, { - "$id": "310", - "name": "get", - "resourceName": "ExtendsUnknownDiscriminated", - "doc": "Get call", - "accessibility": "public", - "parameters": [ + "$id": "325", + "kind": "client", + "name": "IsUnknown", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "326", + "name": "get", + "resourceName": "IsUnknown", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "327", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "328", + "kind": "constant", + "valueType": { + "$id": "329", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "330", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "218" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isRecordUnknown", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get", + "decorators": [] + }, { - "$id": "311", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "312", - "kind": "constant", - "valueType": { - "$id": "313", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "331", + "name": "put", + "resourceName": "IsUnknown", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "332", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "333", + "kind": "constant", + "valueType": { + "$id": "334", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "314", - "statusCodes": [ - 200 + { + "$id": "335", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "218" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "232" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "336", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isRecordUnknown", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsUnknownDiscriminated", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get", - "decorators": [] - }, - { - "$id": "315", - "name": "put", - "resourceName": "ExtendsUnknownDiscriminated", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "316", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "317", - "kind": "constant", - "valueType": { - "$id": "318", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "319", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "337", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "232" + "$id": "338", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "339", + "type": { + "$id": "340", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "341", + "kind": "client", + "name": "IsUnknownDerived", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "342", + "name": "get", + "resourceName": "IsUnknownDerived", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "343", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "344", + "kind": "constant", + "valueType": { + "$id": "345", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "346", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "217" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isRecordUnknownDerived", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get", + "decorators": [] + }, { - "$id": "320", - "statusCodes": [ - 204 + "$id": "347", + "name": "put", + "resourceName": "IsUnknownDerived", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "348", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "349", + "kind": "constant", + "valueType": { + "$id": "350", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "351", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "217" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "352", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isRecordUnknownDerived", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsUnknownDiscriminated", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "321", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "322", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "323", - "type": { - "$id": "324", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated" - }, - { - "$id": "325", - "name": "IsUnknown", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "326", - "name": "get", - "resourceName": "IsUnknown", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "327", - "name": "accept", - "nameInRequest": "Accept", + "$id": "353", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "328", - "kind": "constant", - "valueType": { - "$id": "329", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "354", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "355", + "type": { + "$id": "356", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "357", + "kind": "client", + "name": "IsUnknownDiscriminated", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "358", + "name": "get", + "resourceName": "IsUnknownDiscriminated", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "359", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "360", + "kind": "constant", + "valueType": { + "$id": "361", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "362", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "192" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isUnknownDiscriminated", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get", + "decorators": [] + }, { - "$id": "330", - "statusCodes": [ - 200 + "$id": "363", + "name": "put", + "resourceName": "IsUnknownDiscriminated", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "364", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "365", + "kind": "constant", + "valueType": { + "$id": "366", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "367", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "192" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "218" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "368", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isUnknownDiscriminated", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isRecordUnknown", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get", - "decorators": [] - }, - { - "$id": "331", - "name": "put", - "resourceName": "IsUnknown", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "332", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "369", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "333", - "kind": "constant", - "valueType": { - "$id": "334", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "335", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "218" + "$id": "370", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "371", + "type": { + "$id": "372", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "373", + "kind": "client", + "name": "ExtendsString", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "374", + "name": "get", + "resourceName": "ExtendsString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "375", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "376", + "kind": "constant", + "valueType": { + "$id": "377", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "378", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "186" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordString", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get", + "decorators": [] + }, { - "$id": "336", - "statusCodes": [ - 204 + "$id": "379", + "name": "put", + "resourceName": "ExtendsString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "380", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "381", + "kind": "constant", + "valueType": { + "$id": "382", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "383", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "186" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "384", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordString", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isRecordUnknown", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "337", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "338", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "339", - "type": { - "$id": "340", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown" - }, - { - "$id": "341", - "name": "IsUnknownDerived", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "342", - "name": "get", - "resourceName": "IsUnknownDerived", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "343", - "name": "accept", - "nameInRequest": "Accept", + "$id": "385", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "344", - "kind": "constant", - "valueType": { - "$id": "345", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "386", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "387", + "type": { + "$id": "388", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "389", + "kind": "client", + "name": "IsString", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "390", + "name": "get", + "resourceName": "IsString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "391", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "392", + "kind": "constant", + "valueType": { + "$id": "393", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "394", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "180" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isRecordstring", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get", + "decorators": [] + }, { - "$id": "346", - "statusCodes": [ - 200 + "$id": "395", + "name": "put", + "resourceName": "IsString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "396", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "397", + "kind": "constant", + "valueType": { + "$id": "398", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "399", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "180" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "217" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "400", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isRecordstring", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isRecordUnknownDerived", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get", - "decorators": [] - }, - { - "$id": "347", - "name": "put", - "resourceName": "IsUnknownDerived", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "348", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "401", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "349", - "kind": "constant", - "valueType": { - "$id": "350", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "402", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, + "isContentType": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "403", + "type": { + "$id": "404", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "405", + "kind": "client", + "name": "SpreadString", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "406", + "name": "get", + "resourceName": "SpreadString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "407", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "408", + "kind": "constant", + "valueType": { + "$id": "409", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "410", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "174" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordString", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get", + "decorators": [] }, { - "$id": "351", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "411", + "name": "put", + "resourceName": "SpreadString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "412", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "413", + "kind": "constant", + "valueType": { + "$id": "414", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "415", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "174" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "416", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordString", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "417", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "217" + "$id": "418", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "352", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "419", + "type": { + "$id": "420", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isRecordUnknownDerived", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, { - "$id": "353", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "354", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "355", - "type": { - "$id": "356", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "421", + "kind": "client", + "name": "ExtendsFloat", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "422", + "name": "get", + "resourceName": "ExtendsFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "423", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "424", + "kind": "constant", + "valueType": { + "$id": "425", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "426", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "168" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordFloat", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived" - }, - { - "$id": "357", - "name": "IsUnknownDiscriminated", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "358", - "name": "get", - "resourceName": "IsUnknownDiscriminated", - "doc": "Get call", - "accessibility": "public", - "parameters": [ { - "$id": "359", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "360", - "kind": "constant", - "valueType": { - "$id": "361", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "427", + "name": "put", + "resourceName": "ExtendsFloat", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "428", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "429", + "kind": "constant", + "valueType": { + "$id": "430", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "362", - "statusCodes": [ - 200 + { + "$id": "431", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "168" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "192" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "432", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordFloat", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isUnknownDiscriminated", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get", - "decorators": [] - }, - { - "$id": "363", - "name": "put", - "resourceName": "IsUnknownDiscriminated", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "364", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "365", - "kind": "constant", - "valueType": { - "$id": "366", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "367", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "433", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "192" + "$id": "434", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "368", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isUnknownDiscriminated", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "369", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "370", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "371", - "type": { - "$id": "372", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated" - }, - { - "$id": "373", - "name": "ExtendsString", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "374", - "name": "get", - "resourceName": "ExtendsString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "375", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "376", - "kind": "constant", - "valueType": { - "$id": "377", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "435", + "type": { + "$id": "436", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "437", + "kind": "client", + "name": "IsFloat", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "438", + "name": "get", + "resourceName": "IsFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "439", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "440", + "kind": "constant", + "valueType": { + "$id": "441", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "442", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "162" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isRecordFloat", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get", + "decorators": [] + }, { - "$id": "378", - "statusCodes": [ - 200 + "$id": "443", + "name": "put", + "resourceName": "IsFloat", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "444", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "445", + "kind": "constant", + "valueType": { + "$id": "446", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "447", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "162" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "186" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "448", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isRecordFloat", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsRecordString", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get", - "decorators": [] - }, - { - "$id": "379", - "name": "put", - "resourceName": "ExtendsString", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "380", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "381", - "kind": "constant", - "valueType": { - "$id": "382", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "383", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "449", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "186" + "$id": "450", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "384", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "451", + "type": { + "$id": "452", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsRecordString", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, { - "$id": "385", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "386", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "387", - "type": { - "$id": "388", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString" - }, - { - "$id": "389", - "name": "IsString", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "390", - "name": "get", - "resourceName": "IsString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "391", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "392", - "kind": "constant", - "valueType": { - "$id": "393", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "394", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "180" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isRecordstring", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get", - "decorators": [] - }, - { - "$id": "395", - "name": "put", - "resourceName": "IsString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "396", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "397", - "kind": "constant", - "valueType": { - "$id": "398", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "399", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "180" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "400", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isRecordstring", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "401", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "402", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "403", - "type": { - "$id": "404", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString" - }, - { - "$id": "405", - "name": "SpreadString", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "406", - "name": "get", - "resourceName": "SpreadString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "407", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "408", - "kind": "constant", - "valueType": { - "$id": "409", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "410", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "174" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordString", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get", - "decorators": [] - }, - { - "$id": "411", - "name": "put", - "resourceName": "SpreadString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "412", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "413", - "kind": "constant", - "valueType": { - "$id": "414", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "415", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "174" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "416", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordString", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "417", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "418", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "419", - "type": { - "$id": "420", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString" - }, - { - "$id": "421", - "name": "ExtendsFloat", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "422", - "name": "get", - "resourceName": "ExtendsFloat", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "423", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "424", - "kind": "constant", - "valueType": { - "$id": "425", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "426", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "168" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsRecordFloat", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get", - "decorators": [] - }, - { - "$id": "427", - "name": "put", - "resourceName": "ExtendsFloat", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "428", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "429", - "kind": "constant", - "valueType": { - "$id": "430", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "431", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "168" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "432", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsRecordFloat", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "433", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "434", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "435", - "type": { - "$id": "436", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat" - }, - { - "$id": "437", - "name": "IsFloat", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "438", - "name": "get", - "resourceName": "IsFloat", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "439", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "440", - "kind": "constant", - "valueType": { - "$id": "441", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "442", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "162" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isRecordFloat", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get", - "decorators": [] - }, - { - "$id": "443", - "name": "put", - "resourceName": "IsFloat", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "444", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "445", - "kind": "constant", - "valueType": { - "$id": "446", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "447", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "162" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "448", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isRecordFloat", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "449", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "450", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "451", - "type": { - "$id": "452", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat" - }, - { - "$id": "453", - "name": "SpreadFloat", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "454", - "name": "get", - "resourceName": "SpreadFloat", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "455", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "456", - "kind": "constant", - "valueType": { - "$id": "457", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "458", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "156" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordFloat", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get", - "decorators": [] - }, - { - "$id": "459", - "name": "put", - "resourceName": "SpreadFloat", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "460", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "461", - "kind": "constant", - "valueType": { - "$id": "462", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "463", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "156" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "464", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordFloat", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "465", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "466", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "467", - "type": { - "$id": "468", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat" - }, - { - "$id": "469", - "name": "ExtendsModel", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "470", - "name": "get", - "resourceName": "ExtendsModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "471", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "472", - "kind": "constant", - "valueType": { - "$id": "473", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "474", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "152" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsRecordModel", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get", - "decorators": [] - }, - { - "$id": "475", - "name": "put", - "resourceName": "ExtendsModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "476", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "477", - "kind": "constant", - "valueType": { - "$id": "478", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "479", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "152" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "480", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsRecordModel", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "481", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "482", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "483", - "type": { - "$id": "484", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel" - }, - { - "$id": "485", - "name": "IsModel", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "486", - "name": "get", - "resourceName": "IsModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "487", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "488", - "kind": "constant", - "valueType": { - "$id": "489", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "490", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "148" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isRecordModel", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get", - "decorators": [] - }, - { - "$id": "491", - "name": "put", - "resourceName": "IsModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "492", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "493", - "kind": "constant", - "valueType": { - "$id": "494", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "495", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "148" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "496", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isRecordModel", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "497", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "498", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "499", - "type": { - "$id": "500", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel" - }, - { - "$id": "501", - "name": "SpreadModel", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "502", - "name": "get", - "resourceName": "SpreadModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "503", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "504", - "kind": "constant", - "valueType": { - "$id": "505", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "506", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "144" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordModel", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get", - "decorators": [] - }, - { - "$id": "507", - "name": "put", - "resourceName": "SpreadModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "508", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "509", - "kind": "constant", - "valueType": { - "$id": "510", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "511", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "144" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "512", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordModel", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "513", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "514", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "515", - "type": { - "$id": "516", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel" - }, - { - "$id": "517", - "name": "ExtendsModelArray", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "518", - "name": "get", - "resourceName": "ExtendsModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "519", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "520", - "kind": "constant", - "valueType": { - "$id": "521", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "522", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "138" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsRecordModelArray", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get", - "decorators": [] - }, - { - "$id": "523", - "name": "put", - "resourceName": "ExtendsModelArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "524", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "525", - "kind": "constant", - "valueType": { - "$id": "526", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "527", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "138" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "528", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsRecordModelArray", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "529", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "530", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "531", - "type": { - "$id": "532", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray" - }, - { - "$id": "533", - "name": "IsModelArray", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "534", - "name": "get", - "resourceName": "IsModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "535", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "536", - "kind": "constant", - "valueType": { - "$id": "537", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "538", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "132" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isRecordModelArray", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get", - "decorators": [] - }, - { - "$id": "539", - "name": "put", - "resourceName": "IsModelArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "540", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "541", - "kind": "constant", - "valueType": { - "$id": "542", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "543", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "132" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "544", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/isRecordModelArray", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "545", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "546", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "547", - "type": { - "$id": "548", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray" - }, - { - "$id": "549", - "name": "SpreadModelArray", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "550", - "name": "get", - "resourceName": "SpreadModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "551", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "552", - "kind": "constant", - "valueType": { - "$id": "553", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "554", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "126" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordModelArray", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get", - "decorators": [] - }, - { - "$id": "555", - "name": "put", - "resourceName": "SpreadModelArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "556", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "557", - "kind": "constant", - "valueType": { - "$id": "558", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "559", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "126" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "560", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordModelArray", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "561", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "562", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "563", - "type": { - "$id": "564", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray" - }, - { - "$id": "565", - "name": "SpreadDifferentString", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "566", - "name": "get", - "resourceName": "SpreadDifferentString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "567", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "568", - "kind": "constant", - "valueType": { - "$id": "569", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "570", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "116" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadDifferentRecordString", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get", - "decorators": [] - }, - { - "$id": "571", - "name": "put", - "resourceName": "SpreadDifferentString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "572", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "573", - "kind": "constant", - "valueType": { - "$id": "574", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "575", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "116" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "576", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadDifferentRecordString", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "577", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "578", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "579", - "type": { - "$id": "580", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString" - }, - { - "$id": "581", - "name": "SpreadDifferentFloat", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "582", - "name": "get", - "resourceName": "SpreadDifferentFloat", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "583", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "584", - "kind": "constant", - "valueType": { - "$id": "585", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "586", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "105" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadDifferentRecordFloat", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get", - "decorators": [] - }, - { - "$id": "587", - "name": "put", - "resourceName": "SpreadDifferentFloat", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "588", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "589", - "kind": "constant", - "valueType": { - "$id": "590", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "591", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "105" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "592", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadDifferentRecordFloat", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "593", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "594", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "595", - "type": { - "$id": "596", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat" - }, - { - "$id": "597", - "name": "SpreadDifferentModel", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "598", - "name": "get", - "resourceName": "SpreadDifferentModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "599", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "600", - "kind": "constant", - "valueType": { - "$id": "601", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "602", - "statusCodes": [ - 200 + "$id": "453", + "kind": "client", + "name": "SpreadFloat", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "454", + "name": "get", + "resourceName": "SpreadFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "455", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "456", + "kind": "constant", + "valueType": { + "$id": "457", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "96" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadDifferentRecordModel", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get", - "decorators": [] - }, - { - "$id": "603", - "name": "put", - "resourceName": "SpreadDifferentModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "604", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "605", - "kind": "constant", - "valueType": { - "$id": "606", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "607", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "96" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "608", - "statusCodes": [ - 204 + "responses": [ + { + "$id": "458", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "156" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadDifferentRecordModel", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "609", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "610", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "611", - "type": { - "$id": "612", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordFloat", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel" - }, - { - "$id": "613", - "name": "SpreadDifferentModelArray", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "614", - "name": "get", - "resourceName": "SpreadDifferentModelArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "615", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "616", - "kind": "constant", - "valueType": { - "$id": "617", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "618", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "80" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadDifferentRecordModelArray", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get", - "decorators": [] - }, - { - "$id": "619", - "name": "put", - "resourceName": "SpreadDifferentModelArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ { - "$id": "620", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "621", - "kind": "constant", - "valueType": { - "$id": "622", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "459", + "name": "put", + "resourceName": "SpreadFloat", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "460", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "461", + "kind": "constant", + "valueType": { + "$id": "462", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "623", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "80" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "624", - "statusCodes": [ - 204 + { + "$id": "463", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "156" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadDifferentRecordModelArray", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "625", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "626", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "627", - "type": { - "$id": "628", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray" - }, - { - "$id": "629", - "name": "ExtendsDifferentSpreadString", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "630", - "name": "get", - "resourceName": "ExtendsDifferentSpreadString", - "doc": "Get call", - "accessibility": "public", + "responses": [ + { + "$id": "464", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordFloat", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.put", + "decorators": [] + } + ], "parameters": [ { - "$id": "631", - "name": "accept", - "nameInRequest": "Accept", + "$id": "465", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "632", - "kind": "constant", - "valueType": { - "$id": "633", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "466", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "467", + "type": { + "$id": "468", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "469", + "kind": "client", + "name": "ExtendsModel", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "470", + "name": "get", + "resourceName": "ExtendsModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "471", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "472", + "kind": "constant", + "valueType": { + "$id": "473", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "474", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "152" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordModel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get", + "decorators": [] + }, { - "$id": "634", - "statusCodes": [ - 200 + "$id": "475", + "name": "put", + "resourceName": "ExtendsModel", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "476", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "477", + "kind": "constant", + "valueType": { + "$id": "478", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "479", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "152" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "115" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "480", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordModel", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsDifferentSpreadString", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get", - "decorators": [] - }, - { - "$id": "635", - "name": "put", - "resourceName": "ExtendsDifferentSpreadString", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "636", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "481", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "637", - "kind": "constant", - "valueType": { - "$id": "638", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "482", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, + "isContentType": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "483", + "type": { + "$id": "484", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "485", + "kind": "client", + "name": "IsModel", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "486", + "name": "get", + "resourceName": "IsModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "487", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "488", + "kind": "constant", + "valueType": { + "$id": "489", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "490", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "148" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isRecordModel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get", + "decorators": [] }, { - "$id": "639", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "491", + "name": "put", + "resourceName": "IsModel", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "492", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "493", + "kind": "constant", + "valueType": { + "$id": "494", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "495", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "148" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "496", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isRecordModel", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.put", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "497", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "115" + "$id": "498", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "499", + "type": { + "$id": "500", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "501", + "kind": "client", + "name": "SpreadModel", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "502", + "name": "get", + "resourceName": "SpreadModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "503", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "504", + "kind": "constant", + "valueType": { + "$id": "505", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "506", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "144" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordModel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get", + "decorators": [] + }, { - "$id": "640", - "statusCodes": [ - 204 + "$id": "507", + "name": "put", + "resourceName": "SpreadModel", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "508", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "509", + "kind": "constant", + "valueType": { + "$id": "510", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "511", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "144" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "512", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordModel", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsDifferentSpreadString", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "641", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "642", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "643", - "type": { - "$id": "644", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString" - }, - { - "$id": "645", - "name": "ExtendsDifferentSpreadFloat", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "646", - "name": "get", - "resourceName": "ExtendsDifferentSpreadFloat", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "647", - "name": "accept", - "nameInRequest": "Accept", + "$id": "513", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "648", - "kind": "constant", - "valueType": { - "$id": "649", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "514", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "515", + "type": { + "$id": "516", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "517", + "kind": "client", + "name": "ExtendsModelArray", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "518", + "name": "get", + "resourceName": "ExtendsModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "519", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "520", + "kind": "constant", + "valueType": { + "$id": "521", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "522", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "138" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordModelArray", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get", + "decorators": [] + }, { - "$id": "650", - "statusCodes": [ - 200 + "$id": "523", + "name": "put", + "resourceName": "ExtendsModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "524", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "525", + "kind": "constant", + "valueType": { + "$id": "526", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "527", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "138" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "104" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "528", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsRecordModelArray", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsDifferentSpreadFloat", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get", - "decorators": [] - }, - { - "$id": "651", - "name": "put", - "resourceName": "ExtendsDifferentSpreadFloat", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "652", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "653", - "kind": "constant", - "valueType": { - "$id": "654", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "655", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "529", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "104" + "$id": "530", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "531", + "type": { + "$id": "532", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "533", + "kind": "client", + "name": "IsModelArray", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "534", + "name": "get", + "resourceName": "IsModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "535", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "536", + "kind": "constant", + "valueType": { + "$id": "537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "538", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "132" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isRecordModelArray", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get", + "decorators": [] + }, { - "$id": "656", - "statusCodes": [ - 204 + "$id": "539", + "name": "put", + "resourceName": "IsModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "540", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "541", + "kind": "constant", + "valueType": { + "$id": "542", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "543", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "132" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "544", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/isRecordModelArray", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsDifferentSpreadFloat", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "657", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "658", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "659", - "type": { - "$id": "660", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat" - }, - { - "$id": "661", - "name": "ExtendsDifferentSpreadModel", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "662", - "name": "get", - "resourceName": "ExtendsDifferentSpreadModel", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "663", - "name": "accept", - "nameInRequest": "Accept", + "$id": "545", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "664", - "kind": "constant", - "valueType": { - "$id": "665", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "546", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "547", + "type": { + "$id": "548", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "549", + "kind": "client", + "name": "SpreadModelArray", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "550", + "name": "get", + "resourceName": "SpreadModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "551", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "552", + "kind": "constant", + "valueType": { + "$id": "553", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "554", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "126" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordModelArray", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get", + "decorators": [] + }, { - "$id": "666", - "statusCodes": [ - 200 + "$id": "555", + "name": "put", + "resourceName": "SpreadModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "556", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "557", + "kind": "constant", + "valueType": { + "$id": "558", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "559", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "126" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "95" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "560", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordModelArray", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsDifferentSpreadModel", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get", - "decorators": [] - }, - { - "$id": "667", - "name": "put", - "resourceName": "ExtendsDifferentSpreadModel", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "668", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "669", - "kind": "constant", - "valueType": { - "$id": "670", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "671", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "561", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "95" + "$id": "562", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "672", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "563", + "type": { + "$id": "564", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsDifferentSpreadModel", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, { - "$id": "673", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "674", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "675", - "type": { - "$id": "676", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "565", + "kind": "client", + "name": "SpreadDifferentString", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "566", + "name": "get", + "resourceName": "SpreadDifferentString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "567", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "568", + "kind": "constant", + "valueType": { + "$id": "569", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "570", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "116" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadDifferentRecordString", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel" - }, - { - "$id": "677", - "name": "ExtendsDifferentSpreadModelArray", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "678", - "name": "get", - "resourceName": "ExtendsDifferentSpreadModelArray", - "doc": "Get call", - "accessibility": "public", + { + "$id": "571", + "name": "put", + "resourceName": "SpreadDifferentString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "572", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "573", + "kind": "constant", + "valueType": { + "$id": "574", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "575", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "116" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "576", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadDifferentRecordString", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.put", + "decorators": [] + } + ], "parameters": [ { - "$id": "679", - "name": "accept", - "nameInRequest": "Accept", + "$id": "577", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "680", - "kind": "constant", - "valueType": { - "$id": "681", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "578", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "579", + "type": { + "$id": "580", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "581", + "kind": "client", + "name": "SpreadDifferentFloat", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "582", + "name": "get", + "resourceName": "SpreadDifferentFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "583", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "584", + "kind": "constant", + "valueType": { + "$id": "585", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "586", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "105" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadDifferentRecordFloat", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get", + "decorators": [] + }, { - "$id": "682", - "statusCodes": [ - 200 + "$id": "587", + "name": "put", + "resourceName": "SpreadDifferentFloat", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "588", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "589", + "kind": "constant", + "valueType": { + "$id": "590", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "591", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "105" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "79" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "592", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadDifferentRecordFloat", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsDifferentSpreadModelArray", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get", - "decorators": [] - }, - { - "$id": "683", - "name": "put", - "resourceName": "ExtendsDifferentSpreadModelArray", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "684", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "593", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "685", - "kind": "constant", - "valueType": { - "$id": "686", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "687", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "79" + "$id": "594", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "595", + "type": { + "$id": "596", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "597", + "kind": "client", + "name": "SpreadDifferentModel", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "598", + "name": "get", + "resourceName": "SpreadDifferentModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "599", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "600", + "kind": "constant", + "valueType": { + "$id": "601", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "602", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "96" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadDifferentRecordModel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get", + "decorators": [] + }, { - "$id": "688", - "statusCodes": [ - 204 + "$id": "603", + "name": "put", + "resourceName": "SpreadDifferentModel", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "604", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "605", + "kind": "constant", + "valueType": { + "$id": "606", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "607", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "96" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "608", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadDifferentRecordModel", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/extendsDifferentSpreadModelArray", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "689", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "690", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "691", - "type": { - "$id": "692", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray" - }, - { - "$id": "693", - "name": "MultipleSpread", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "694", - "name": "get", - "resourceName": "MultipleSpread", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "695", - "name": "accept", - "nameInRequest": "Accept", + "$id": "609", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "696", - "kind": "constant", - "valueType": { - "$id": "697", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "610", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "611", + "type": { + "$id": "612", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "613", + "kind": "client", + "name": "SpreadDifferentModelArray", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "614", + "name": "get", + "resourceName": "SpreadDifferentModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "615", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "616", + "kind": "constant", + "valueType": { + "$id": "617", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "618", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "80" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadDifferentRecordModelArray", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get", + "decorators": [] + }, { - "$id": "698", - "statusCodes": [ - 200 + "$id": "619", + "name": "put", + "resourceName": "SpreadDifferentModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "620", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "621", + "kind": "constant", + "valueType": { + "$id": "622", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "623", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "80" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "71" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "624", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadDifferentRecordModelArray", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/multipleSpreadRecord", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get", - "decorators": [] - }, - { - "$id": "699", - "name": "put", - "resourceName": "MultipleSpread", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "700", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "701", - "kind": "constant", - "valueType": { - "$id": "702", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "703", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "625", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "71" + "$id": "626", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "627", + "type": { + "$id": "628", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "629", + "kind": "client", + "name": "ExtendsDifferentSpreadString", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "630", + "name": "get", + "resourceName": "ExtendsDifferentSpreadString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "631", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "632", + "kind": "constant", + "valueType": { + "$id": "633", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "634", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "115" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsDifferentSpreadString", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get", + "decorators": [] + }, { - "$id": "704", - "statusCodes": [ - 204 + "$id": "635", + "name": "put", + "resourceName": "ExtendsDifferentSpreadString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "636", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "637", + "kind": "constant", + "valueType": { + "$id": "638", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "639", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "115" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "640", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsDifferentSpreadString", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/multipleSpreadRecord", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "705", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "706", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "707", - "type": { - "$id": "708", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread" - }, - { - "$id": "709", - "name": "SpreadRecordUnion", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "710", - "name": "get", - "resourceName": "SpreadRecordUnion", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "711", - "name": "accept", - "nameInRequest": "Accept", + "$id": "641", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "712", - "kind": "constant", - "valueType": { - "$id": "713", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "642", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "643", + "type": { + "$id": "644", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "645", + "kind": "client", + "name": "ExtendsDifferentSpreadFloat", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "646", + "name": "get", + "resourceName": "ExtendsDifferentSpreadFloat", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "647", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "648", + "kind": "constant", + "valueType": { + "$id": "649", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "650", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "104" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsDifferentSpreadFloat", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get", + "decorators": [] + }, { - "$id": "714", - "statusCodes": [ - 200 + "$id": "651", + "name": "put", + "resourceName": "ExtendsDifferentSpreadFloat", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "652", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "653", + "kind": "constant", + "valueType": { + "$id": "654", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "655", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "104" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "63" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "656", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsDifferentSpreadFloat", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordUnion", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get", - "decorators": [] - }, - { - "$id": "715", - "name": "put", - "resourceName": "SpreadRecordUnion", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "716", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "717", - "kind": "constant", - "valueType": { - "$id": "718", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "719", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "657", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "63" + "$id": "658", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "720", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "659", + "type": { + "$id": "660", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordUnion", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "721", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "722", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "723", - "type": { - "$id": "724", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat", + "apiVersions": [], + "parent": { + "$ref": "272" } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion" - }, - { - "$id": "725", - "name": "SpreadRecordNonDiscriminatedUnion", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ + }, { - "$id": "726", - "name": "get", - "resourceName": "SpreadRecordNonDiscriminatedUnion", - "doc": "Get call", - "accessibility": "public", + "$id": "661", + "kind": "client", + "name": "ExtendsDifferentSpreadModel", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "662", + "name": "get", + "resourceName": "ExtendsDifferentSpreadModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "663", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "664", + "kind": "constant", + "valueType": { + "$id": "665", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "666", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "95" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsDifferentSpreadModel", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get", + "decorators": [] + }, + { + "$id": "667", + "name": "put", + "resourceName": "ExtendsDifferentSpreadModel", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "668", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "669", + "kind": "constant", + "valueType": { + "$id": "670", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "671", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "95" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "672", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsDifferentSpreadModel", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.put", + "decorators": [] + } + ], "parameters": [ { - "$id": "727", - "name": "accept", - "nameInRequest": "Accept", + "$id": "673", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "728", - "kind": "constant", - "valueType": { - "$id": "729", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "674", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "675", + "type": { + "$id": "676", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "677", + "kind": "client", + "name": "ExtendsDifferentSpreadModelArray", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "678", + "name": "get", + "resourceName": "ExtendsDifferentSpreadModelArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "679", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "680", + "kind": "constant", + "valueType": { + "$id": "681", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "682", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "79" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsDifferentSpreadModelArray", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get", + "decorators": [] + }, { - "$id": "730", - "statusCodes": [ - 200 + "$id": "683", + "name": "put", + "resourceName": "ExtendsDifferentSpreadModelArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "684", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "685", + "kind": "constant", + "valueType": { + "$id": "686", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "687", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "79" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "48" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "688", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/extendsDifferentSpreadModelArray", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get", - "decorators": [] - }, - { - "$id": "731", - "name": "put", - "resourceName": "SpreadRecordNonDiscriminatedUnion", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "732", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "733", - "kind": "constant", - "valueType": { - "$id": "734", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "735", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "689", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "48" + "$id": "690", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "691", + "type": { + "$id": "692", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "693", + "kind": "client", + "name": "MultipleSpread", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "694", + "name": "get", + "resourceName": "MultipleSpread", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "695", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "696", + "kind": "constant", + "valueType": { + "$id": "697", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "698", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "71" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/multipleSpreadRecord", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get", + "decorators": [] + }, { - "$id": "736", - "statusCodes": [ - 204 + "$id": "699", + "name": "put", + "resourceName": "MultipleSpread", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "700", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "701", + "kind": "constant", + "valueType": { + "$id": "702", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "703", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "71" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "704", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/multipleSpreadRecord", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "737", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "738", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "739", - "type": { - "$id": "740", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion" - }, - { - "$id": "741", - "name": "SpreadRecordNonDiscriminatedUnion2", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "742", - "name": "get", - "resourceName": "SpreadRecordNonDiscriminatedUnion2", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "743", - "name": "accept", - "nameInRequest": "Accept", + "$id": "705", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "744", - "kind": "constant", - "valueType": { - "$id": "745", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "706", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "707", + "type": { + "$id": "708", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "709", + "kind": "client", + "name": "SpreadRecordUnion", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "710", + "name": "get", + "resourceName": "SpreadRecordUnion", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "711", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "712", + "kind": "constant", + "valueType": { + "$id": "713", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "714", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "63" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordUnion", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get", + "decorators": [] + }, { - "$id": "746", - "statusCodes": [ - 200 + "$id": "715", + "name": "put", + "resourceName": "SpreadRecordUnion", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "716", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "717", + "kind": "constant", + "valueType": { + "$id": "718", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "719", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "63" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "42" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "720", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordUnion", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion2", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get", - "decorators": [] - }, - { - "$id": "747", - "name": "put", - "resourceName": "SpreadRecordNonDiscriminatedUnion2", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "748", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "749", - "kind": "constant", - "valueType": { - "$id": "750", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "751", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "721", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "42" + "$id": "722", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "723", + "type": { + "$id": "724", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "725", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "726", + "name": "get", + "resourceName": "SpreadRecordNonDiscriminatedUnion", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "727", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "728", + "kind": "constant", + "valueType": { + "$id": "729", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "730", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "48" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get", + "decorators": [] + }, { - "$id": "752", - "statusCodes": [ - 204 + "$id": "731", + "name": "put", + "resourceName": "SpreadRecordNonDiscriminatedUnion", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "732", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "733", + "kind": "constant", + "valueType": { + "$id": "734", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "735", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "48" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "736", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion2", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "753", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "754", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "755", - "type": { - "$id": "756", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2" - }, - { - "$id": "757", - "name": "SpreadRecordNonDiscriminatedUnion3", - "namespace": "Type.Property.AdditionalProperties", - "operations": [ - { - "$id": "758", - "name": "get", - "resourceName": "SpreadRecordNonDiscriminatedUnion3", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "759", - "name": "accept", - "nameInRequest": "Accept", + "$id": "737", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "760", - "kind": "constant", - "valueType": { - "$id": "761", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "738", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "739", + "type": { + "$id": "740", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "741", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion2", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "742", + "name": "get", + "resourceName": "SpreadRecordNonDiscriminatedUnion2", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "743", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "744", + "kind": "constant", + "valueType": { + "$id": "745", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "746", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "42" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion2", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.get", + "decorators": [] + }, { - "$id": "762", - "statusCodes": [ - 200 + "$id": "747", + "name": "put", + "resourceName": "SpreadRecordNonDiscriminatedUnion2", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "748", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "749", + "kind": "constant", + "valueType": { + "$id": "750", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "751", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "42" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "11" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "752", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion2", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion3", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get", - "decorators": [] - }, - { - "$id": "763", - "name": "put", - "resourceName": "SpreadRecordNonDiscriminatedUnion3", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "764", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "753", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "765", - "kind": "constant", - "valueType": { - "$id": "766", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "754", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, + "isContentType": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "755", + "type": { + "$id": "756", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } + } + ], + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2", + "apiVersions": [], + "parent": { + "$ref": "272" + } + }, + { + "$id": "757", + "kind": "client", + "name": "SpreadRecordNonDiscriminatedUnion3", + "namespace": "Type.Property.AdditionalProperties", + "operations": [ + { + "$id": "758", + "name": "get", + "resourceName": "SpreadRecordNonDiscriminatedUnion3", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "759", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "760", + "kind": "constant", + "valueType": { + "$id": "761", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "762", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "11" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion3", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get", + "decorators": [] }, { - "$id": "767", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "763", + "name": "put", + "resourceName": "SpreadRecordNonDiscriminatedUnion3", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "764", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "765", + "kind": "constant", + "valueType": { + "$id": "766", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "767", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "11" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "768", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion3", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "769", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "11" + "$id": "770", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "768", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "771", + "type": { + "$id": "772", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/additionalProperties/spreadRecordNonDiscriminatedUnion3", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.put", - "decorators": [] - } - ], - "parent": "AdditionalPropertiesClient", - "parameters": [ - { - "$id": "769", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "770", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "771", - "type": { - "$id": "772", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3", + "apiVersions": [], + "parent": { + "$ref": "272" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3" + ] } ] } 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 dfdabe476f0..575d9c3ada7 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 @@ -579,6 +579,7 @@ "clients": [ { "$id": "81", + "kind": "client", "name": "NullableClient", "namespace": "Type.Property.Nullable", "doc": "Illustrates models with nullable properties.", @@ -616,2191 +617,2222 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable" - }, - { - "$id": "86", - "name": "String", - "namespace": "Type.Property.Nullable", - "operations": [ + "crossLanguageDefinitionId": "Type.Property.Nullable", + "apiVersions": [], + "children": [ { - "$id": "87", - "name": "getNonNull", - "resourceName": "String", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ + "$id": "86", + "kind": "client", + "name": "String", + "namespace": "Type.Property.Nullable", + "operations": [ + { + "$id": "87", + "name": "getNonNull", + "resourceName": "String", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "88", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "89", + "kind": "constant", + "valueType": { + "$id": "90", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "91", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "71" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/nullable/string/non-null", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNonNull", + "decorators": [] + }, { - "$id": "88", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "89", - "kind": "constant", - "valueType": { - "$id": "90", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "92", + "name": "getNull", + "resourceName": "String", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "93", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "94", + "kind": "constant", + "valueType": { + "$id": "95", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "96", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "71" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/nullable/string/null", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNull", + "decorators": [] + }, + { + "$id": "97", + "name": "patchNonNull", + "resourceName": "String", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "98", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$id": "99", + "kind": "constant", + "valueType": { + "$id": "100", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + { + "$id": "101", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "71" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "102", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/property/nullable/string/non-null", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull", + "decorators": [] + }, { - "$id": "91", - "statusCodes": [ - 200 + "$id": "103", + "name": "patchNull", + "resourceName": "String", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "104", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$id": "105", + "kind": "constant", + "valueType": { + "$id": "106", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "107", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "71" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "71" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "responses": [ + { + "$id": "108", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/property/nullable/string/null", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/nullable/string/non-null", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNonNull", - "decorators": [] - }, - { - "$id": "92", - "name": "getNull", - "resourceName": "String", - "doc": "Get models that will return the default object", - "accessibility": "public", "parameters": [ { - "$id": "93", - "name": "accept", - "nameInRequest": "Accept", + "$id": "109", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "94", - "kind": "constant", - "valueType": { - "$id": "95", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "110", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "96", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "71" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "111", + "type": { + "$id": "112", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/nullable/string/null", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.String.getNull", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.String", + "apiVersions": [], + "parent": { + "$ref": "81" + } }, { - "$id": "97", - "name": "patchNonNull", - "resourceName": "String", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ + "$id": "113", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.Nullable", + "operations": [ + { + "$id": "114", + "name": "getNonNull", + "resourceName": "Bytes", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "115", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "116", + "kind": "constant", + "valueType": { + "$id": "117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "118", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "61" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/nullable/bytes/non-null", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNonNull", + "decorators": [] + }, { - "$id": "98", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$id": "99", - "kind": "constant", - "valueType": { - "$id": "100", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "119", + "name": "getNull", + "resourceName": "Bytes", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "120", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "121", + "kind": "constant", + "valueType": { + "$id": "122", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "123", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "61" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/nullable/bytes/null", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNull", + "decorators": [] }, { - "$id": "101", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "71" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "124", + "name": "patchNonNull", + "resourceName": "Bytes", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "125", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$id": "126", + "kind": "constant", + "valueType": { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "128", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "61" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "129", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/property/nullable/bytes/non-null", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull", + "decorators": [] + }, { - "$id": "102", - "statusCodes": [ - 204 + "$id": "130", + "name": "patchNull", + "resourceName": "Bytes", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "131", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$id": "132", + "kind": "constant", + "valueType": { + "$id": "133", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "134", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "61" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "135", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/property/nullable/bytes/null", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull", + "decorators": [] } ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/property/nullable/string/non-null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull", - "decorators": [] - }, - { - "$id": "103", - "name": "patchNull", - "resourceName": "String", - "doc": "Put a body with default properties.", - "accessibility": "public", "parameters": [ { - "$id": "104", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$id": "105", - "kind": "constant", - "valueType": { - "$id": "106", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "107", - "name": "body", - "nameInRequest": "body", + "$id": "136", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "71" + "$id": "137", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "138", + "type": { + "$id": "139", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes", + "apiVersions": [], + "parent": { + "$ref": "81" + } + }, + { + "$id": "140", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.Nullable", + "operations": [ + { + "$id": "141", + "name": "getNonNull", + "resourceName": "Datetime", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "142", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "143", + "kind": "constant", + "valueType": { + "$id": "144", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "145", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "50" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/nullable/datetime/non-null", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNonNull", + "decorators": [] + }, { - "$id": "108", - "statusCodes": [ - 204 + "$id": "146", + "name": "getNull", + "resourceName": "Datetime", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "147", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "148", + "kind": "constant", + "valueType": { + "$id": "149", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/property/nullable/string/null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNull", - "decorators": [] - } - ], - "parent": "NullableClient", - "parameters": [ - { - "$id": "109", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "110", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "111", - "type": { - "$id": "112", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "responses": [ + { + "$id": "150", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "50" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/nullable/datetime/null", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNull", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.String" - }, - { - "$id": "113", - "name": "Bytes", - "namespace": "Type.Property.Nullable", - "operations": [ - { - "$id": "114", - "name": "getNonNull", - "resourceName": "Bytes", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ { - "$id": "115", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "116", - "kind": "constant", - "valueType": { - "$id": "117", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "151", + "name": "patchNonNull", + "resourceName": "Datetime", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "152", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$id": "153", + "kind": "constant", + "valueType": { + "$id": "154", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + { + "$id": "155", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "50" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "156", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/property/nullable/datetime/non-null", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull", + "decorators": [] + }, { - "$id": "118", - "statusCodes": [ - 200 + "$id": "157", + "name": "patchNull", + "resourceName": "Datetime", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "158", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$id": "159", + "kind": "constant", + "valueType": { + "$id": "160", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "161", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "50" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "61" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "responses": [ + { + "$id": "162", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/property/nullable/datetime/null", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/nullable/bytes/non-null", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNonNull", - "decorators": [] - }, - { - "$id": "119", - "name": "getNull", - "resourceName": "Bytes", - "doc": "Get models that will return the default object", - "accessibility": "public", "parameters": [ { - "$id": "120", - "name": "accept", - "nameInRequest": "Accept", + "$id": "163", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "121", - "kind": "constant", - "valueType": { - "$id": "122", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "164", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "123", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "61" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "165", + "type": { + "$id": "166", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/nullable/bytes/null", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNull", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime", + "apiVersions": [], + "parent": { + "$ref": "81" + } }, { - "$id": "124", - "name": "patchNonNull", - "resourceName": "Bytes", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "125", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$id": "126", - "kind": "constant", - "valueType": { - "$id": "127", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "167", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.Nullable", + "operations": [ + { + "$id": "168", + "name": "getNonNull", + "resourceName": "Duration", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "169", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "170", + "kind": "constant", + "valueType": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "172", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "39" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/nullable/duration/non-null", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNonNull", + "decorators": [] }, { - "$id": "128", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "61" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "129", - "statusCodes": [ - 204 + "$id": "173", + "name": "getNull", + "resourceName": "Duration", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "174", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "175", + "kind": "constant", + "valueType": { + "$id": "176", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/property/nullable/bytes/non-null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull", - "decorators": [] - }, - { - "$id": "130", - "name": "patchNull", - "resourceName": "Bytes", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "131", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$id": "132", - "kind": "constant", - "valueType": { - "$id": "133", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "responses": [ + { + "$id": "177", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "39" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/nullable/duration/null", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNull", + "decorators": [] }, { - "$id": "134", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "61" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "135", - "statusCodes": [ - 204 + "$id": "178", + "name": "patchNonNull", + "resourceName": "Duration", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "179", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$id": "180", + "kind": "constant", + "valueType": { + "$id": "181", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "182", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "39" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/property/nullable/bytes/null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNull", - "decorators": [] - } - ], - "parent": "NullableClient", - "parameters": [ - { - "$id": "136", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "137", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "138", - "type": { - "$id": "139", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "responses": [ + { + "$id": "183", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/property/nullable/duration/non-null", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Bytes" - }, - { - "$id": "140", - "name": "Datetime", - "namespace": "Type.Property.Nullable", - "operations": [ - { - "$id": "141", - "name": "getNonNull", - "resourceName": "Datetime", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ { - "$id": "142", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "143", - "kind": "constant", - "valueType": { - "$id": "144", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "184", + "name": "patchNull", + "resourceName": "Duration", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "185", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$id": "186", + "kind": "constant", + "valueType": { + "$id": "187", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "145", - "statusCodes": [ - 200 + { + "$id": "188", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "39" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "50" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "responses": [ + { + "$id": "189", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/property/nullable/duration/null", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/nullable/datetime/non-null", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNonNull", - "decorators": [] - }, - { - "$id": "146", - "name": "getNull", - "resourceName": "Datetime", - "doc": "Get models that will return the default object", - "accessibility": "public", "parameters": [ { - "$id": "147", - "name": "accept", - "nameInRequest": "Accept", + "$id": "190", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "148", - "kind": "constant", - "valueType": { - "$id": "149", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "191", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "150", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "50" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/nullable/datetime/null", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNull", - "decorators": [] - }, - { - "$id": "151", - "name": "patchNonNull", - "resourceName": "Datetime", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "152", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$id": "153", - "kind": "constant", - "valueType": { - "$id": "154", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "192", + "type": { + "$id": "193", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "155", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "50" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "156", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "value": "http://localhost:3000" + } } ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/property/nullable/datetime/non-null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.Duration", + "apiVersions": [], + "parent": { + "$ref": "81" + } }, { - "$id": "157", - "name": "patchNull", - "resourceName": "Datetime", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "158", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$id": "159", - "kind": "constant", - "valueType": { - "$id": "160", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "194", + "kind": "client", + "name": "CollectionsByte", + "namespace": "Type.Property.Nullable", + "operations": [ + { + "$id": "195", + "name": "getNonNull", + "resourceName": "CollectionsByte", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "196", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "197", + "kind": "constant", + "valueType": { + "$id": "198", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "199", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "28" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/nullable/collections/bytes/non-null", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNonNull", + "decorators": [] }, { - "$id": "161", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "50" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "162", - "statusCodes": [ - 204 + "$id": "200", + "name": "getNull", + "resourceName": "CollectionsByte", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "201", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "202", + "kind": "constant", + "valueType": { + "$id": "203", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/property/nullable/datetime/null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNull", - "decorators": [] - } - ], - "parent": "NullableClient", - "parameters": [ - { - "$id": "163", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "164", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "165", - "type": { - "$id": "166", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "responses": [ + { + "$id": "204", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "28" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/nullable/collections/bytes/null", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNull", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Datetime" - }, - { - "$id": "167", - "name": "Duration", - "namespace": "Type.Property.Nullable", - "operations": [ - { - "$id": "168", - "name": "getNonNull", - "resourceName": "Duration", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ { - "$id": "169", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "170", - "kind": "constant", - "valueType": { - "$id": "171", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "205", + "name": "patchNonNull", + "resourceName": "CollectionsByte", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "206", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$id": "207", + "kind": "constant", + "valueType": { + "$id": "208", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "172", - "statusCodes": [ - 200 + { + "$id": "209", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "28" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "39" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/nullable/duration/non-null", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNonNull", - "decorators": [] - }, - { - "$id": "173", - "name": "getNull", - "resourceName": "Duration", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "174", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "175", - "kind": "constant", - "valueType": { - "$id": "176", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "177", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "39" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/nullable/duration/null", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNull", - "decorators": [] - }, - { - "$id": "178", - "name": "patchNonNull", - "resourceName": "Duration", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "179", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$id": "180", - "kind": "constant", - "valueType": { - "$id": "181", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "182", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "39" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "183", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/property/nullable/duration/non-null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull", - "decorators": [] - }, - { - "$id": "184", - "name": "patchNull", - "resourceName": "Duration", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "185", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$id": "186", - "kind": "constant", - "valueType": { - "$id": "187", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "188", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "39" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "189", - "statusCodes": [ - 204 + "responses": [ + { + "$id": "210", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/property/nullable/duration/null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNull", - "decorators": [] - } - ], - "parent": "NullableClient", - "parameters": [ - { - "$id": "190", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "191", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "192", - "type": { - "$id": "193", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.Duration" - }, - { - "$id": "194", - "name": "CollectionsByte", - "namespace": "Type.Property.Nullable", - "operations": [ - { - "$id": "195", - "name": "getNonNull", - "resourceName": "CollectionsByte", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "196", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "197", - "kind": "constant", - "valueType": { - "$id": "198", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "199", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "28" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/nullable/collections/bytes/non-null", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNonNull", - "decorators": [] - }, - { - "$id": "200", - "name": "getNull", - "resourceName": "CollectionsByte", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "201", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "202", - "kind": "constant", - "valueType": { - "$id": "203", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "204", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "28" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/nullable/collections/bytes/null", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNull", - "decorators": [] - }, - { - "$id": "205", - "name": "patchNonNull", - "resourceName": "CollectionsByte", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "206", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$id": "207", - "kind": "constant", - "valueType": { - "$id": "208", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "209", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "28" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "210", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/property/nullable/collections/bytes/non-null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull", - "decorators": [] - }, - { - "$id": "211", - "name": "patchNull", - "resourceName": "CollectionsByte", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "212", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$id": "213", - "kind": "constant", - "valueType": { - "$id": "214", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "215", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "28" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "216", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/property/nullable/collections/bytes/null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull", - "decorators": [] - } - ], - "parent": "NullableClient", - "parameters": [ - { - "$id": "217", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "218", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "219", - "type": { - "$id": "220", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte" - }, - { - "$id": "221", - "name": "CollectionsModel", - "namespace": "Type.Property.Nullable", - "operations": [ - { - "$id": "222", - "name": "getNonNull", - "resourceName": "CollectionsModel", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "223", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "224", - "kind": "constant", - "valueType": { - "$id": "225", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "226", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "13" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/nullable/collections/model/non-null", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNonNull", - "decorators": [] - }, - { - "$id": "227", - "name": "getNull", - "resourceName": "CollectionsModel", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "228", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "229", - "kind": "constant", - "valueType": { - "$id": "230", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "231", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "13" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/nullable/collections/model/null", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNull", - "decorators": [] - }, - { - "$id": "232", - "name": "patchNonNull", - "resourceName": "CollectionsModel", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "233", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$id": "234", - "kind": "constant", - "valueType": { - "$id": "235", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/property/nullable/collections/bytes/non-null", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull", + "decorators": [] }, { - "$id": "236", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "13" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "237", - "statusCodes": [ - 204 + "$id": "211", + "name": "patchNull", + "resourceName": "CollectionsByte", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "212", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$id": "213", + "kind": "constant", + "valueType": { + "$id": "214", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "215", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "28" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "216", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/property/nullable/collections/bytes/null", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNull", + "decorators": [] } ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/property/nullable/collections/model/non-null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull", - "decorators": [] - }, - { - "$id": "238", - "name": "patchNull", - "resourceName": "CollectionsModel", - "doc": "Put a body with default properties.", - "accessibility": "public", "parameters": [ { - "$id": "239", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$id": "240", - "kind": "constant", - "valueType": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "242", - "name": "body", - "nameInRequest": "body", + "$id": "217", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "13" + "$id": "218", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "219", + "type": { + "$id": "220", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte", + "apiVersions": [], + "parent": { + "$ref": "81" + } + }, + { + "$id": "221", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.Nullable", + "operations": [ + { + "$id": "222", + "name": "getNonNull", + "resourceName": "CollectionsModel", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "223", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "224", + "kind": "constant", + "valueType": { + "$id": "225", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "226", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "13" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/nullable/collections/model/non-null", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNonNull", + "decorators": [] + }, { - "$id": "243", - "statusCodes": [ - 204 + "$id": "227", + "name": "getNull", + "resourceName": "CollectionsModel", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "228", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "229", + "kind": "constant", + "valueType": { + "$id": "230", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/property/nullable/collections/model/null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull", - "decorators": [] - } - ], - "parent": "NullableClient", - "parameters": [ - { - "$id": "244", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "245", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "246", - "type": { - "$id": "247", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "responses": [ + { + "$id": "231", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "13" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/nullable/collections/model/null", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNull", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel" - }, - { - "$id": "248", - "name": "CollectionsString", - "namespace": "Type.Property.Nullable", - "operations": [ - { - "$id": "249", - "name": "getNonNull", - "resourceName": "CollectionsString", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ { - "$id": "250", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "251", - "kind": "constant", - "valueType": { - "$id": "252", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "232", + "name": "patchNonNull", + "resourceName": "CollectionsModel", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "233", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$id": "234", + "kind": "constant", + "valueType": { + "$id": "235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + { + "$id": "236", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "13" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "237", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/property/nullable/collections/model/non-null", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull", + "decorators": [] + }, { - "$id": "253", - "statusCodes": [ - 200 + "$id": "238", + "name": "patchNull", + "resourceName": "CollectionsModel", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "239", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$id": "240", + "kind": "constant", + "valueType": { + "$id": "241", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "242", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "13" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "2" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "responses": [ + { + "$id": "243", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/property/nullable/collections/model/null", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNull", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/nullable/collections/string/non-null", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNonNull", - "decorators": [] - }, - { - "$id": "254", - "name": "getNull", - "resourceName": "CollectionsString", - "doc": "Get models that will return the default object", - "accessibility": "public", "parameters": [ { - "$id": "255", - "name": "accept", - "nameInRequest": "Accept", + "$id": "244", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "256", - "kind": "constant", - "valueType": { - "$id": "257", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "245", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "258", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "2" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "246", + "type": { + "$id": "247", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/nullable/collections/string/null", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNull", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel", + "apiVersions": [], + "parent": { + "$ref": "81" + } }, { - "$id": "259", - "name": "patchNonNull", - "resourceName": "CollectionsString", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ + "$id": "248", + "kind": "client", + "name": "CollectionsString", + "namespace": "Type.Property.Nullable", + "operations": [ + { + "$id": "249", + "name": "getNonNull", + "resourceName": "CollectionsString", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "250", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "251", + "kind": "constant", + "valueType": { + "$id": "252", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "253", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/nullable/collections/string/non-null", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNonNull", + "decorators": [] + }, { - "$id": "260", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$id": "261", - "kind": "constant", - "valueType": { - "$id": "262", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "254", + "name": "getNull", + "resourceName": "CollectionsString", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "255", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "256", + "kind": "constant", + "valueType": { + "$id": "257", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "258", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "2" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/nullable/collections/string/null", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNull", + "decorators": [] }, { - "$id": "263", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "2" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "259", + "name": "patchNonNull", + "resourceName": "CollectionsString", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "260", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$id": "261", + "kind": "constant", + "valueType": { + "$id": "262", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "263", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "264", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/property/nullable/collections/string/non-null", + "requestMediaTypes": [ + "application/merge-patch+json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull", + "decorators": [] + }, { - "$id": "264", - "statusCodes": [ - 204 + "$id": "265", + "name": "patchNull", + "resourceName": "CollectionsString", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "266", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "content-type is application/merge-patch+json", + "type": { + "$id": "267", + "kind": "constant", + "valueType": { + "$id": "268", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/merge-patch+json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "269", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "2" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "270", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PATCH", + "uri": "{endpoint}", + "path": "/type/property/nullable/collections/string/null", + "requestMediaTypes": [ + "application/merge-patch+json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": false, + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull", + "decorators": [] } ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/property/nullable/collections/string/non-null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull", - "decorators": [] - }, - { - "$id": "265", - "name": "patchNull", - "resourceName": "CollectionsString", - "doc": "Put a body with default properties.", - "accessibility": "public", "parameters": [ { - "$id": "266", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "content-type is application/merge-patch+json", - "type": { - "$id": "267", - "kind": "constant", - "valueType": { - "$id": "268", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/merge-patch+json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "269", - "name": "body", - "nameInRequest": "body", + "$id": "271", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "2" + "$id": "272", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "270", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "273", + "type": { + "$id": "274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PATCH", - "uri": "{endpoint}", - "path": "/type/property/nullable/collections/string/null", - "requestMediaTypes": [ - "application/merge-patch+json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": false, - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNull", - "decorators": [] - } - ], - "parent": "NullableClient", - "parameters": [ - { - "$id": "271", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "272", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "273", - "type": { - "$id": "274", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString", + "apiVersions": [], + "parent": { + "$ref": "81" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString" + ] } ] } 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 6b5940e7caf..050f2015d6f 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 @@ -952,6 +952,7 @@ "clients": [ { "$id": "114", + "kind": "client", "name": "OptionalClient", "namespace": "Type.Property.Optional", "doc": "Illustrates models with optional properties.", @@ -989,5000 +990,5067 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional" - }, - { - "$id": "119", - "name": "String", - "namespace": "Type.Property.Optional", - "operations": [ + "crossLanguageDefinitionId": "Type.Property.Optional", + "apiVersions": [], + "children": [ { - "$id": "120", - "name": "getAll", - "resourceName": "String", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ + "$id": "119", + "kind": "client", + "name": "String", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "120", + "name": "getAll", + "resourceName": "String", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "121", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "122", + "kind": "constant", + "valueType": { + "$id": "123", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "124", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "74" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/string/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.String.getAll", + "decorators": [] + }, { - "$id": "121", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "122", - "kind": "constant", - "valueType": { - "$id": "123", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "125", + "name": "getDefault", + "resourceName": "String", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "126", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "127", + "kind": "constant", + "valueType": { + "$id": "128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "129", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "74" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/string/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.String.getDefault", + "decorators": [] + }, + { + "$id": "130", + "name": "putAll", + "resourceName": "String", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "131", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "132", + "kind": "constant", + "valueType": { + "$id": "133", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + { + "$id": "134", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "74" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "135", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/string/all", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.String.putAll", + "decorators": [] + }, { - "$id": "124", - "statusCodes": [ - 200 + "$id": "136", + "name": "putDefault", + "resourceName": "String", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "137", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "138", + "kind": "constant", + "valueType": { + "$id": "139", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "140", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "74" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "74" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "141", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/string/default", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.String.putDefault", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/string/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.String.getAll", - "decorators": [] - }, - { - "$id": "125", - "name": "getDefault", - "resourceName": "String", - "doc": "Get models that will return the default object", - "accessibility": "public", "parameters": [ { - "$id": "126", - "name": "accept", - "nameInRequest": "Accept", + "$id": "142", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "127", - "kind": "constant", - "valueType": { - "$id": "128", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "143", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "144", + "type": { + "$id": "145", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.String", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "146", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "147", + "name": "getAll", + "resourceName": "Bytes", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "148", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "149", + "kind": "constant", + "valueType": { + "$id": "150", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "151", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "109" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/bytes/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll", + "decorators": [] + }, { - "$id": "129", - "statusCodes": [ - 200 + "$id": "152", + "name": "getDefault", + "resourceName": "Bytes", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "153", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "154", + "kind": "constant", + "valueType": { + "$id": "155", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "74" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "156", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "109" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/bytes/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getDefault", + "decorators": [] + }, + { + "$id": "157", + "name": "putAll", + "resourceName": "Bytes", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "158", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "159", + "kind": "constant", + "valueType": { + "$id": "160", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "161", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "109" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "162", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/bytes/all", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll", + "decorators": [] + }, + { + "$id": "163", + "name": "putDefault", + "resourceName": "Bytes", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "164", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "165", + "kind": "constant", + "valueType": { + "$id": "166", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "167", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "109" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "168", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/bytes/default", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/string/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.String.getDefault", - "decorators": [] - }, - { - "$id": "130", - "name": "putAll", - "resourceName": "String", - "doc": "Put a body with all properties present.", - "accessibility": "public", "parameters": [ { - "$id": "131", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "132", - "kind": "constant", - "valueType": { - "$id": "133", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "134", - "name": "body", - "nameInRequest": "body", + "$id": "169", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "74" + "$id": "170", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "171", + "type": { + "$id": "172", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.Bytes", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "173", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "174", + "name": "getAll", + "resourceName": "Datetime", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "175", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "176", + "kind": "constant", + "valueType": { + "$id": "177", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "178", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "103" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/datetime/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getAll", + "decorators": [] + }, + { + "$id": "179", + "name": "getDefault", + "resourceName": "Datetime", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "180", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "181", + "kind": "constant", + "valueType": { + "$id": "182", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "183", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "103" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/datetime/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault", + "decorators": [] + }, + { + "$id": "184", + "name": "putAll", + "resourceName": "Datetime", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "185", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "186", + "kind": "constant", + "valueType": { + "$id": "187", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "188", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "103" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "189", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/datetime/all", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll", + "decorators": [] + }, { - "$id": "135", - "statusCodes": [ - 204 + "$id": "190", + "name": "putDefault", + "resourceName": "Datetime", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "191", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "192", + "kind": "constant", + "valueType": { + "$id": "193", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "194", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "103" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "195", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/datetime/default", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/string/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.String.putAll", - "decorators": [] - }, - { - "$id": "136", - "name": "putDefault", - "resourceName": "String", - "doc": "Put a body with default properties.", - "accessibility": "public", "parameters": [ { - "$id": "137", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "196", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "138", - "kind": "constant", - "valueType": { - "$id": "139", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "197", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, + "isContentType": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "140", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "74" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, + "isEndpoint": true, + "skipUrlEncoding": false, "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "kind": "Client", + "defaultValue": { + "$id": "198", + "type": { + "$id": "199", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.Datetime", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "200", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "201", + "name": "getAll", + "resourceName": "Duration", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "202", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "203", + "kind": "constant", + "valueType": { + "$id": "204", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "205", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "97" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/duration/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll", + "decorators": [] + }, { - "$id": "141", - "statusCodes": [ - 204 + "$id": "206", + "name": "getDefault", + "resourceName": "Duration", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "207", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "208", + "kind": "constant", + "valueType": { + "$id": "209", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/string/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.String.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "142", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "143", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "144", - "type": { - "$id": "145", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "responses": [ + { + "$id": "210", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "97" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/duration/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.String" - }, - { - "$id": "146", - "name": "Bytes", - "namespace": "Type.Property.Optional", - "operations": [ - { - "$id": "147", - "name": "getAll", - "resourceName": "Bytes", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ { - "$id": "148", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "149", - "kind": "constant", - "valueType": { - "$id": "150", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "211", + "name": "putAll", + "resourceName": "Duration", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "212", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "213", + "kind": "constant", + "valueType": { + "$id": "214", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + { + "$id": "215", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "97" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "216", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/duration/all", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll", + "decorators": [] + }, { - "$id": "151", - "statusCodes": [ - 200 + "$id": "217", + "name": "putDefault", + "resourceName": "Duration", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "218", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "219", + "kind": "constant", + "valueType": { + "$id": "220", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "221", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "97" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "109" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "222", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/duration/default", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/bytes/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll", - "decorators": [] - }, - { - "$id": "152", - "name": "getDefault", - "resourceName": "Bytes", - "doc": "Get models that will return the default object", - "accessibility": "public", "parameters": [ { - "$id": "153", - "name": "accept", - "nameInRequest": "Accept", + "$id": "223", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "154", - "kind": "constant", - "valueType": { - "$id": "155", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "224", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "156", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "109" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "225", + "type": { + "$id": "226", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/bytes/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getDefault", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.Duration", + "apiVersions": [], + "parent": { + "$ref": "114" + } }, { - "$id": "157", - "name": "putAll", - "resourceName": "Bytes", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ + "$id": "227", + "kind": "client", + "name": "PlainDate", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "228", + "name": "getAll", + "resourceName": "PlainDate", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "229", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "230", + "kind": "constant", + "valueType": { + "$id": "231", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "232", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "92" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/plainDate/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll", + "decorators": [] + }, { - "$id": "158", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "159", - "kind": "constant", - "valueType": { - "$id": "160", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "233", + "name": "getDefault", + "resourceName": "PlainDate", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "234", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "235", + "kind": "constant", + "valueType": { + "$id": "236", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "237", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "92" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/plainDate/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault", + "decorators": [] }, { - "$id": "161", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "109" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "238", + "name": "putAll", + "resourceName": "PlainDate", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "239", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "240", + "kind": "constant", + "valueType": { + "$id": "241", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "242", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "92" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "243", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/plainDate/all", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll", + "decorators": [] + }, { - "$id": "162", - "statusCodes": [ - 204 + "$id": "244", + "name": "putDefault", + "resourceName": "PlainDate", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "245", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "246", + "kind": "constant", + "valueType": { + "$id": "247", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "248", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "92" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "249", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/plainDate/default", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/bytes/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll", - "decorators": [] - }, - { - "$id": "163", - "name": "putDefault", - "resourceName": "Bytes", - "doc": "Put a body with default properties.", - "accessibility": "public", "parameters": [ { - "$id": "164", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "165", - "kind": "constant", - "valueType": { - "$id": "166", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "167", - "name": "body", - "nameInRequest": "body", + "$id": "250", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "109" + "$id": "251", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "168", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "252", + "type": { + "$id": "253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/bytes/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "169", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "170", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "171", - "type": { - "$id": "172", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate", + "apiVersions": [], + "parent": { + "$ref": "114" } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Bytes" - }, - { - "$id": "173", - "name": "Datetime", - "namespace": "Type.Property.Optional", - "operations": [ + }, { - "$id": "174", - "name": "getAll", - "resourceName": "Datetime", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ + "$id": "254", + "kind": "client", + "name": "PlainTime", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "255", + "name": "getAll", + "resourceName": "PlainTime", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "256", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "257", + "kind": "constant", + "valueType": { + "$id": "258", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "259", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "87" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/plainTime/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll", + "decorators": [] + }, { - "$id": "175", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "176", - "kind": "constant", - "valueType": { - "$id": "177", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "260", + "name": "getDefault", + "resourceName": "PlainTime", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "261", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "262", + "kind": "constant", + "valueType": { + "$id": "263", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "264", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "87" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/plainTime/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault", + "decorators": [] + }, + { + "$id": "265", + "name": "putAll", + "resourceName": "PlainTime", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "266", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "267", + "kind": "constant", + "valueType": { + "$id": "268", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + { + "$id": "269", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "87" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "270", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/plainTime/all", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll", + "decorators": [] + }, { - "$id": "178", - "statusCodes": [ - 200 + "$id": "271", + "name": "putDefault", + "resourceName": "PlainTime", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "272", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "273", + "kind": "constant", + "valueType": { + "$id": "274", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "275", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "87" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "103" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "276", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/plainTime/default", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/datetime/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getAll", - "decorators": [] - }, - { - "$id": "179", - "name": "getDefault", - "resourceName": "Datetime", - "doc": "Get models that will return the default object", - "accessibility": "public", "parameters": [ { - "$id": "180", - "name": "accept", - "nameInRequest": "Accept", + "$id": "277", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "181", - "kind": "constant", - "valueType": { - "$id": "182", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "278", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "183", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "103" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "279", + "type": { + "$id": "280", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/datetime/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime", + "apiVersions": [], + "parent": { + "$ref": "114" + } }, { - "$id": "184", - "name": "putAll", - "resourceName": "Datetime", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ + "$id": "281", + "kind": "client", + "name": "CollectionsByte", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "282", + "name": "getAll", + "resourceName": "CollectionsByte", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "283", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "284", + "kind": "constant", + "valueType": { + "$id": "285", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "286", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "81" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/collections/bytes/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll", + "decorators": [] + }, { - "$id": "185", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "186", - "kind": "constant", - "valueType": { - "$id": "187", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "287", + "name": "getDefault", + "resourceName": "CollectionsByte", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "288", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "289", + "kind": "constant", + "valueType": { + "$id": "290", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "291", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "81" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/collections/bytes/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault", + "decorators": [] }, { - "$id": "188", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "103" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "292", + "name": "putAll", + "resourceName": "CollectionsByte", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "293", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "294", + "kind": "constant", + "valueType": { + "$id": "295", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "296", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "81" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "297", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/collections/bytes/all", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll", + "decorators": [] + }, { - "$id": "189", - "statusCodes": [ - 204 + "$id": "298", + "name": "putDefault", + "resourceName": "CollectionsByte", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "299", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "300", + "kind": "constant", + "valueType": { + "$id": "301", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "302", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "81" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "303", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/collections/bytes/default", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/datetime/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll", - "decorators": [] - }, - { - "$id": "190", - "name": "putDefault", - "resourceName": "Datetime", - "doc": "Put a body with default properties.", - "accessibility": "public", "parameters": [ { - "$id": "191", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "192", - "kind": "constant", - "valueType": { - "$id": "193", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "194", - "name": "body", - "nameInRequest": "body", + "$id": "304", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "103" + "$id": "305", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "306", + "type": { + "$id": "307", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "308", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "309", + "name": "getAll", + "resourceName": "CollectionsModel", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "310", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "311", + "kind": "constant", + "valueType": { + "$id": "312", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "313", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "71" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/collections/model/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll", + "decorators": [] + }, { - "$id": "195", - "statusCodes": [ - 204 + "$id": "314", + "name": "getDefault", + "resourceName": "CollectionsModel", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "315", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "316", + "kind": "constant", + "valueType": { + "$id": "317", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/datetime/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "196", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "197", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "198", - "type": { - "$id": "199", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Datetime" - }, - { - "$id": "200", - "name": "Duration", - "namespace": "Type.Property.Optional", - "operations": [ - { - "$id": "201", - "name": "getAll", - "resourceName": "Duration", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "202", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "203", - "kind": "constant", - "valueType": { - "$id": "204", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "205", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "97" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/duration/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll", - "decorators": [] - }, - { - "$id": "206", - "name": "getDefault", - "resourceName": "Duration", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "207", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "208", - "kind": "constant", - "valueType": { - "$id": "209", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "210", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "97" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/duration/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault", - "decorators": [] - }, - { - "$id": "211", - "name": "putAll", - "resourceName": "Duration", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "212", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "213", - "kind": "constant", - "valueType": { - "$id": "214", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "215", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "97" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "216", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/duration/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll", - "decorators": [] - }, - { - "$id": "217", - "name": "putDefault", - "resourceName": "Duration", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "218", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "219", - "kind": "constant", - "valueType": { - "$id": "220", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "221", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "97" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "222", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/duration/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "223", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "224", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "225", - "type": { - "$id": "226", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.Duration" - }, - { - "$id": "227", - "name": "PlainDate", - "namespace": "Type.Property.Optional", - "operations": [ - { - "$id": "228", - "name": "getAll", - "resourceName": "PlainDate", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "229", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "230", - "kind": "constant", - "valueType": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "232", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "92" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/plainDate/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll", - "decorators": [] - }, - { - "$id": "233", - "name": "getDefault", - "resourceName": "PlainDate", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "234", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "235", - "kind": "constant", - "valueType": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "237", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "92" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/plainDate/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault", - "decorators": [] - }, - { - "$id": "238", - "name": "putAll", - "resourceName": "PlainDate", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "239", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "240", - "kind": "constant", - "valueType": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "242", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "92" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "243", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/plainDate/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll", - "decorators": [] - }, - { - "$id": "244", - "name": "putDefault", - "resourceName": "PlainDate", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "245", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "246", - "kind": "constant", - "valueType": { - "$id": "247", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "248", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "92" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "249", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/plainDate/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "250", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "251", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "252", - "type": { - "$id": "253", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate" - }, - { - "$id": "254", - "name": "PlainTime", - "namespace": "Type.Property.Optional", - "operations": [ - { - "$id": "255", - "name": "getAll", - "resourceName": "PlainTime", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "256", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "257", - "kind": "constant", - "valueType": { - "$id": "258", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "259", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "87" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/plainTime/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll", - "decorators": [] - }, - { - "$id": "260", - "name": "getDefault", - "resourceName": "PlainTime", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "261", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "262", - "kind": "constant", - "valueType": { - "$id": "263", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "264", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "87" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/plainTime/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault", - "decorators": [] - }, - { - "$id": "265", - "name": "putAll", - "resourceName": "PlainTime", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "266", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "267", - "kind": "constant", - "valueType": { - "$id": "268", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "269", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "87" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "270", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/plainTime/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll", - "decorators": [] - }, - { - "$id": "271", - "name": "putDefault", - "resourceName": "PlainTime", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "272", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "273", - "kind": "constant", - "valueType": { - "$id": "274", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "275", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "87" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "276", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/plainTime/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "277", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "278", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "279", - "type": { - "$id": "280", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime" - }, - { - "$id": "281", - "name": "CollectionsByte", - "namespace": "Type.Property.Optional", - "operations": [ - { - "$id": "282", - "name": "getAll", - "resourceName": "CollectionsByte", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "283", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "284", - "kind": "constant", - "valueType": { - "$id": "285", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "286", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "81" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/collections/bytes/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll", - "decorators": [] - }, - { - "$id": "287", - "name": "getDefault", - "resourceName": "CollectionsByte", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "288", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "289", - "kind": "constant", - "valueType": { - "$id": "290", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "291", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "81" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/collections/bytes/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault", - "decorators": [] - }, - { - "$id": "292", - "name": "putAll", - "resourceName": "CollectionsByte", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "293", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "294", - "kind": "constant", - "valueType": { - "$id": "295", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "296", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "81" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "297", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/collections/bytes/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll", - "decorators": [] - }, - { - "$id": "298", - "name": "putDefault", - "resourceName": "CollectionsByte", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "299", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "300", - "kind": "constant", - "valueType": { - "$id": "301", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "302", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "81" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "303", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/collections/bytes/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "304", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "305", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "306", - "type": { - "$id": "307", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte" - }, - { - "$id": "308", - "name": "CollectionsModel", - "namespace": "Type.Property.Optional", - "operations": [ - { - "$id": "309", - "name": "getAll", - "resourceName": "CollectionsModel", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "310", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "311", - "kind": "constant", - "valueType": { - "$id": "312", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "313", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "71" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/collections/model/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll", - "decorators": [] - }, - { - "$id": "314", - "name": "getDefault", - "resourceName": "CollectionsModel", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "315", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "316", - "kind": "constant", - "valueType": { - "$id": "317", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "318", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "71" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/collections/model/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault", - "decorators": [] - }, - { - "$id": "319", - "name": "putAll", - "resourceName": "CollectionsModel", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "320", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "321", - "kind": "constant", - "valueType": { - "$id": "322", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "323", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "71" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "324", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/collections/model/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll", - "decorators": [] - }, - { - "$id": "325", - "name": "putDefault", - "resourceName": "CollectionsModel", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "326", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "327", - "kind": "constant", - "valueType": { - "$id": "328", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "329", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "71" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "330", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/collections/model/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "331", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "332", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "333", - "type": { - "$id": "334", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel" - }, - { - "$id": "335", - "name": "StringLiteral", - "namespace": "Type.Property.Optional", - "operations": [ - { - "$id": "336", - "name": "getAll", - "resourceName": "StringLiteral", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "337", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "338", - "kind": "constant", - "valueType": { - "$id": "339", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "340", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "66" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/string/literal/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll", - "decorators": [] - }, - { - "$id": "341", - "name": "getDefault", - "resourceName": "StringLiteral", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "342", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "343", - "kind": "constant", - "valueType": { - "$id": "344", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "345", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "66" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/string/literal/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault", - "decorators": [] - }, - { - "$id": "346", - "name": "putAll", - "resourceName": "StringLiteral", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "347", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "348", - "kind": "constant", - "valueType": { - "$id": "349", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "350", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "66" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "351", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/string/literal/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll", - "decorators": [] - }, - { - "$id": "352", - "name": "putDefault", - "resourceName": "StringLiteral", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "353", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "354", - "kind": "constant", - "valueType": { - "$id": "355", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "356", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "66" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "357", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/string/literal/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "358", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "359", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "360", - "type": { - "$id": "361", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral" - }, - { - "$id": "362", - "name": "IntLiteral", - "namespace": "Type.Property.Optional", - "operations": [ - { - "$id": "363", - "name": "getAll", - "resourceName": "IntLiteral", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "364", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "365", - "kind": "constant", - "valueType": { - "$id": "366", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "367", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "61" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/int/literal/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll", - "decorators": [] - }, - { - "$id": "368", - "name": "getDefault", - "resourceName": "IntLiteral", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "369", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "370", - "kind": "constant", - "valueType": { - "$id": "371", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "372", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "61" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/int/literal/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault", - "decorators": [] - }, - { - "$id": "373", - "name": "putAll", - "resourceName": "IntLiteral", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "374", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "375", - "kind": "constant", - "valueType": { - "$id": "376", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "377", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "61" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "378", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/int/literal/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll", - "decorators": [] - }, - { - "$id": "379", - "name": "putDefault", - "resourceName": "IntLiteral", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "380", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "381", - "kind": "constant", - "valueType": { - "$id": "382", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "383", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "61" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "384", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/int/literal/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "385", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "386", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "387", - "type": { - "$id": "388", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral" - }, - { - "$id": "389", - "name": "FloatLiteral", - "namespace": "Type.Property.Optional", - "operations": [ - { - "$id": "390", - "name": "getAll", - "resourceName": "FloatLiteral", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "391", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "392", - "kind": "constant", - "valueType": { - "$id": "393", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "394", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "56" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/float/literal/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll", - "decorators": [] - }, - { - "$id": "395", - "name": "getDefault", - "resourceName": "FloatLiteral", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "396", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "397", - "kind": "constant", - "valueType": { - "$id": "398", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "399", - "statusCodes": [ - 200 + "responses": [ + { + "$id": "318", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "71" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } ], - "bodyType": { - "$ref": "56" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/float/literal/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault", - "decorators": [] - }, - { - "$id": "400", - "name": "putAll", - "resourceName": "FloatLiteral", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "401", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "402", - "kind": "constant", - "valueType": { - "$id": "403", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/collections/model/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault", + "decorators": [] }, { - "$id": "404", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "56" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "405", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/float/literal/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll", - "decorators": [] - }, - { - "$id": "406", - "name": "putDefault", - "resourceName": "FloatLiteral", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "407", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "408", - "kind": "constant", - "valueType": { - "$id": "409", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "319", + "name": "putAll", + "resourceName": "CollectionsModel", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "320", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "321", + "kind": "constant", + "valueType": { + "$id": "322", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "410", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "56" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "411", - "statusCodes": [ - 204 + { + "$id": "323", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "71" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/float/literal/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "412", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "413", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "414", - "type": { - "$id": "415", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral" - }, - { - "$id": "416", - "name": "BooleanLiteral", - "namespace": "Type.Property.Optional", - "operations": [ - { - "$id": "417", - "name": "getAll", - "resourceName": "BooleanLiteral", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ - { - "$id": "418", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "419", - "kind": "constant", - "valueType": { - "$id": "420", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "421", - "statusCodes": [ - 200 + "responses": [ + { + "$id": "324", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "bodyType": { - "$ref": "50" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/collections/model/all", + "requestMediaTypes": [ "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/boolean/literal/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll", - "decorators": [] - }, - { - "$id": "422", - "name": "getDefault", - "resourceName": "BooleanLiteral", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ - { - "$id": "423", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "424", - "kind": "constant", - "valueType": { - "$id": "425", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "426", - "statusCodes": [ - 200 ], - "bodyType": { - "$ref": "50" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/boolean/literal/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault", - "decorators": [] - }, - { - "$id": "427", - "name": "putAll", - "resourceName": "BooleanLiteral", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ - { - "$id": "428", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "429", - "kind": "constant", - "valueType": { - "$id": "430", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll", + "decorators": [] }, { - "$id": "431", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "50" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "432", - "statusCodes": [ - 204 + "$id": "325", + "name": "putDefault", + "resourceName": "CollectionsModel", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "326", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "327", + "kind": "constant", + "valueType": { + "$id": "328", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "329", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "71" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "330", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/collections/model/default", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/boolean/literal/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll", - "decorators": [] - }, - { - "$id": "433", - "name": "putDefault", - "resourceName": "BooleanLiteral", - "doc": "Put a body with default properties.", - "accessibility": "public", "parameters": [ { - "$id": "434", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "435", - "kind": "constant", - "valueType": { - "$id": "436", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "437", - "name": "body", - "nameInRequest": "body", + "$id": "331", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "50" + "$id": "332", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "333", + "type": { + "$id": "334", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "335", + "kind": "client", + "name": "StringLiteral", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "336", + "name": "getAll", + "resourceName": "StringLiteral", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "337", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "338", + "kind": "constant", + "valueType": { + "$id": "339", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "340", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "66" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/string/literal/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll", + "decorators": [] + }, { - "$id": "438", - "statusCodes": [ - 204 + "$id": "341", + "name": "getDefault", + "resourceName": "StringLiteral", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "342", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "343", + "kind": "constant", + "valueType": { + "$id": "344", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/boolean/literal/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "439", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "440", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "441", - "type": { - "$id": "442", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "responses": [ + { + "$id": "345", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "66" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/string/literal/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral" - }, - { - "$id": "443", - "name": "UnionStringLiteral", - "namespace": "Type.Property.Optional", - "operations": [ - { - "$id": "444", - "name": "getAll", - "resourceName": "UnionStringLiteral", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ { - "$id": "445", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "446", - "kind": "constant", - "valueType": { - "$id": "447", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "346", + "name": "putAll", + "resourceName": "StringLiteral", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "347", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "348", + "kind": "constant", + "valueType": { + "$id": "349", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "448", - "statusCodes": [ - 200 + { + "$id": "350", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "66" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "46" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "351", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/string/literal/all", + "requestMediaTypes": [ "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/union/string/literal/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll", - "decorators": [] - }, - { - "$id": "449", - "name": "getDefault", - "resourceName": "UnionStringLiteral", - "doc": "Get models that will return the default object", - "accessibility": "public", - "parameters": [ + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll", + "decorators": [] + }, { - "$id": "450", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "451", - "kind": "constant", - "valueType": { - "$id": "452", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "352", + "name": "putDefault", + "resourceName": "StringLiteral", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "353", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "354", + "kind": "constant", + "valueType": { + "$id": "355", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "453", - "statusCodes": [ - 200 + { + "$id": "356", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "66" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "46" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "357", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/string/literal/default", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/union/string/literal/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault", - "decorators": [] - }, - { - "$id": "454", - "name": "putAll", - "resourceName": "UnionStringLiteral", - "doc": "Put a body with all properties present.", - "accessibility": "public", "parameters": [ { - "$id": "455", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "456", - "kind": "constant", - "valueType": { - "$id": "457", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "458", - "name": "body", - "nameInRequest": "body", + "$id": "358", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "46" + "$id": "359", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "459", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/union/string/literal/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll", - "decorators": [] - }, - { - "$id": "460", - "name": "putDefault", - "resourceName": "UnionStringLiteral", - "doc": "Put a body with default properties.", - "accessibility": "public", - "parameters": [ - { - "$id": "461", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "462", - "kind": "constant", - "valueType": { - "$id": "463", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "360", + "type": { + "$id": "361", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "464", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "46" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "465", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/union/string/literal/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, { - "$id": "466", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "467", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "468", - "type": { - "$id": "469", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "362", + "kind": "client", + "name": "IntLiteral", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "363", + "name": "getAll", + "resourceName": "IntLiteral", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "364", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "365", + "kind": "constant", + "valueType": { + "$id": "366", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "367", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "61" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/int/literal/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll", + "decorators": [] + }, + { + "$id": "368", + "name": "getDefault", + "resourceName": "IntLiteral", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "369", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "370", + "kind": "constant", + "valueType": { + "$id": "371", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "372", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "61" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/int/literal/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral" - }, - { - "$id": "470", - "name": "UnionIntLiteral", - "namespace": "Type.Property.Optional", - "operations": [ - { - "$id": "471", - "name": "getAll", - "resourceName": "UnionIntLiteral", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ { - "$id": "472", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "473", - "kind": "constant", - "valueType": { - "$id": "474", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "373", + "name": "putAll", + "resourceName": "IntLiteral", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "374", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "375", + "kind": "constant", + "valueType": { + "$id": "376", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + { + "$id": "377", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "61" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "378", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/int/literal/all", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll", + "decorators": [] + }, { - "$id": "475", - "statusCodes": [ - 200 + "$id": "379", + "name": "putDefault", + "resourceName": "IntLiteral", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "380", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "381", + "kind": "constant", + "valueType": { + "$id": "382", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "383", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "61" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "42" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "384", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/int/literal/default", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/union/int/literal/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll", - "decorators": [] - }, - { - "$id": "476", - "name": "getDefault", - "resourceName": "UnionIntLiteral", - "doc": "Get models that will return the default object", - "accessibility": "public", "parameters": [ { - "$id": "477", - "name": "accept", - "nameInRequest": "Accept", + "$id": "385", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "478", - "kind": "constant", - "valueType": { - "$id": "479", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "386", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "480", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "42" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "387", + "type": { + "$id": "388", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/union/int/literal/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral", + "apiVersions": [], + "parent": { + "$ref": "114" + } }, { - "$id": "481", - "name": "putAll", - "resourceName": "UnionIntLiteral", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ + "$id": "389", + "kind": "client", + "name": "FloatLiteral", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "390", + "name": "getAll", + "resourceName": "FloatLiteral", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "391", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "392", + "kind": "constant", + "valueType": { + "$id": "393", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "394", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "56" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/float/literal/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll", + "decorators": [] + }, { - "$id": "482", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "483", - "kind": "constant", - "valueType": { - "$id": "484", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "395", + "name": "getDefault", + "resourceName": "FloatLiteral", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "396", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "397", + "kind": "constant", + "valueType": { + "$id": "398", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "399", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "56" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/float/literal/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault", + "decorators": [] }, { - "$id": "485", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "42" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "400", + "name": "putAll", + "resourceName": "FloatLiteral", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "401", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "402", + "kind": "constant", + "valueType": { + "$id": "403", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "404", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "56" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "405", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/float/literal/all", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll", + "decorators": [] + }, { - "$id": "486", - "statusCodes": [ - 204 + "$id": "406", + "name": "putDefault", + "resourceName": "FloatLiteral", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "407", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "408", + "kind": "constant", + "valueType": { + "$id": "409", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "410", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "56" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "411", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/float/literal/default", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/union/int/literal/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll", - "decorators": [] - }, - { - "$id": "487", - "name": "putDefault", - "resourceName": "UnionIntLiteral", - "doc": "Put a body with default properties.", - "accessibility": "public", "parameters": [ { - "$id": "488", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "489", - "kind": "constant", - "valueType": { - "$id": "490", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "491", - "name": "body", - "nameInRequest": "body", + "$id": "412", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "42" + "$id": "413", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "414", + "type": { + "$id": "415", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "416", + "kind": "client", + "name": "BooleanLiteral", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "417", + "name": "getAll", + "resourceName": "BooleanLiteral", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "418", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "419", + "kind": "constant", + "valueType": { + "$id": "420", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "421", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "50" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/boolean/literal/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll", + "decorators": [] + }, { - "$id": "492", - "statusCodes": [ - 204 + "$id": "422", + "name": "getDefault", + "resourceName": "BooleanLiteral", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "423", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "424", + "kind": "constant", + "valueType": { + "$id": "425", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/union/int/literal/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "493", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "494", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "495", - "type": { - "$id": "496", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "responses": [ + { + "$id": "426", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "50" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/boolean/literal/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault", + "decorators": [] + }, + { + "$id": "427", + "name": "putAll", + "resourceName": "BooleanLiteral", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "428", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "429", + "kind": "constant", + "valueType": { + "$id": "430", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "431", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "50" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "432", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/boolean/literal/all", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral" - }, - { - "$id": "497", - "name": "UnionFloatLiteral", - "namespace": "Type.Property.Optional", - "operations": [ - { - "$id": "498", - "name": "getAll", - "resourceName": "UnionFloatLiteral", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ { - "$id": "499", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "500", - "kind": "constant", - "valueType": { - "$id": "501", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "433", + "name": "putDefault", + "resourceName": "BooleanLiteral", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "434", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "435", + "kind": "constant", + "valueType": { + "$id": "436", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "502", - "statusCodes": [ - 200 + { + "$id": "437", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "50" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "38" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "438", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/boolean/literal/default", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/union/float/literal/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll", - "decorators": [] - }, - { - "$id": "503", - "name": "getDefault", - "resourceName": "UnionFloatLiteral", - "doc": "Get models that will return the default object", - "accessibility": "public", "parameters": [ { - "$id": "504", - "name": "accept", - "nameInRequest": "Accept", + "$id": "439", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "505", - "kind": "constant", - "valueType": { - "$id": "506", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "440", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "507", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "38" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "441", + "type": { + "$id": "442", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/union/float/literal/default", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral", + "apiVersions": [], + "parent": { + "$ref": "114" + } }, { - "$id": "508", - "name": "putAll", - "resourceName": "UnionFloatLiteral", - "doc": "Put a body with all properties present.", - "accessibility": "public", - "parameters": [ + "$id": "443", + "kind": "client", + "name": "UnionStringLiteral", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "444", + "name": "getAll", + "resourceName": "UnionStringLiteral", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "445", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "446", + "kind": "constant", + "valueType": { + "$id": "447", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "448", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "46" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/union/string/literal/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll", + "decorators": [] + }, { - "$id": "509", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "510", - "kind": "constant", - "valueType": { - "$id": "511", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "449", + "name": "getDefault", + "resourceName": "UnionStringLiteral", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "450", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "451", + "kind": "constant", + "valueType": { + "$id": "452", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "453", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "46" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/union/string/literal/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault", + "decorators": [] }, { - "$id": "512", - "name": "body", - "nameInRequest": "body", - "type": { - "$ref": "38" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "454", + "name": "putAll", + "resourceName": "UnionStringLiteral", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "455", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "456", + "kind": "constant", + "valueType": { + "$id": "457", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "458", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "46" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "459", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/union/string/literal/all", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll", + "decorators": [] + }, { - "$id": "513", - "statusCodes": [ - 204 + "$id": "460", + "name": "putDefault", + "resourceName": "UnionStringLiteral", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "461", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "462", + "kind": "constant", + "valueType": { + "$id": "463", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "464", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "46" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "465", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/union/string/literal/default", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/union/float/literal/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll", - "decorators": [] - }, - { - "$id": "514", - "name": "putDefault", - "resourceName": "UnionFloatLiteral", - "doc": "Put a body with default properties.", - "accessibility": "public", "parameters": [ { - "$id": "515", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "516", - "kind": "constant", - "valueType": { - "$id": "517", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "518", - "name": "body", - "nameInRequest": "body", + "$id": "466", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "38" + "$id": "467", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "468", + "type": { + "$id": "469", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "470", + "kind": "client", + "name": "UnionIntLiteral", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "471", + "name": "getAll", + "resourceName": "UnionIntLiteral", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "472", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "473", + "kind": "constant", + "valueType": { + "$id": "474", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "475", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "42" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/union/int/literal/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll", + "decorators": [] + }, + { + "$id": "476", + "name": "getDefault", + "resourceName": "UnionIntLiteral", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "477", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "478", + "kind": "constant", + "valueType": { + "$id": "479", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "480", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "42" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/union/int/literal/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault", + "decorators": [] + }, { - "$id": "519", - "statusCodes": [ - 204 + "$id": "481", + "name": "putAll", + "resourceName": "UnionIntLiteral", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "482", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "483", + "kind": "constant", + "valueType": { + "$id": "484", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "485", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "42" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/union/float/literal/default", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "520", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "521", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "522", - "type": { - "$id": "523", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "responses": [ + { + "$id": "486", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/union/int/literal/all", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral" - }, - { - "$id": "524", - "name": "RequiredAndOptional", - "namespace": "Type.Property.Optional", - "doc": "Test optional and required properties", - "operations": [ - { - "$id": "525", - "name": "getAll", - "resourceName": "RequiredAndOptional", - "doc": "Get models that will return all properties in the model", - "accessibility": "public", - "parameters": [ { - "$id": "526", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "527", - "kind": "constant", - "valueType": { - "$id": "528", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "487", + "name": "putDefault", + "resourceName": "UnionIntLiteral", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "488", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "489", + "kind": "constant", + "valueType": { + "$id": "490", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "529", - "statusCodes": [ - 200 + { + "$id": "491", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "42" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "29" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "492", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/union/int/literal/default", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/requiredAndOptional/all", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getAll", - "decorators": [] - }, - { - "$id": "530", - "name": "getRequiredOnly", - "resourceName": "RequiredAndOptional", - "doc": "Get models that will return only the required properties", - "accessibility": "public", "parameters": [ { - "$id": "531", - "name": "accept", - "nameInRequest": "Accept", + "$id": "493", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "532", - "kind": "constant", - "valueType": { - "$id": "533", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "494", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "495", + "type": { + "$id": "496", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral", + "apiVersions": [], + "parent": { + "$ref": "114" + } + }, + { + "$id": "497", + "kind": "client", + "name": "UnionFloatLiteral", + "namespace": "Type.Property.Optional", + "operations": [ + { + "$id": "498", + "name": "getAll", + "resourceName": "UnionFloatLiteral", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "499", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "500", + "kind": "constant", + "valueType": { + "$id": "501", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "502", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "38" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/union/float/literal/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll", + "decorators": [] + }, + { + "$id": "503", + "name": "getDefault", + "resourceName": "UnionFloatLiteral", + "doc": "Get models that will return the default object", + "accessibility": "public", + "parameters": [ + { + "$id": "504", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "505", + "kind": "constant", + "valueType": { + "$id": "506", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "507", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "38" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/union/float/literal/default", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault", + "decorators": [] + }, { - "$id": "534", - "statusCodes": [ - 200 + "$id": "508", + "name": "putAll", + "resourceName": "UnionFloatLiteral", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "509", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "510", + "kind": "constant", + "valueType": { + "$id": "511", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "512", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "38" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "29" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "513", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/union/float/literal/all", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll", + "decorators": [] + }, + { + "$id": "514", + "name": "putDefault", + "resourceName": "UnionFloatLiteral", + "doc": "Put a body with default properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "515", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "516", + "kind": "constant", + "valueType": { + "$id": "517", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "518", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "38" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "519", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/union/float/literal/default", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/optional/requiredAndOptional/requiredOnly", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly", - "decorators": [] - }, - { - "$id": "535", - "name": "putAll", - "resourceName": "RequiredAndOptional", - "doc": "Put a body with all properties present.", - "accessibility": "public", "parameters": [ { - "$id": "536", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "537", - "kind": "constant", - "valueType": { - "$id": "538", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "539", - "name": "body", - "nameInRequest": "body", + "$id": "520", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "29" + "$id": "521", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "540", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "522", + "type": { + "$id": "523", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/requiredAndOptional/all", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral", + "apiVersions": [], + "parent": { + "$ref": "114" + } }, { - "$id": "541", - "name": "putRequiredOnly", - "resourceName": "RequiredAndOptional", - "doc": "Put a body with only required properties.", - "accessibility": "public", - "parameters": [ + "$id": "524", + "kind": "client", + "name": "RequiredAndOptional", + "namespace": "Type.Property.Optional", + "doc": "Test optional and required properties", + "operations": [ + { + "$id": "525", + "name": "getAll", + "resourceName": "RequiredAndOptional", + "doc": "Get models that will return all properties in the model", + "accessibility": "public", + "parameters": [ + { + "$id": "526", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "527", + "kind": "constant", + "valueType": { + "$id": "528", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "529", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "29" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/requiredAndOptional/all", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getAll", + "decorators": [] + }, { - "$id": "542", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "543", - "kind": "constant", - "valueType": { - "$id": "544", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "530", + "name": "getRequiredOnly", + "resourceName": "RequiredAndOptional", + "doc": "Get models that will return only the required properties", + "accessibility": "public", + "parameters": [ + { + "$id": "531", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "532", + "kind": "constant", + "valueType": { + "$id": "533", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "534", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "29" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/optional/requiredAndOptional/requiredOnly", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly", + "decorators": [] + }, + { + "$id": "535", + "name": "putAll", + "resourceName": "RequiredAndOptional", + "doc": "Put a body with all properties present.", + "accessibility": "public", + "parameters": [ + { + "$id": "536", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "537", + "kind": "constant", + "valueType": { + "$id": "538", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + { + "$id": "539", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "29" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "540", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/requiredAndOptional/all", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll", + "decorators": [] }, { - "$id": "545", - "name": "body", - "nameInRequest": "body", + "$id": "541", + "name": "putRequiredOnly", + "resourceName": "RequiredAndOptional", + "doc": "Put a body with only required properties.", + "accessibility": "public", + "parameters": [ + { + "$id": "542", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "543", + "kind": "constant", + "valueType": { + "$id": "544", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "545", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "29" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "546", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/optional/requiredAndOptional/requiredOnly", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly", + "decorators": [] + } + ], + "parameters": [ + { + "$id": "547", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "29" + "$id": "548", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "546", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "549", + "type": { + "$id": "550", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/optional/requiredAndOptional/requiredOnly", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly", - "decorators": [] - } - ], - "parent": "OptionalClient", - "parameters": [ - { - "$id": "547", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "548", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "549", - "type": { - "$id": "550", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional", + "apiVersions": [], + "parent": { + "$ref": "114" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional" + ] } ] } 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 b43af4988fb..e65d88b24d2 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 @@ -1602,6 +1602,7 @@ "clients": [ { "$id": "192", + "kind": "client", "name": "ValueTypesClient", "namespace": "Type.Property.ValueTypes", "doc": "Illustrates various property types for models", @@ -1639,5169 +1640,5288 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes" - }, - { - "$id": "197", - "name": "Boolean", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "198", - "name": "get", - "resourceName": "Boolean", - "doc": "Get call", - "accessibility": "public", + "crossLanguageDefinitionId": "Type.Property.ValueTypes", + "apiVersions": [], + "children": [ + { + "$id": "197", + "kind": "client", + "name": "Boolean", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "198", + "name": "get", + "resourceName": "Boolean", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "199", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "200", + "kind": "constant", + "valueType": { + "$id": "201", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "202", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "187" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/boolean", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get", + "decorators": [] + }, + { + "$id": "203", + "name": "put", + "resourceName": "Boolean", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "204", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "205", + "kind": "constant", + "valueType": { + "$id": "206", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "207", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "187" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "208", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/boolean", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put", + "decorators": [] + } + ], "parameters": [ { - "$id": "199", - "name": "accept", - "nameInRequest": "Accept", + "$id": "209", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "200", - "kind": "constant", - "valueType": { - "$id": "201", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "210", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "211", + "type": { + "$id": "212", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "213", + "kind": "client", + "name": "String", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "214", + "name": "get", + "resourceName": "String", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "215", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "216", + "kind": "constant", + "valueType": { + "$id": "217", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "218", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "182" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/string", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.get", + "decorators": [] + }, { - "$id": "202", - "statusCodes": [ - 200 + "$id": "219", + "name": "put", + "resourceName": "String", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "220", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "221", + "kind": "constant", + "valueType": { + "$id": "222", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "223", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "182" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "187" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "224", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/string", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/boolean", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get", - "decorators": [] - }, - { - "$id": "203", - "name": "put", - "resourceName": "Boolean", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "204", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "205", - "kind": "constant", - "valueType": { - "$id": "206", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "207", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "225", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "187" + "$id": "226", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "227", + "type": { + "$id": "228", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.String", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "229", + "kind": "client", + "name": "Bytes", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "230", + "name": "get", + "resourceName": "Bytes", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "231", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "232", + "kind": "constant", + "valueType": { + "$id": "233", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "234", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "177" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/bytes", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get", + "decorators": [] + }, { - "$id": "208", - "statusCodes": [ - 204 + "$id": "235", + "name": "put", + "resourceName": "Bytes", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "236", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "237", + "kind": "constant", + "valueType": { + "$id": "238", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "239", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "177" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "240", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/bytes", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/boolean", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "209", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "210", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "211", - "type": { - "$id": "212", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean" - }, - { - "$id": "213", - "name": "String", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "214", - "name": "get", - "resourceName": "String", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "215", - "name": "accept", - "nameInRequest": "Accept", + "$id": "241", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "216", - "kind": "constant", - "valueType": { - "$id": "217", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "242", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "243", + "type": { + "$id": "244", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "245", + "kind": "client", + "name": "Int", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "246", + "name": "get", + "resourceName": "Int", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "247", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "248", + "kind": "constant", + "valueType": { + "$id": "249", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "250", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "172" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/int", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get", + "decorators": [] + }, { - "$id": "218", - "statusCodes": [ - 200 + "$id": "251", + "name": "put", + "resourceName": "Int", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "252", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "253", + "kind": "constant", + "valueType": { + "$id": "254", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "255", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "172" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "182" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "256", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/int", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/string", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.get", - "decorators": [] - }, - { - "$id": "219", - "name": "put", - "resourceName": "String", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "220", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "221", - "kind": "constant", - "valueType": { - "$id": "222", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "223", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "257", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "182" + "$id": "258", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "224", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "259", + "type": { + "$id": "260", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/string", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, { - "$id": "225", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "226", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "227", - "type": { - "$id": "228", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "$id": "261", + "kind": "client", + "name": "Float", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "262", + "name": "get", + "resourceName": "Float", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "263", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "264", + "kind": "constant", + "valueType": { + "$id": "265", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "266", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "167" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/float", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.String" - }, - { - "$id": "229", - "name": "Bytes", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "230", - "name": "get", - "resourceName": "Bytes", - "doc": "Get call", - "accessibility": "public", + { + "$id": "267", + "name": "put", + "resourceName": "Float", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "268", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "269", + "kind": "constant", + "valueType": { + "$id": "270", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "271", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "167" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "272", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/float", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put", + "decorators": [] + } + ], "parameters": [ { - "$id": "231", - "name": "accept", - "nameInRequest": "Accept", + "$id": "273", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "232", - "kind": "constant", - "valueType": { - "$id": "233", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "274", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "275", + "type": { + "$id": "276", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "277", + "kind": "client", + "name": "Decimal", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "278", + "name": "get", + "resourceName": "Decimal", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "279", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "280", + "kind": "constant", + "valueType": { + "$id": "281", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "282", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "162" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/decimal", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get", + "decorators": [] + }, { - "$id": "234", - "statusCodes": [ - 200 + "$id": "283", + "name": "put", + "resourceName": "Decimal", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "284", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "285", + "kind": "constant", + "valueType": { + "$id": "286", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "287", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "162" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "177" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "288", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/decimal", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/bytes", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get", - "decorators": [] - }, - { - "$id": "235", - "name": "put", - "resourceName": "Bytes", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "236", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "237", - "kind": "constant", - "valueType": { - "$id": "238", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "239", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "289", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "177" + "$id": "290", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "291", + "type": { + "$id": "292", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "293", + "kind": "client", + "name": "Decimal128", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "294", + "name": "get", + "resourceName": "Decimal128", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "295", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "296", + "kind": "constant", + "valueType": { + "$id": "297", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "298", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "157" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/decimal128", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get", + "decorators": [] + }, { - "$id": "240", - "statusCodes": [ - 204 + "$id": "299", + "name": "put", + "resourceName": "Decimal128", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "300", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "301", + "kind": "constant", + "valueType": { + "$id": "302", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "303", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "157" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "304", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/decimal128", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/bytes", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "241", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "242", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "243", - "type": { - "$id": "244", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes" - }, - { - "$id": "245", - "name": "Int", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "246", - "name": "get", - "resourceName": "Int", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "247", - "name": "accept", - "nameInRequest": "Accept", + "$id": "305", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "248", - "kind": "constant", - "valueType": { - "$id": "249", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "306", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "307", + "type": { + "$id": "308", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "309", + "kind": "client", + "name": "Datetime", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "310", + "name": "get", + "resourceName": "Datetime", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "311", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "312", + "kind": "constant", + "valueType": { + "$id": "313", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "314", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "151" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/datetime", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get", + "decorators": [] + }, { - "$id": "250", - "statusCodes": [ - 200 + "$id": "315", + "name": "put", + "resourceName": "Datetime", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "316", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "317", + "kind": "constant", + "valueType": { + "$id": "318", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "319", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "151" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "172" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "320", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/datetime", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/int", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get", - "decorators": [] - }, - { - "$id": "251", - "name": "put", - "resourceName": "Int", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "252", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "253", - "kind": "constant", - "valueType": { - "$id": "254", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "255", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "321", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "172" + "$id": "322", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "323", + "type": { + "$id": "324", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ - { - "$id": "256", - "statusCodes": [ - 204 + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "325", + "kind": "client", + "name": "Duration", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "326", + "name": "get", + "resourceName": "Duration", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "327", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "328", + "kind": "constant", + "valueType": { + "$id": "329", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "330", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "145" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/duration", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get", + "decorators": [] + }, + { + "$id": "331", + "name": "put", + "resourceName": "Duration", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "332", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "333", + "kind": "constant", + "valueType": { + "$id": "334", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "335", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "145" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "336", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/duration", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/int", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "257", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "258", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "259", - "type": { - "$id": "260", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int" - }, - { - "$id": "261", - "name": "Float", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "262", - "name": "get", - "resourceName": "Float", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "263", - "name": "accept", - "nameInRequest": "Accept", + "$id": "337", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "264", - "kind": "constant", - "valueType": { - "$id": "265", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "338", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "339", + "type": { + "$id": "340", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "341", + "kind": "client", + "name": "Enum", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "342", + "name": "get", + "resourceName": "Enum", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "343", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "344", + "kind": "constant", + "valueType": { + "$id": "345", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "346", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "141" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/enum", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get", + "decorators": [] + }, { - "$id": "266", - "statusCodes": [ - 200 + "$id": "347", + "name": "put", + "resourceName": "Enum", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "348", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "349", + "kind": "constant", + "valueType": { + "$id": "350", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "351", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "141" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "167" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "352", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/enum", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/float", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get", - "decorators": [] - }, - { - "$id": "267", - "name": "put", - "resourceName": "Float", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "268", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "269", - "kind": "constant", - "valueType": { - "$id": "270", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "271", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "353", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "167" + "$id": "354", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "355", + "type": { + "$id": "356", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "357", + "kind": "client", + "name": "ExtensibleEnum", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "358", + "name": "get", + "resourceName": "ExtensibleEnum", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "359", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "360", + "kind": "constant", + "valueType": { + "$id": "361", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "362", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "137" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/extensible-enum", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get", + "decorators": [] + }, { - "$id": "272", - "statusCodes": [ - 204 + "$id": "363", + "name": "put", + "resourceName": "ExtensibleEnum", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "364", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "365", + "kind": "constant", + "valueType": { + "$id": "366", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "367", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "137" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "368", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/extensible-enum", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/float", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "273", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "274", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "275", - "type": { - "$id": "276", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float" - }, - { - "$id": "277", - "name": "Decimal", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "278", - "name": "get", - "resourceName": "Decimal", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "279", - "name": "accept", - "nameInRequest": "Accept", + "$id": "369", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "280", - "kind": "constant", - "valueType": { - "$id": "281", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "370", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "371", + "type": { + "$id": "372", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "373", + "kind": "client", + "name": "Model", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "374", + "name": "get", + "resourceName": "Model", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "375", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "376", + "kind": "constant", + "valueType": { + "$id": "377", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "378", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "133" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/model", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get", + "decorators": [] + }, { - "$id": "282", - "statusCodes": [ - 200 + "$id": "379", + "name": "put", + "resourceName": "Model", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "380", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "381", + "kind": "constant", + "valueType": { + "$id": "382", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "383", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "133" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "162" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "384", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/model", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/decimal", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get", - "decorators": [] - }, - { - "$id": "283", - "name": "put", - "resourceName": "Decimal", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "284", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "385", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "285", - "kind": "constant", - "valueType": { - "$id": "286", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "287", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "162" + "$id": "386", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "288", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/decimal", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "289", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "290", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "291", - "type": { - "$id": "292", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal" - }, - { - "$id": "293", - "name": "Decimal128", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "294", - "name": "get", - "resourceName": "Decimal128", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "295", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "296", - "kind": "constant", - "valueType": { - "$id": "297", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "387", + "type": { + "$id": "388", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "389", + "kind": "client", + "name": "CollectionsString", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "390", + "name": "get", + "resourceName": "CollectionsString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "391", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "392", + "kind": "constant", + "valueType": { + "$id": "393", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "394", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "127" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/collections/string", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get", + "decorators": [] + }, { - "$id": "298", - "statusCodes": [ - 200 + "$id": "395", + "name": "put", + "resourceName": "CollectionsString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "396", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "397", + "kind": "constant", + "valueType": { + "$id": "398", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "399", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "127" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "157" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "400", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/collections/string", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/decimal128", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get", - "decorators": [] - }, - { - "$id": "299", - "name": "put", - "resourceName": "Decimal128", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "300", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "301", - "kind": "constant", - "valueType": { - "$id": "302", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "303", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "401", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "157" + "$id": "402", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "403", + "type": { + "$id": "404", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "405", + "kind": "client", + "name": "CollectionsInt", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "406", + "name": "get", + "resourceName": "CollectionsInt", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "407", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "408", + "kind": "constant", + "valueType": { + "$id": "409", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "410", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "121" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/collections/int", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get", + "decorators": [] + }, { - "$id": "304", - "statusCodes": [ - 204 + "$id": "411", + "name": "put", + "resourceName": "CollectionsInt", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "412", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "413", + "kind": "constant", + "valueType": { + "$id": "414", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "415", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "121" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "416", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/collections/int", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/decimal128", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "305", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "306", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "307", - "type": { - "$id": "308", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128" - }, - { - "$id": "309", - "name": "Datetime", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "310", - "name": "get", - "resourceName": "Datetime", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "311", - "name": "accept", - "nameInRequest": "Accept", + "$id": "417", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "312", - "kind": "constant", - "valueType": { - "$id": "313", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "418", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "419", + "type": { + "$id": "420", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "421", + "kind": "client", + "name": "CollectionsModel", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "422", + "name": "get", + "resourceName": "CollectionsModel", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "423", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "424", + "kind": "constant", + "valueType": { + "$id": "425", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "426", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "111" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/collections/model", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get", + "decorators": [] + }, { - "$id": "314", - "statusCodes": [ - 200 + "$id": "427", + "name": "put", + "resourceName": "CollectionsModel", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "428", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "429", + "kind": "constant", + "valueType": { + "$id": "430", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "431", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "111" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "151" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "432", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/collections/model", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/datetime", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get", - "decorators": [] - }, - { - "$id": "315", - "name": "put", - "resourceName": "Datetime", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "316", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "317", - "kind": "constant", - "valueType": { - "$id": "318", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "319", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "433", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "151" + "$id": "434", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "435", + "type": { + "$id": "436", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ - { - "$id": "320", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/datetime", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "321", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "322", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "323", - "type": { - "$id": "324", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel", + "apiVersions": [], + "parent": { + "$ref": "192" } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime" - }, - { - "$id": "325", - "name": "Duration", - "namespace": "Type.Property.ValueTypes", - "operations": [ + }, { - "$id": "326", - "name": "get", - "resourceName": "Duration", - "doc": "Get call", - "accessibility": "public", + "$id": "437", + "kind": "client", + "name": "DictionaryString", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "438", + "name": "get", + "resourceName": "DictionaryString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "439", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "440", + "kind": "constant", + "valueType": { + "$id": "441", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "442", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "104" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/dictionary/string", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get", + "decorators": [] + }, + { + "$id": "443", + "name": "put", + "resourceName": "DictionaryString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "444", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "445", + "kind": "constant", + "valueType": { + "$id": "446", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "447", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "104" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "448", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/dictionary/string", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put", + "decorators": [] + } + ], "parameters": [ { - "$id": "327", - "name": "accept", - "nameInRequest": "Accept", + "$id": "449", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "328", - "kind": "constant", - "valueType": { - "$id": "329", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "450", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "451", + "type": { + "$id": "452", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "453", + "kind": "client", + "name": "Never", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "454", + "name": "get", + "resourceName": "Never", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "455", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "456", + "kind": "constant", + "valueType": { + "$id": "457", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "458", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "103" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/never", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get", + "decorators": [] + }, { - "$id": "330", - "statusCodes": [ - 200 + "$id": "459", + "name": "put", + "resourceName": "Never", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "460", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "461", + "kind": "constant", + "valueType": { + "$id": "462", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "463", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "103" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "145" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "464", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/never", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/duration", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get", - "decorators": [] - }, - { - "$id": "331", - "name": "put", - "resourceName": "Duration", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "332", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "333", - "kind": "constant", - "valueType": { - "$id": "334", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "335", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "465", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "145" + "$id": "466", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "467", + "type": { + "$id": "468", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "469", + "kind": "client", + "name": "UnknownString", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "470", + "name": "get", + "resourceName": "UnknownString", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "471", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "472", + "kind": "constant", + "valueType": { + "$id": "473", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "474", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "98" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/unknown/string", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get", + "decorators": [] + }, { - "$id": "336", - "statusCodes": [ - 204 + "$id": "475", + "name": "put", + "resourceName": "UnknownString", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "476", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "477", + "kind": "constant", + "valueType": { + "$id": "478", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "479", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "98" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "480", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/unknown/string", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/duration", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "337", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "338", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "339", - "type": { - "$id": "340", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration" - }, - { - "$id": "341", - "name": "Enum", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "342", - "name": "get", - "resourceName": "Enum", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "343", - "name": "accept", - "nameInRequest": "Accept", + "$id": "481", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "344", - "kind": "constant", - "valueType": { - "$id": "345", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "482", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "483", + "type": { + "$id": "484", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "485", + "kind": "client", + "name": "UnknownInt", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "486", + "name": "get", + "resourceName": "UnknownInt", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "487", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "488", + "kind": "constant", + "valueType": { + "$id": "489", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "490", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "93" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/unknown/int", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get", + "decorators": [] + }, { - "$id": "346", - "statusCodes": [ - 200 + "$id": "491", + "name": "put", + "resourceName": "UnknownInt", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "492", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "493", + "kind": "constant", + "valueType": { + "$id": "494", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "495", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "93" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "141" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "496", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/unknown/int", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/enum", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get", - "decorators": [] - }, - { - "$id": "347", - "name": "put", - "resourceName": "Enum", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "348", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", + "$id": "497", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "349", - "kind": "constant", - "valueType": { - "$id": "350", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "351", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "141" + "$id": "498", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "352", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/enum", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "353", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "354", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "355", - "type": { - "$id": "356", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum" - }, - { - "$id": "357", - "name": "ExtensibleEnum", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "358", - "name": "get", - "resourceName": "ExtensibleEnum", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "359", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "360", - "kind": "constant", - "valueType": { - "$id": "361", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "499", + "type": { + "$id": "500", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "501", + "kind": "client", + "name": "UnknownDict", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "502", + "name": "get", + "resourceName": "UnknownDict", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "503", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "504", + "kind": "constant", + "valueType": { + "$id": "505", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "506", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "88" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/unknown/dict", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get", + "decorators": [] + }, { - "$id": "362", - "statusCodes": [ - 200 + "$id": "507", + "name": "put", + "resourceName": "UnknownDict", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "508", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "509", + "kind": "constant", + "valueType": { + "$id": "510", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "511", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "88" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "137" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "512", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/unknown/dict", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/extensible-enum", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get", - "decorators": [] - }, - { - "$id": "363", - "name": "put", - "resourceName": "ExtensibleEnum", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "364", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "365", - "kind": "constant", - "valueType": { - "$id": "366", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "367", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "513", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "137" + "$id": "514", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "368", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/extensible-enum", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "369", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "370", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "371", - "type": { - "$id": "372", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum" - }, - { - "$id": "373", - "name": "Model", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "374", - "name": "get", - "resourceName": "Model", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "375", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "376", - "kind": "constant", - "valueType": { - "$id": "377", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "515", + "type": { + "$id": "516", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "517", + "kind": "client", + "name": "UnknownArray", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "518", + "name": "get", + "resourceName": "UnknownArray", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "519", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "520", + "kind": "constant", + "valueType": { + "$id": "521", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "522", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "83" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/unknown/array", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get", + "decorators": [] + }, { - "$id": "378", - "statusCodes": [ - 200 + "$id": "523", + "name": "put", + "resourceName": "UnknownArray", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "524", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "525", + "kind": "constant", + "valueType": { + "$id": "526", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "527", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "83" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "133" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "528", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/unknown/array", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/model", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get", - "decorators": [] - }, - { - "$id": "379", - "name": "put", - "resourceName": "Model", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "380", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "381", - "kind": "constant", - "valueType": { - "$id": "382", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "383", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "529", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "133" + "$id": "530", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "531", + "type": { + "$id": "532", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "533", + "kind": "client", + "name": "StringLiteral", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "534", + "name": "get", + "resourceName": "StringLiteral", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "535", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "536", + "kind": "constant", + "valueType": { + "$id": "537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "538", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "78" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/string/literal", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get", + "decorators": [] + }, { - "$id": "384", - "statusCodes": [ - 204 + "$id": "539", + "name": "put", + "resourceName": "StringLiteral", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "540", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "541", + "kind": "constant", + "valueType": { + "$id": "542", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "543", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "78" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/model", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "385", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "386", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "387", - "type": { - "$id": "388", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model" - }, - { - "$id": "389", - "name": "CollectionsString", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "390", - "name": "get", - "resourceName": "CollectionsString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "391", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "392", - "kind": "constant", - "valueType": { - "$id": "393", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "394", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "127" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/collections/string", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get", - "decorators": [] - }, - { - "$id": "395", - "name": "put", - "resourceName": "CollectionsString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "396", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "397", - "kind": "constant", - "valueType": { - "$id": "398", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "399", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "127" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "400", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/collections/string", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "401", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "402", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "403", - "type": { - "$id": "404", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString" - }, - { - "$id": "405", - "name": "CollectionsInt", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "406", - "name": "get", - "resourceName": "CollectionsInt", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "407", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "408", - "kind": "constant", - "valueType": { - "$id": "409", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "410", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "121" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/collections/int", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get", - "decorators": [] - }, - { - "$id": "411", - "name": "put", - "resourceName": "CollectionsInt", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "412", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "413", - "kind": "constant", - "valueType": { - "$id": "414", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "415", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "121" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "416", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/collections/int", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "417", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "418", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "419", - "type": { - "$id": "420", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt" - }, - { - "$id": "421", - "name": "CollectionsModel", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "422", - "name": "get", - "resourceName": "CollectionsModel", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "423", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "424", - "kind": "constant", - "valueType": { - "$id": "425", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "426", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "111" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/collections/model", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get", - "decorators": [] - }, - { - "$id": "427", - "name": "put", - "resourceName": "CollectionsModel", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "428", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "429", - "kind": "constant", - "valueType": { - "$id": "430", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "431", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "111" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "432", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/collections/model", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "433", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "434", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "435", - "type": { - "$id": "436", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel" - }, - { - "$id": "437", - "name": "DictionaryString", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "438", - "name": "get", - "resourceName": "DictionaryString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "439", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "440", - "kind": "constant", - "valueType": { - "$id": "441", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "442", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "104" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/dictionary/string", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get", - "decorators": [] - }, - { - "$id": "443", - "name": "put", - "resourceName": "DictionaryString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "444", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "445", - "kind": "constant", - "valueType": { - "$id": "446", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "447", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "104" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "448", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/dictionary/string", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "449", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "450", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "451", - "type": { - "$id": "452", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString" - }, - { - "$id": "453", - "name": "Never", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "454", - "name": "get", - "resourceName": "Never", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "455", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "456", - "kind": "constant", - "valueType": { - "$id": "457", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "458", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "103" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/never", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get", - "decorators": [] - }, - { - "$id": "459", - "name": "put", - "resourceName": "Never", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "460", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "461", - "kind": "constant", - "valueType": { - "$id": "462", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "463", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "103" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "464", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/never", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "465", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "466", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "467", - "type": { - "$id": "468", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never" - }, - { - "$id": "469", - "name": "UnknownString", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "470", - "name": "get", - "resourceName": "UnknownString", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "471", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "472", - "kind": "constant", - "valueType": { - "$id": "473", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "474", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "98" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/unknown/string", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get", - "decorators": [] - }, - { - "$id": "475", - "name": "put", - "resourceName": "UnknownString", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "476", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "477", - "kind": "constant", - "valueType": { - "$id": "478", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "479", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "98" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "480", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/unknown/string", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "481", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "482", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "483", - "type": { - "$id": "484", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString" - }, - { - "$id": "485", - "name": "UnknownInt", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "486", - "name": "get", - "resourceName": "UnknownInt", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "487", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "488", - "kind": "constant", - "valueType": { - "$id": "489", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "490", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "93" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/unknown/int", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get", - "decorators": [] - }, - { - "$id": "491", - "name": "put", - "resourceName": "UnknownInt", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "492", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "493", - "kind": "constant", - "valueType": { - "$id": "494", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "495", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "93" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "496", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/unknown/int", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "497", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "498", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "499", - "type": { - "$id": "500", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt" - }, - { - "$id": "501", - "name": "UnknownDict", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "502", - "name": "get", - "resourceName": "UnknownDict", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "503", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "504", - "kind": "constant", - "valueType": { - "$id": "505", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "506", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "88" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/unknown/dict", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get", - "decorators": [] - }, - { - "$id": "507", - "name": "put", - "resourceName": "UnknownDict", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "508", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "509", - "kind": "constant", - "valueType": { - "$id": "510", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "511", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "88" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "512", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/unknown/dict", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "513", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "514", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "515", - "type": { - "$id": "516", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict" - }, - { - "$id": "517", - "name": "UnknownArray", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "518", - "name": "get", - "resourceName": "UnknownArray", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "519", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "520", - "kind": "constant", - "valueType": { - "$id": "521", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "522", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "83" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/unknown/array", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get", - "decorators": [] - }, - { - "$id": "523", - "name": "put", - "resourceName": "UnknownArray", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "524", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "525", - "kind": "constant", - "valueType": { - "$id": "526", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "527", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "83" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "528", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/unknown/array", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "529", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "530", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "531", - "type": { - "$id": "532", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray" - }, - { - "$id": "533", - "name": "StringLiteral", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "534", - "name": "get", - "resourceName": "StringLiteral", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "535", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "536", - "kind": "constant", - "valueType": { - "$id": "537", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "538", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "78" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/string/literal", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get", - "decorators": [] - }, - { - "$id": "539", - "name": "put", - "resourceName": "StringLiteral", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "540", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "541", - "kind": "constant", - "valueType": { - "$id": "542", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "543", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "78" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "544", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/string/literal", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "545", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "546", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "547", - "type": { - "$id": "548", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral" - }, - { - "$id": "549", - "name": "IntLiteral", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "550", - "name": "get", - "resourceName": "IntLiteral", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "551", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "552", - "kind": "constant", - "valueType": { - "$id": "553", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "554", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "73" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/int/literal", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get", - "decorators": [] - }, - { - "$id": "555", - "name": "put", - "resourceName": "IntLiteral", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "556", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "557", - "kind": "constant", - "valueType": { - "$id": "558", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "559", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "73" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "560", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/int/literal", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "561", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "562", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "563", - "type": { - "$id": "564", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral" - }, - { - "$id": "565", - "name": "FloatLiteral", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "566", - "name": "get", - "resourceName": "FloatLiteral", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "567", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "568", - "kind": "constant", - "valueType": { - "$id": "569", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "570", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "68" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/float/literal", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get", - "decorators": [] - }, - { - "$id": "571", - "name": "put", - "resourceName": "FloatLiteral", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "572", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "573", - "kind": "constant", - "valueType": { - "$id": "574", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "575", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "68" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "576", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/float/literal", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "577", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "578", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "579", - "type": { - "$id": "580", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral" - }, - { - "$id": "581", - "name": "BooleanLiteral", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "582", - "name": "get", - "resourceName": "BooleanLiteral", - "doc": "Get call", - "accessibility": "public", - "parameters": [ - { - "$id": "583", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "584", - "kind": "constant", - "valueType": { - "$id": "585", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "586", - "statusCodes": [ - 200 + "responses": [ + { + "$id": "544", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "bodyType": { - "$ref": "62" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/string/literal", + "requestMediaTypes": [ "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/boolean/literal", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get", - "decorators": [] - }, - { - "$id": "587", - "name": "put", - "resourceName": "BooleanLiteral", - "doc": "Put operation", - "accessibility": "public", - "parameters": [ - { - "$id": "588", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "589", - "kind": "constant", - "valueType": { - "$id": "590", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "591", - "name": "body", - "nameInRequest": "body", - "doc": "body", - "type": { - "$ref": "62" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "592", - "statusCodes": [ - 204 ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/boolean/literal", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "593", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "594", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "595", - "type": { - "$id": "596", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral" - }, - { - "$id": "597", - "name": "UnionStringLiteral", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "598", - "name": "get", - "resourceName": "UnionStringLiteral", - "doc": "Get call", - "accessibility": "public", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put", + "decorators": [] + } + ], "parameters": [ { - "$id": "599", - "name": "accept", - "nameInRequest": "Accept", + "$id": "545", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "600", - "kind": "constant", - "valueType": { - "$id": "601", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "546", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "547", + "type": { + "$id": "548", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "549", + "kind": "client", + "name": "IntLiteral", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "550", + "name": "get", + "resourceName": "IntLiteral", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "551", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "552", + "kind": "constant", + "valueType": { + "$id": "553", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "554", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "73" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/int/literal", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get", + "decorators": [] + }, { - "$id": "602", - "statusCodes": [ - 200 + "$id": "555", + "name": "put", + "resourceName": "IntLiteral", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "556", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "557", + "kind": "constant", + "valueType": { + "$id": "558", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "559", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "73" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "58" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "560", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/int/literal", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/union/string/literal", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get", - "decorators": [] - }, - { - "$id": "603", - "name": "put", - "resourceName": "UnionStringLiteral", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "604", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "605", - "kind": "constant", - "valueType": { - "$id": "606", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "607", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "561", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "58" + "$id": "562", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "563", + "type": { + "$id": "564", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "565", + "kind": "client", + "name": "FloatLiteral", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "566", + "name": "get", + "resourceName": "FloatLiteral", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "567", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "568", + "kind": "constant", + "valueType": { + "$id": "569", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "570", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "68" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/float/literal", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get", + "decorators": [] + }, { - "$id": "608", - "statusCodes": [ - 204 + "$id": "571", + "name": "put", + "resourceName": "FloatLiteral", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "572", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "573", + "kind": "constant", + "valueType": { + "$id": "574", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "575", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "68" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "576", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/float/literal", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/union/string/literal", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "609", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "610", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "611", - "type": { - "$id": "612", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral" - }, - { - "$id": "613", - "name": "UnionIntLiteral", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "614", - "name": "get", - "resourceName": "UnionIntLiteral", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "615", - "name": "accept", - "nameInRequest": "Accept", + "$id": "577", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "616", - "kind": "constant", - "valueType": { - "$id": "617", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "578", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "579", + "type": { + "$id": "580", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "581", + "kind": "client", + "name": "BooleanLiteral", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "582", + "name": "get", + "resourceName": "BooleanLiteral", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "583", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "584", + "kind": "constant", + "valueType": { + "$id": "585", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "586", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "62" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/boolean/literal", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get", + "decorators": [] + }, { - "$id": "618", - "statusCodes": [ - 200 + "$id": "587", + "name": "put", + "resourceName": "BooleanLiteral", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "588", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "589", + "kind": "constant", + "valueType": { + "$id": "590", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "591", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "62" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "54" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "592", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/boolean/literal", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/union/int/literal", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get", - "decorators": [] - }, - { - "$id": "619", - "name": "put", - "resourceName": "UnionIntLiteral", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "620", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "621", - "kind": "constant", - "valueType": { - "$id": "622", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "623", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "593", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "54" + "$id": "594", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "624", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "595", + "type": { + "$id": "596", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/union/int/literal", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "625", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "626", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "627", - "type": { - "$id": "628", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral", + "apiVersions": [], + "parent": { + "$ref": "192" } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral" - }, - { - "$id": "629", - "name": "UnionFloatLiteral", - "namespace": "Type.Property.ValueTypes", - "operations": [ + }, { - "$id": "630", - "name": "get", - "resourceName": "UnionFloatLiteral", - "doc": "Get call", - "accessibility": "public", + "$id": "597", + "kind": "client", + "name": "UnionStringLiteral", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "598", + "name": "get", + "resourceName": "UnionStringLiteral", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "599", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "600", + "kind": "constant", + "valueType": { + "$id": "601", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "602", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "58" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/union/string/literal", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get", + "decorators": [] + }, + { + "$id": "603", + "name": "put", + "resourceName": "UnionStringLiteral", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "604", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "605", + "kind": "constant", + "valueType": { + "$id": "606", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "607", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "58" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "608", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/union/string/literal", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put", + "decorators": [] + } + ], "parameters": [ { - "$id": "631", - "name": "accept", - "nameInRequest": "Accept", + "$id": "609", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "632", - "kind": "constant", - "valueType": { - "$id": "633", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "610", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "611", + "type": { + "$id": "612", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "613", + "kind": "client", + "name": "UnionIntLiteral", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "614", + "name": "get", + "resourceName": "UnionIntLiteral", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "615", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "616", + "kind": "constant", + "valueType": { + "$id": "617", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "618", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "54" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/union/int/literal", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get", + "decorators": [] + }, { - "$id": "634", - "statusCodes": [ - 200 + "$id": "619", + "name": "put", + "resourceName": "UnionIntLiteral", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "620", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "621", + "kind": "constant", + "valueType": { + "$id": "622", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "623", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "54" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "50" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "624", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/union/int/literal", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/union/float/literal", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get", - "decorators": [] - }, - { - "$id": "635", - "name": "put", - "resourceName": "UnionFloatLiteral", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "636", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "637", - "kind": "constant", - "valueType": { - "$id": "638", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "639", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "625", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "50" + "$id": "626", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "627", + "type": { + "$id": "628", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "629", + "kind": "client", + "name": "UnionFloatLiteral", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "630", + "name": "get", + "resourceName": "UnionFloatLiteral", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "631", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "632", + "kind": "constant", + "valueType": { + "$id": "633", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "634", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "50" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/union/float/literal", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get", + "decorators": [] + }, { - "$id": "640", - "statusCodes": [ - 204 + "$id": "635", + "name": "put", + "resourceName": "UnionFloatLiteral", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "636", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "637", + "kind": "constant", + "valueType": { + "$id": "638", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "639", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "50" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "640", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/union/float/literal", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/union/float/literal", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "641", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "642", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "643", - "type": { - "$id": "644", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral" - }, - { - "$id": "645", - "name": "UnionEnumValue", - "namespace": "Type.Property.ValueTypes", - "operations": [ - { - "$id": "646", - "name": "get", - "resourceName": "UnionEnumValue", - "doc": "Get call", - "accessibility": "public", "parameters": [ { - "$id": "647", - "name": "accept", - "nameInRequest": "Accept", + "$id": "641", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "648", - "kind": "constant", - "valueType": { - "$id": "649", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "642", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "643", + "type": { + "$id": "644", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral", + "apiVersions": [], + "parent": { + "$ref": "192" + } + }, + { + "$id": "645", + "kind": "client", + "name": "UnionEnumValue", + "namespace": "Type.Property.ValueTypes", + "operations": [ + { + "$id": "646", + "name": "get", + "resourceName": "UnionEnumValue", + "doc": "Get call", + "accessibility": "public", + "parameters": [ + { + "$id": "647", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "648", + "kind": "constant", + "valueType": { + "$id": "649", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "650", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "45" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/property/value-types/union-enum-value", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get", + "decorators": [] + }, { - "$id": "650", - "statusCodes": [ - 200 + "$id": "651", + "name": "put", + "resourceName": "UnionEnumValue", + "doc": "Put operation", + "accessibility": "public", + "parameters": [ + { + "$id": "652", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "653", + "kind": "constant", + "valueType": { + "$id": "654", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "655", + "name": "body", + "nameInRequest": "body", + "doc": "body", + "type": { + "$ref": "45" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "45" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "656", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/property/value-types/union-enum-value", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/property/value-types/union-enum-value", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get", - "decorators": [] - }, - { - "$id": "651", - "name": "put", - "resourceName": "UnionEnumValue", - "doc": "Put operation", - "accessibility": "public", "parameters": [ { - "$id": "652", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "653", - "kind": "constant", - "valueType": { - "$id": "654", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "655", - "name": "body", - "nameInRequest": "body", - "doc": "body", + "$id": "657", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "45" + "$id": "658", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "656", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "659", + "type": { + "$id": "660", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/property/value-types/union-enum-value", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put", - "decorators": [] - } - ], - "parent": "ValueTypesClient", - "parameters": [ - { - "$id": "657", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "658", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "659", - "type": { - "$id": "660", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue", + "apiVersions": [], + "parent": { + "$ref": "192" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue" + ] } ] } 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 e31a241700a..107d97ac124 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 @@ -7,6 +7,7 @@ "clients": [ { "$id": "2", + "kind": "client", "name": "ScalarClient", "namespace": "Type.Scalar", "operations": [], @@ -43,71 +44,114 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar" - }, - { - "$id": "7", - "name": "String", - "namespace": "Type.Scalar", - "operations": [ + "crossLanguageDefinitionId": "Type.Scalar", + "apiVersions": [], + "children": [ { - "$id": "8", - "name": "get", - "resourceName": "String", - "doc": "get string value", - "accessibility": "public", - "parameters": [ - { - "$id": "9", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "10", - "kind": "constant", - "valueType": { - "$id": "11", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "7", + "kind": "client", + "name": "String", + "namespace": "Type.Scalar", + "operations": [ { - "$id": "12", - "statusCodes": [ - 200 + "$id": "8", + "name": "get", + "resourceName": "String", + "doc": "get string value", + "accessibility": "public", + "parameters": [ + { + "$id": "9", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "10", + "kind": "constant", + "valueType": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$id": "13", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "headers": [ + "responses": [ + { + "$id": "12", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "headers": [ + { + "$id": "14", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "15", + "kind": "constant", + "valueType": { + "$id": "16", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/scalar/string", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.String.get", + "decorators": [] + }, + { + "$id": "17", + "name": "put", + "resourceName": "String", + "doc": "put string value", + "accessibility": "public", + "parameters": [ { - "$id": "14", + "$id": "18", "name": "contentType", - "nameInResponse": "content-type", + "nameInRequest": "Content-Type", "type": { - "$id": "15", + "$id": "19", "kind": "constant", "valueType": { - "$id": "16", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -115,203 +159,207 @@ }, "value": "application/json", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "21", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$id": "22", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "23", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false } ], - "isErrorResponse": false, - "contentTypes": [ + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/scalar/string", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.String.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/scalar/string", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.String.get", - "decorators": [] - }, - { - "$id": "17", - "name": "put", - "resourceName": "String", - "doc": "put string value", - "accessibility": "public", "parameters": [ { - "$id": "18", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "19", - "kind": "constant", - "valueType": { - "$id": "20", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "21", - "name": "body", - "nameInRequest": "body", - "doc": "_", + "$id": "24", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "22", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "25", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "23", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/scalar/string", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.String.put", - "decorators": [] - } - ], - "parent": "ScalarClient", - "parameters": [ - { - "$id": "24", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "25", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "26", - "type": { - "$id": "27", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.String" - }, - { - "$id": "28", - "name": "Boolean", - "namespace": "Type.Scalar", - "operations": [ - { - "$id": "29", - "name": "get", - "resourceName": "Boolean", - "doc": "get boolean value", - "accessibility": "public", - "parameters": [ - { - "$id": "30", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "31", - "kind": "constant", - "valueType": { - "$id": "32", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "26", + "type": { + "$id": "27", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.String", + "apiVersions": [], + "parent": { + "$ref": "2" + } + }, + { + "$id": "28", + "kind": "client", + "name": "Boolean", + "namespace": "Type.Scalar", + "operations": [ { - "$id": "33", - "statusCodes": [ - 200 + "$id": "29", + "name": "get", + "resourceName": "Boolean", + "doc": "get boolean value", + "accessibility": "public", + "parameters": [ + { + "$id": "30", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "31", + "kind": "constant", + "valueType": { + "$id": "32", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$id": "34", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] - }, - "headers": [ + "responses": [ + { + "$id": "33", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "34", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "headers": [ + { + "$id": "35", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "36", + "kind": "constant", + "valueType": { + "$id": "37", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/scalar/boolean", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.Boolean.get", + "decorators": [] + }, + { + "$id": "38", + "name": "put", + "resourceName": "Boolean", + "doc": "put boolean value", + "accessibility": "public", + "parameters": [ { - "$id": "35", + "$id": "39", "name": "contentType", - "nameInResponse": "content-type", + "nameInRequest": "Content-Type", "type": { - "$id": "36", + "$id": "40", "kind": "constant", "valueType": { - "$id": "37", + "$id": "41", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -319,203 +367,207 @@ }, "value": "application/json", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "42", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$id": "43", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "44", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false } ], - "isErrorResponse": false, - "contentTypes": [ + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/scalar/boolean", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.Boolean.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/scalar/boolean", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.Boolean.get", - "decorators": [] - }, - { - "$id": "38", - "name": "put", - "resourceName": "Boolean", - "doc": "put boolean value", - "accessibility": "public", "parameters": [ { - "$id": "39", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "40", - "kind": "constant", - "valueType": { - "$id": "41", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "42", - "name": "body", - "nameInRequest": "body", - "doc": "_", + "$id": "45", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "43", - "kind": "boolean", - "name": "boolean", - "crossLanguageDefinitionId": "TypeSpec.boolean", - "decorators": [] + "$id": "46", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "44", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/scalar/boolean", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.Boolean.put", - "decorators": [] - } - ], - "parent": "ScalarClient", - "parameters": [ - { - "$id": "45", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "46", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "47", - "type": { - "$id": "48", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Boolean" - }, - { - "$id": "49", - "name": "Unknown", - "namespace": "Type.Scalar", - "operations": [ - { - "$id": "50", - "name": "get", - "resourceName": "Unknown", - "doc": "get unknown value", - "accessibility": "public", - "parameters": [ - { - "$id": "51", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "52", - "kind": "constant", - "valueType": { - "$id": "53", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "47", + "type": { + "$id": "48", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.Boolean", + "apiVersions": [], + "parent": { + "$ref": "2" + } + }, + { + "$id": "49", + "kind": "client", + "name": "Unknown", + "namespace": "Type.Scalar", + "operations": [ { - "$id": "54", - "statusCodes": [ - 200 + "$id": "50", + "name": "get", + "resourceName": "Unknown", + "doc": "get unknown value", + "accessibility": "public", + "parameters": [ + { + "$id": "51", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "52", + "kind": "constant", + "valueType": { + "$id": "53", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$id": "55", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] - }, - "headers": [ + "responses": [ + { + "$id": "54", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "55", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "headers": [ + { + "$id": "56", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "57", + "kind": "constant", + "valueType": { + "$id": "58", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/scalar/unknown", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.Unknown.get", + "decorators": [] + }, + { + "$id": "59", + "name": "put", + "resourceName": "Unknown", + "doc": "put unknown value", + "accessibility": "public", + "parameters": [ { - "$id": "56", + "$id": "60", "name": "contentType", - "nameInResponse": "content-type", + "nameInRequest": "Content-Type", "type": { - "$id": "57", + "$id": "61", "kind": "constant", "valueType": { - "$id": "58", + "$id": "62", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -523,203 +575,206 @@ }, "value": "application/json", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "63", + "name": "body", + "nameInRequest": "body", + "doc": "_", + "type": { + "$id": "64", + "kind": "unknown", + "name": "unknown", + "crossLanguageDefinitionId": "", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false } ], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "65", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/scalar/unknown", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.Unknown.put", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/scalar/unknown", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.Unknown.get", - "decorators": [] - }, - { - "$id": "59", - "name": "put", - "resourceName": "Unknown", - "doc": "put unknown value", - "accessibility": "public", "parameters": [ { - "$id": "60", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "61", - "kind": "constant", - "valueType": { - "$id": "62", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "63", - "name": "body", - "nameInRequest": "body", - "doc": "_", + "$id": "66", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "64", - "kind": "unknown", - "name": "unknown", - "crossLanguageDefinitionId": "", - "decorators": [] + "$id": "67", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "65", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "68", + "type": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/scalar/unknown", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.Unknown.put", - "decorators": [] - } - ], - "parent": "ScalarClient", - "parameters": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.Unknown", + "apiVersions": [], + "parent": { + "$ref": "2" + } + }, { - "$id": "66", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "67", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "68", - "type": { - "$id": "69", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Unknown" - }, - { - "$id": "70", - "name": "DecimalType", - "namespace": "Type.Scalar", - "doc": "Decimal type", - "operations": [ - { - "$id": "71", - "name": "responseBody", - "resourceName": "DecimalType", - "accessibility": "public", - "parameters": [ + "$id": "70", + "kind": "client", + "name": "DecimalType", + "namespace": "Type.Scalar", + "doc": "Decimal type", + "operations": [ { - "$id": "72", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "73", - "kind": "constant", - "valueType": { - "$id": "74", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "75", - "statusCodes": [ - 200 + "$id": "71", + "name": "responseBody", + "resourceName": "DecimalType", + "accessibility": "public", + "parameters": [ + { + "$id": "72", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "73", + "kind": "constant", + "valueType": { + "$id": "74", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$id": "76", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "headers": [ + "responses": [ + { + "$id": "75", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "76", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "headers": [ + { + "$id": "77", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "78", + "kind": "constant", + "valueType": { + "$id": "79", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/scalar/decimal/response_body", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.DecimalType.responseBody", + "decorators": [] + }, + { + "$id": "80", + "name": "requestBody", + "resourceName": "DecimalType", + "accessibility": "public", + "parameters": [ { - "$id": "77", + "$id": "81", "name": "contentType", - "nameInResponse": "content-type", + "nameInRequest": "Content-Type", "type": { - "$id": "78", + "$id": "82", "kind": "constant", "valueType": { - "$id": "79", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -727,248 +782,252 @@ }, "value": "application/json", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "84", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "85", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false } ], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "86", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/scalar/decimal/resquest_body", + "requestMediaTypes": [ "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/scalar/decimal/response_body", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.DecimalType.responseBody", - "decorators": [] - }, - { - "$id": "80", - "name": "requestBody", - "resourceName": "DecimalType", - "accessibility": "public", - "parameters": [ - { - "$id": "81", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "82", - "kind": "constant", - "valueType": { - "$id": "83", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody", + "decorators": [] }, { - "$id": "84", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "85", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "86", - "statusCodes": [ - 204 + "$id": "87", + "name": "requestParameter", + "resourceName": "DecimalType", + "accessibility": "public", + "parameters": [ + { + "$id": "88", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "89", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false + "responses": [ + { + "$id": "90", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/scalar/decimal/request_parameter", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestParameter", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/scalar/decimal/resquest_body", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody", - "decorators": [] - }, - { - "$id": "87", - "name": "requestParameter", - "resourceName": "DecimalType", - "accessibility": "public", "parameters": [ { - "$id": "88", - "name": "value", - "nameInRequest": "value", + "$id": "91", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "89", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] + "$id": "92", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Query", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "90", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/scalar/decimal/request_parameter", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestParameter", - "decorators": [] - } - ], - "parent": "ScalarClient", - "parameters": [ - { - "$id": "91", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "92", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "93", - "type": { - "$id": "94", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.DecimalType" - }, - { - "$id": "95", - "name": "Decimal128Type", - "namespace": "Type.Scalar", - "doc": "Decimal128 type", - "operations": [ - { - "$id": "96", - "name": "responseBody", - "resourceName": "Decimal128Type", - "accessibility": "public", - "parameters": [ - { - "$id": "97", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "98", - "kind": "constant", - "valueType": { - "$id": "99", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "93", + "type": { + "$id": "94", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.DecimalType", + "apiVersions": [], + "parent": { + "$ref": "2" + } + }, + { + "$id": "95", + "kind": "client", + "name": "Decimal128Type", + "namespace": "Type.Scalar", + "doc": "Decimal128 type", + "operations": [ { - "$id": "100", - "statusCodes": [ - 200 + "$id": "96", + "name": "responseBody", + "resourceName": "Decimal128Type", + "accessibility": "public", + "parameters": [ + { + "$id": "97", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "98", + "kind": "constant", + "valueType": { + "$id": "99", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$id": "101", - "kind": "decimal128", - "name": "decimal128", - "crossLanguageDefinitionId": "TypeSpec.decimal128", - "decorators": [] - }, - "headers": [ + "responses": [ + { + "$id": "100", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "101", + "kind": "decimal128", + "name": "decimal128", + "crossLanguageDefinitionId": "TypeSpec.decimal128", + "decorators": [] + }, + "headers": [ + { + "$id": "102", + "name": "contentType", + "nameInResponse": "content-type", + "type": { + "$id": "103", + "kind": "constant", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + } + } + ], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/scalar/decimal128/response_body", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.responseBody", + "decorators": [] + }, + { + "$id": "105", + "name": "requestBody", + "resourceName": "Decimal128Type", + "accessibility": "public", + "parameters": [ { - "$id": "102", + "$id": "106", "name": "contentType", - "nameInResponse": "content-type", + "nameInRequest": "Content-Type", "type": { - "$id": "103", + "$id": "107", "kind": "constant", "valueType": { - "$id": "104", + "$id": "108", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -976,564 +1035,537 @@ }, "value": "application/json", "decorators": [] - } + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "109", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "110", + "kind": "decimal128", + "name": "decimal128", + "crossLanguageDefinitionId": "TypeSpec.decimal128", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "111", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false } ], - "isErrorResponse": false, - "contentTypes": [ + "httpMethod": "PUT", + "uri": "{endpoint}", + "path": "/type/scalar/decimal128/resquest_body", + "requestMediaTypes": [ "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/scalar/decimal128/response_body", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.responseBody", - "decorators": [] - }, - { - "$id": "105", - "name": "requestBody", - "resourceName": "Decimal128Type", - "accessibility": "public", - "parameters": [ - { - "$id": "106", - "name": "contentType", - "nameInRequest": "Content-Type", - "type": { - "$id": "107", - "kind": "constant", - "valueType": { - "$id": "108", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody", + "decorators": [] }, { - "$id": "109", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "110", - "kind": "decimal128", - "name": "decimal128", - "crossLanguageDefinitionId": "TypeSpec.decimal128", - "decorators": [] - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "111", - "statusCodes": [ - 204 + "$id": "112", + "name": "requestParameter", + "resourceName": "Decimal128Type", + "accessibility": "public", + "parameters": [ + { + "$id": "113", + "name": "value", + "nameInRequest": "value", + "type": { + "$id": "114", + "kind": "decimal128", + "name": "decimal128", + "crossLanguageDefinitionId": "TypeSpec.decimal128", + "decorators": [] + }, + "location": "Query", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "115", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/scalar/decimal128/request_parameter", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestParameter", + "decorators": [] } ], - "httpMethod": "PUT", - "uri": "{endpoint}", - "path": "/type/scalar/decimal128/resquest_body", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody", - "decorators": [] - }, - { - "$id": "112", - "name": "requestParameter", - "resourceName": "Decimal128Type", - "accessibility": "public", "parameters": [ { - "$id": "113", - "name": "value", - "nameInRequest": "value", + "$id": "116", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "114", - "kind": "decimal128", - "name": "decimal128", - "crossLanguageDefinitionId": "TypeSpec.decimal128", - "decorators": [] + "$id": "117", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Query", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "115", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/scalar/decimal128/request_parameter", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestParameter", - "decorators": [] - } - ], - "parent": "ScalarClient", - "parameters": [ - { - "$id": "116", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "117", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "118", - "type": { - "$id": "119", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type" - }, - { - "$id": "120", - "name": "DecimalVerify", - "namespace": "Type.Scalar", - "doc": "Decimal type verification", - "operations": [ - { - "$id": "121", - "name": "prepareVerify", - "resourceName": "DecimalVerify", - "accessibility": "public", - "parameters": [ - { - "$id": "122", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "123", - "kind": "constant", - "valueType": { - "$id": "124", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "118", + "type": { + "$id": "119", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Type", + "apiVersions": [], + "parent": { + "$ref": "2" + } + }, + { + "$id": "120", + "kind": "client", + "name": "DecimalVerify", + "namespace": "Type.Scalar", + "doc": "Decimal type verification", + "operations": [ { - "$id": "125", - "statusCodes": [ - 200 + "$id": "121", + "name": "prepareVerify", + "resourceName": "DecimalVerify", + "accessibility": "public", + "parameters": [ + { + "$id": "122", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "123", + "kind": "constant", + "valueType": { + "$id": "124", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$id": "126", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "127", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] + "responses": [ + { + "$id": "125", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "126", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "127", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/scalar/decimal/prepare_verify", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.prepareVerify", + "decorators": [] + }, + { + "$id": "128", + "name": "verify", + "resourceName": "DecimalVerify", + "accessibility": "public", + "parameters": [ + { + "$id": "129", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "130", + "kind": "constant", + "valueType": { + "$id": "131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + { + "$id": "132", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "133", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "134", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/scalar/decimal/verify", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/scalar/decimal/prepare_verify", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.prepareVerify", - "decorators": [] - }, - { - "$id": "128", - "name": "verify", - "resourceName": "DecimalVerify", - "accessibility": "public", "parameters": [ { - "$id": "129", - "name": "contentType", - "nameInRequest": "Content-Type", + "$id": "135", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "130", - "kind": "constant", - "valueType": { - "$id": "131", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "136", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "132", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "133", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "134", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/scalar/decimal/verify", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.verify", - "decorators": [] - } - ], - "parent": "ScalarClient", - "parameters": [ - { - "$id": "135", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "136", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "137", - "type": { - "$id": "138", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify" - }, - { - "$id": "139", - "name": "Decimal128Verify", - "namespace": "Type.Scalar", - "doc": "Decimal128 type verification", - "operations": [ - { - "$id": "140", - "name": "prepareVerify", - "resourceName": "Decimal128Verify", - "accessibility": "public", - "parameters": [ - { - "$id": "141", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "142", - "kind": "constant", - "valueType": { - "$id": "143", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "137", + "type": { + "$id": "138", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.DecimalVerify", + "apiVersions": [], + "parent": { + "$ref": "2" + } + }, + { + "$id": "139", + "kind": "client", + "name": "Decimal128Verify", + "namespace": "Type.Scalar", + "doc": "Decimal128 type verification", + "operations": [ { - "$id": "144", - "statusCodes": [ - 200 + "$id": "140", + "name": "prepareVerify", + "resourceName": "Decimal128Verify", + "accessibility": "public", + "parameters": [ + { + "$id": "141", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "142", + "kind": "constant", + "valueType": { + "$id": "143", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$id": "145", - "kind": "array", - "name": "Array", - "valueType": { - "$id": "146", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] + "responses": [ + { + "$id": "144", + "statusCodes": [ + 200 + ], + "bodyType": { + "$id": "145", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "146", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/scalar/decimal128/prepare_verify", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify", + "decorators": [] + }, + { + "$id": "147", + "name": "verify", + "resourceName": "Decimal128Verify", + "accessibility": "public", + "parameters": [ + { + "$id": "148", + "name": "contentType", + "nameInRequest": "Content-Type", + "type": { + "$id": "149", + "kind": "constant", + "valueType": { + "$id": "150", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "crossLanguageDefinitionId": "TypeSpec.Array", - "decorators": [] - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + { + "$id": "151", + "name": "body", + "nameInRequest": "body", + "type": { + "$id": "152", + "kind": "decimal", + "name": "decimal", + "crossLanguageDefinitionId": "TypeSpec.decimal", + "decorators": [] + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "153", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/scalar/decimal128/verify", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/scalar/decimal128/prepare_verify", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify", - "decorators": [] - }, - { - "$id": "147", - "name": "verify", - "resourceName": "Decimal128Verify", - "accessibility": "public", "parameters": [ { - "$id": "148", - "name": "contentType", - "nameInRequest": "Content-Type", + "$id": "154", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "149", - "kind": "constant", - "valueType": { - "$id": "150", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "155", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "151", - "name": "body", - "nameInRequest": "body", - "type": { - "$id": "152", - "kind": "decimal", - "name": "decimal", - "crossLanguageDefinitionId": "TypeSpec.decimal", - "decorators": [] - }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "153", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "156", + "type": { + "$id": "157", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/scalar/decimal128/verify", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.verify", - "decorators": [] - } - ], - "parent": "ScalarClient", - "parameters": [ - { - "$id": "154", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "155", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "156", - "type": { - "$id": "157", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify", + "apiVersions": [], + "parent": { + "$ref": "2" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify" + ] } ] } 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 901d85646e9..73b1b2b6e33 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 @@ -1716,6 +1716,7 @@ "clients": [ { "$id": "211", + "kind": "client", "name": "UnionClient", "namespace": "Type.Union", "doc": "Describe scenarios for various combinations of unions.", @@ -1753,1767 +1754,1810 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Type.Union" - }, - { - "$id": "216", - "name": "StringsOnly", - "namespace": "Type.Union", - "doc": "Describe union of string \"a\" | \"b\" | \"c\"", - "operations": [ - { - "$id": "217", - "name": "get", - "resourceName": "StringsOnly", - "accessibility": "public", - "parameters": [ + "crossLanguageDefinitionId": "Type.Union", + "apiVersions": [], + "children": [ + { + "$id": "216", + "kind": "client", + "name": "StringsOnly", + "namespace": "Type.Union", + "doc": "Describe union of string \"a\" | \"b\" | \"c\"", + "operations": [ { - "$id": "218", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "219", - "kind": "constant", - "valueType": { - "$id": "220", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ + "$id": "217", + "name": "get", + "resourceName": "StringsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "218", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "219", + "kind": "constant", + "valueType": { + "$id": "220", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "221", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "203" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/union/strings-only", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.StringsOnly.get", + "decorators": [] + }, { - "$id": "221", - "statusCodes": [ - 200 + "$id": "222", + "name": "send", + "resourceName": "StringsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "223", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "224", + "kind": "constant", + "valueType": { + "$id": "225", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "226", + "name": "sendRequest9", + "nameInRequest": "sendRequest9", + "type": { + "$ref": "207" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "203" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "227", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/union/strings-only", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.StringsOnly.send", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/union/strings-only", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.StringsOnly.get", - "decorators": [] - }, - { - "$id": "222", - "name": "send", - "resourceName": "StringsOnly", - "accessibility": "public", "parameters": [ { - "$id": "223", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "224", - "kind": "constant", - "valueType": { - "$id": "225", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "226", - "name": "sendRequest9", - "nameInRequest": "sendRequest9", + "$id": "228", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "207" + "$id": "229", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "230", + "type": { + "$id": "231", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringsOnly", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "232", + "kind": "client", + "name": "StringExtensible", + "namespace": "Type.Union", + "doc": "Describe union of string string | \"b\" | \"c\"", + "operations": [ { - "$id": "227", - "statusCodes": [ - 204 + "$id": "233", + "name": "get", + "resourceName": "StringExtensible", + "accessibility": "public", + "parameters": [ + { + "$id": "234", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "235", + "kind": "constant", + "valueType": { + "$id": "236", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/union/strings-only", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.StringsOnly.send", - "decorators": [] - } - ], - "parent": "UnionClient", - "parameters": [ - { - "$id": "228", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "229", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "230", - "type": { - "$id": "231", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" + "responses": [ + { + "$id": "237", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "195" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/union/string-extensible", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.StringExtensible.get", + "decorators": [] }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringsOnly" - }, - { - "$id": "232", - "name": "StringExtensible", - "namespace": "Type.Union", - "doc": "Describe union of string string | \"b\" | \"c\"", - "operations": [ - { - "$id": "233", - "name": "get", - "resourceName": "StringExtensible", - "accessibility": "public", - "parameters": [ { - "$id": "234", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "235", - "kind": "constant", - "valueType": { - "$id": "236", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "238", + "name": "send", + "resourceName": "StringExtensible", + "accessibility": "public", + "parameters": [ + { + "$id": "239", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "240", + "kind": "constant", + "valueType": { + "$id": "241", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "237", - "statusCodes": [ - 200 + { + "$id": "242", + "name": "sendRequest8", + "nameInRequest": "sendRequest8", + "type": { + "$ref": "199" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "195" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "243", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/union/string-extensible", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.StringExtensible.send", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/union/string-extensible", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.StringExtensible.get", - "decorators": [] - }, - { - "$id": "238", - "name": "send", - "resourceName": "StringExtensible", - "accessibility": "public", "parameters": [ { - "$id": "239", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "240", - "kind": "constant", - "valueType": { - "$id": "241", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "242", - "name": "sendRequest8", - "nameInRequest": "sendRequest8", + "$id": "244", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "199" + "$id": "245", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "243", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/union/string-extensible", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.StringExtensible.send", - "decorators": [] - } - ], - "parent": "UnionClient", - "parameters": [ - { - "$id": "244", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "245", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "246", - "type": { - "$id": "247", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringExtensible" - }, - { - "$id": "248", - "name": "StringExtensibleNamed", - "namespace": "Type.Union", - "doc": "Describe union of string string | \"b\" | \"c\" but where the union is named and some of the variants are named", - "operations": [ - { - "$id": "249", - "name": "get", - "resourceName": "StringExtensibleNamed", - "accessibility": "public", - "parameters": [ - { - "$id": "250", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "251", - "kind": "constant", - "valueType": { - "$id": "252", + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "246", + "type": { + "$id": "247", "kind": "string", "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "crossLanguageDefinitionId": "TypeSpec.string" }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "253", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "187" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] + "value": "http://localhost:3000" + } } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/union/string-extensible-named", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get", - "decorators": [] + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringExtensible", + "apiVersions": [], + "parent": { + "$ref": "211" + } }, { - "$id": "254", - "name": "send", - "resourceName": "StringExtensibleNamed", - "accessibility": "public", - "parameters": [ + "$id": "248", + "kind": "client", + "name": "StringExtensibleNamed", + "namespace": "Type.Union", + "doc": "Describe union of string string | \"b\" | \"c\" but where the union is named and some of the variants are named", + "operations": [ { - "$id": "255", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "256", - "kind": "constant", - "valueType": { - "$id": "257", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "$id": "249", + "name": "get", + "resourceName": "StringExtensibleNamed", + "accessibility": "public", + "parameters": [ + { + "$id": "250", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "251", + "kind": "constant", + "valueType": { + "$id": "252", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "253", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "187" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/union/string-extensible-named", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get", + "decorators": [] }, { - "$id": "258", - "name": "sendRequest7", - "nameInRequest": "sendRequest7", - "type": { - "$ref": "191" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "259", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/union/string-extensible-named", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send", - "decorators": [] - } - ], - "parent": "UnionClient", - "parameters": [ - { - "$id": "260", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "261", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "262", - "type": { - "$id": "263", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed" - }, - { - "$id": "264", - "name": "IntsOnly", - "namespace": "Type.Union", - "doc": "Describe union of integer 1 | 2 | 3", - "operations": [ - { - "$id": "265", - "name": "get", - "resourceName": "IntsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "266", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "267", - "kind": "constant", - "valueType": { - "$id": "268", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "269", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "179" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/union/ints-only", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.IntsOnly.get", - "decorators": [] - }, - { - "$id": "270", - "name": "send", - "resourceName": "IntsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "271", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "272", - "kind": "constant", - "valueType": { - "$id": "273", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "274", - "name": "sendRequest6", - "nameInRequest": "sendRequest6", - "type": { - "$ref": "183" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "275", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/union/ints-only", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.IntsOnly.send", - "decorators": [] - } - ], - "parent": "UnionClient", - "parameters": [ - { - "$id": "276", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "277", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "278", - "type": { - "$id": "279", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.IntsOnly" - }, - { - "$id": "280", - "name": "FloatsOnly", - "namespace": "Type.Union", - "doc": "Describe union of floats 1.1 | 2.2 | 3.3", - "operations": [ - { - "$id": "281", - "name": "get", - "resourceName": "FloatsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "282", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "283", - "kind": "constant", - "valueType": { - "$id": "284", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "285", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "171" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/union/floats-only", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.FloatsOnly.get", - "decorators": [] - }, - { - "$id": "286", - "name": "send", - "resourceName": "FloatsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "287", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "288", - "kind": "constant", - "valueType": { - "$id": "289", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "290", - "name": "sendRequest5", - "nameInRequest": "sendRequest5", - "type": { - "$ref": "175" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "291", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/union/floats-only", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send", - "decorators": [] - } - ], - "parent": "UnionClient", - "parameters": [ - { - "$id": "292", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "293", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "294", - "type": { - "$id": "295", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.FloatsOnly" - }, - { - "$id": "296", - "name": "ModelsOnly", - "namespace": "Type.Union", - "doc": "Describe union of models", - "operations": [ - { - "$id": "297", - "name": "get", - "resourceName": "ModelsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "298", - "name": "accept", - "nameInRequest": "Accept", - "type": { - "$id": "299", - "kind": "constant", - "valueType": { - "$id": "300", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "301", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "157" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/union/models-only", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.ModelsOnly.get", - "decorators": [] - }, - { - "$id": "302", - "name": "send", - "resourceName": "ModelsOnly", - "accessibility": "public", - "parameters": [ - { - "$id": "303", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "304", - "kind": "constant", - "valueType": { - "$id": "305", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "254", + "name": "send", + "resourceName": "StringExtensibleNamed", + "accessibility": "public", + "parameters": [ + { + "$id": "255", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "256", + "kind": "constant", + "valueType": { + "$id": "257", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "306", - "name": "sendRequest4", - "nameInRequest": "sendRequest4", - "type": { - "$ref": "167" - }, - "location": "Body", - "isApiVersion": false, - "isContentType": false, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "307", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false - } - ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/union/models-only", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send", - "decorators": [] - } - ], - "parent": "UnionClient", - "parameters": [ - { - "$id": "308", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "309", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "310", - "type": { - "$id": "311", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.ModelsOnly" - }, - { - "$id": "312", - "name": "EnumsOnly", - "namespace": "Type.Union", - "doc": "Describe union of 2 different enums", - "operations": [ - { - "$id": "313", - "name": "get", - "resourceName": "EnumsOnly", - "accessibility": "public", + { + "$id": "258", + "name": "sendRequest7", + "nameInRequest": "sendRequest7", + "type": { + "$ref": "191" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "259", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/union/string-extensible-named", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send", + "decorators": [] + } + ], "parameters": [ { - "$id": "314", - "name": "accept", - "nameInRequest": "Accept", + "$id": "260", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "315", - "kind": "constant", - "valueType": { - "$id": "316", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "261", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "262", + "type": { + "$id": "263", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "264", + "kind": "client", + "name": "IntsOnly", + "namespace": "Type.Union", + "doc": "Describe union of integer 1 | 2 | 3", + "operations": [ { - "$id": "317", - "statusCodes": [ - 200 + "$id": "265", + "name": "get", + "resourceName": "IntsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "266", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "267", + "kind": "constant", + "valueType": { + "$id": "268", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "142" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "269", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "179" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/union/ints-only", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.IntsOnly.get", + "decorators": [] + }, + { + "$id": "270", + "name": "send", + "resourceName": "IntsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "271", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "272", + "kind": "constant", + "valueType": { + "$id": "273", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "274", + "name": "sendRequest6", + "nameInRequest": "sendRequest6", + "type": { + "$ref": "183" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "275", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/union/ints-only", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.IntsOnly.send", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/union/enums-only", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.EnumsOnly.get", - "decorators": [] - }, - { - "$id": "318", - "name": "send", - "resourceName": "EnumsOnly", - "accessibility": "public", "parameters": [ { - "$id": "319", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "320", - "kind": "constant", - "valueType": { - "$id": "321", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "322", - "name": "sendRequest3", - "nameInRequest": "sendRequest3", + "$id": "276", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "153" + "$id": "277", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "278", + "type": { + "$id": "279", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.IntsOnly", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "280", + "kind": "client", + "name": "FloatsOnly", + "namespace": "Type.Union", + "doc": "Describe union of floats 1.1 | 2.2 | 3.3", + "operations": [ + { + "$id": "281", + "name": "get", + "resourceName": "FloatsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "282", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "283", + "kind": "constant", + "valueType": { + "$id": "284", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "285", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "171" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/union/floats-only", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.FloatsOnly.get", + "decorators": [] + }, { - "$id": "323", - "statusCodes": [ - 204 + "$id": "286", + "name": "send", + "resourceName": "FloatsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "287", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "288", + "kind": "constant", + "valueType": { + "$id": "289", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "290", + "name": "sendRequest5", + "nameInRequest": "sendRequest5", + "type": { + "$ref": "175" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "291", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/union/floats-only", + "requestMediaTypes": [ + "application/json" ], - "headers": [], - "isErrorResponse": false + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/union/enums-only", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send", - "decorators": [] - } - ], - "parent": "UnionClient", - "parameters": [ - { - "$id": "324", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "325", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "326", - "type": { - "$id": "327", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.EnumsOnly" - }, - { - "$id": "328", - "name": "StringAndArray", - "namespace": "Type.Union", - "doc": "Describe union of a string and an array of strings", - "operations": [ - { - "$id": "329", - "name": "get", - "resourceName": "StringAndArray", - "accessibility": "public", "parameters": [ { - "$id": "330", - "name": "accept", - "nameInRequest": "Accept", + "$id": "292", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "331", - "kind": "constant", - "valueType": { - "$id": "332", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "293", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "294", + "type": { + "$id": "295", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.FloatsOnly", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "296", + "kind": "client", + "name": "ModelsOnly", + "namespace": "Type.Union", + "doc": "Describe union of models", + "operations": [ + { + "$id": "297", + "name": "get", + "resourceName": "ModelsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "298", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "299", + "kind": "constant", + "valueType": { + "$id": "300", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "301", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "157" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/union/models-only", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.ModelsOnly.get", + "decorators": [] + }, { - "$id": "333", - "statusCodes": [ - 200 + "$id": "302", + "name": "send", + "resourceName": "ModelsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "303", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "304", + "kind": "constant", + "valueType": { + "$id": "305", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "306", + "name": "sendRequest4", + "nameInRequest": "sendRequest4", + "type": { + "$ref": "167" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "119" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "307", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/union/models-only", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/union/string-and-array", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.StringAndArray.get", - "decorators": [] - }, - { - "$id": "334", - "name": "send", - "resourceName": "StringAndArray", - "accessibility": "public", "parameters": [ { - "$id": "335", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "336", - "kind": "constant", - "valueType": { - "$id": "337", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "338", - "name": "sendRequest2", - "nameInRequest": "sendRequest2", + "$id": "308", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "138" + "$id": "309", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "339", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "310", + "type": { + "$id": "311", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/union/string-and-array", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.StringAndArray.send", - "decorators": [] - } - ], - "parent": "UnionClient", - "parameters": [ - { - "$id": "340", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "341", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "342", - "type": { - "$id": "343", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.ModelsOnly", + "apiVersions": [], + "parent": { + "$ref": "211" } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.StringAndArray" - }, - { - "$id": "344", - "name": "MixedLiterals", - "namespace": "Type.Union", - "doc": "Describe union of floats \"a\" | 2 | 3.3", - "operations": [ + }, { - "$id": "345", - "name": "get", - "resourceName": "MixedLiterals", - "accessibility": "public", + "$id": "312", + "kind": "client", + "name": "EnumsOnly", + "namespace": "Type.Union", + "doc": "Describe union of 2 different enums", + "operations": [ + { + "$id": "313", + "name": "get", + "resourceName": "EnumsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "314", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "315", + "kind": "constant", + "valueType": { + "$id": "316", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "317", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "142" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/union/enums-only", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.EnumsOnly.get", + "decorators": [] + }, + { + "$id": "318", + "name": "send", + "resourceName": "EnumsOnly", + "accessibility": "public", + "parameters": [ + { + "$id": "319", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "320", + "kind": "constant", + "valueType": { + "$id": "321", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "322", + "name": "sendRequest3", + "nameInRequest": "sendRequest3", + "type": { + "$ref": "153" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "323", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/union/enums-only", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send", + "decorators": [] + } + ], "parameters": [ { - "$id": "346", - "name": "accept", - "nameInRequest": "Accept", + "$id": "324", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "347", - "kind": "constant", - "valueType": { - "$id": "348", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "325", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "326", + "type": { + "$id": "327", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.EnumsOnly", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "328", + "kind": "client", + "name": "StringAndArray", + "namespace": "Type.Union", + "doc": "Describe union of a string and an array of strings", + "operations": [ { - "$id": "349", - "statusCodes": [ - 200 + "$id": "329", + "name": "get", + "resourceName": "StringAndArray", + "accessibility": "public", + "parameters": [ + { + "$id": "330", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "331", + "kind": "constant", + "valueType": { + "$id": "332", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "89" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "333", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "119" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/union/string-and-array", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.StringAndArray.get", + "decorators": [] + }, + { + "$id": "334", + "name": "send", + "resourceName": "StringAndArray", + "accessibility": "public", + "parameters": [ + { + "$id": "335", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "336", + "kind": "constant", + "valueType": { + "$id": "337", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "338", + "name": "sendRequest2", + "nameInRequest": "sendRequest2", + "type": { + "$ref": "138" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "339", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/union/string-and-array", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.StringAndArray.send", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/union/mixed-literals", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.MixedLiterals.get", - "decorators": [] - }, - { - "$id": "350", - "name": "send", - "resourceName": "MixedLiterals", - "accessibility": "public", "parameters": [ { - "$id": "351", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "352", - "kind": "constant", - "valueType": { - "$id": "353", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "354", - "name": "sendRequest1", - "nameInRequest": "sendRequest1", + "$id": "340", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "115" + "$id": "341", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "342", + "type": { + "$id": "343", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.StringAndArray", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "344", + "kind": "client", + "name": "MixedLiterals", + "namespace": "Type.Union", + "doc": "Describe union of floats \"a\" | 2 | 3.3", + "operations": [ + { + "$id": "345", + "name": "get", + "resourceName": "MixedLiterals", + "accessibility": "public", + "parameters": [ + { + "$id": "346", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "347", + "kind": "constant", + "valueType": { + "$id": "348", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "349", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "89" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/union/mixed-literals", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.MixedLiterals.get", + "decorators": [] + }, { - "$id": "355", - "statusCodes": [ - 204 + "$id": "350", + "name": "send", + "resourceName": "MixedLiterals", + "accessibility": "public", + "parameters": [ + { + "$id": "351", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "352", + "kind": "constant", + "valueType": { + "$id": "353", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "354", + "name": "sendRequest1", + "nameInRequest": "sendRequest1", + "type": { + "$ref": "115" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "355", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } ], - "headers": [], - "isErrorResponse": false + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/union/mixed-literals", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send", + "decorators": [] } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/union/mixed-literals", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send", - "decorators": [] - } - ], - "parent": "UnionClient", - "parameters": [ - { - "$id": "356", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "357", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "358", - "type": { - "$id": "359", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" - } - } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedLiterals" - }, - { - "$id": "360", - "name": "MixedTypes", - "namespace": "Type.Union", - "doc": "Describe union of floats \"a\" | 2 | 3.3", - "operations": [ - { - "$id": "361", - "name": "get", - "resourceName": "MixedTypes", - "accessibility": "public", "parameters": [ { - "$id": "362", - "name": "accept", - "nameInRequest": "Accept", + "$id": "356", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$id": "363", - "kind": "constant", - "valueType": { - "$id": "364", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "357", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "358", + "type": { + "$id": "359", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "responses": [ + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedLiterals", + "apiVersions": [], + "parent": { + "$ref": "211" + } + }, + { + "$id": "360", + "kind": "client", + "name": "MixedTypes", + "namespace": "Type.Union", + "doc": "Describe union of floats \"a\" | 2 | 3.3", + "operations": [ { - "$id": "365", - "statusCodes": [ - 200 + "$id": "361", + "name": "get", + "resourceName": "MixedTypes", + "accessibility": "public", + "parameters": [ + { + "$id": "362", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "363", + "kind": "constant", + "valueType": { + "$id": "364", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + } ], - "bodyType": { - "$ref": "54" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ + "responses": [ + { + "$id": "365", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "54" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "GET", + "uri": "{endpoint}", + "path": "/type/union/mixed-types", + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.MixedTypes.get", + "decorators": [] + }, + { + "$id": "366", + "name": "send", + "resourceName": "MixedTypes", + "accessibility": "public", + "parameters": [ + { + "$id": "367", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "368", + "kind": "constant", + "valueType": { + "$id": "369", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "370", + "name": "sendRequest", + "nameInRequest": "sendRequest", + "type": { + "$ref": "85" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Spread", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "371", + "statusCodes": [ + 204 + ], + "headers": [], + "isErrorResponse": false + } + ], + "httpMethod": "POST", + "uri": "{endpoint}", + "path": "/type/union/mixed-types", + "requestMediaTypes": [ "application/json" - ] + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Type.Union.MixedTypes.send", + "decorators": [] } ], - "httpMethod": "GET", - "uri": "{endpoint}", - "path": "/type/union/mixed-types", - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.MixedTypes.get", - "decorators": [] - }, - { - "$id": "366", - "name": "send", - "resourceName": "MixedTypes", - "accessibility": "public", "parameters": [ { - "$id": "367", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "368", - "kind": "constant", - "valueType": { - "$id": "369", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, - { - "$id": "370", - "name": "sendRequest", - "nameInRequest": "sendRequest", + "$id": "372", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Service host", "type": { - "$ref": "85" + "$id": "373", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Spread", - "decorators": [], - "skipUrlEncoding": false - } - ], - "responses": [ - { - "$id": "371", - "statusCodes": [ - 204 - ], - "headers": [], - "isErrorResponse": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client", + "defaultValue": { + "$id": "374", + "type": { + "$id": "375", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "value": "http://localhost:3000" + } } ], - "httpMethod": "POST", - "uri": "{endpoint}", - "path": "/type/union/mixed-types", - "requestMediaTypes": [ - "application/json" - ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Type.Union.MixedTypes.send", - "decorators": [] - } - ], - "parent": "UnionClient", - "parameters": [ - { - "$id": "372", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Service host", - "type": { - "$id": "373", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client", - "defaultValue": { - "$id": "374", - "type": { - "$id": "375", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "value": "http://localhost:3000" + "decorators": [], + "crossLanguageDefinitionId": "Type.Union.MixedTypes", + "apiVersions": [], + "parent": { + "$ref": "211" } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Type.Union.MixedTypes" + ] } ] } 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 9008c933762..6ff43dee2dd 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 @@ -146,6 +146,7 @@ "clients": [ { "$id": "18", + "kind": "client", "name": "AddedClient", "namespace": "Versioning.Added", "doc": "Test for the `@added` decorator.", @@ -298,7 +299,10 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added" + "crossLanguageDefinitionId": "Versioning.Added", + "apiVersions": [ + "v1" + ] } ] } 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 ec280654a59..310555ec2ab 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 @@ -369,6 +369,7 @@ "clients": [ { "$id": "47", + "kind": "client", "name": "AddedClient", "namespace": "Versioning.Added", "doc": "Test for the `@added` decorator.", @@ -649,163 +650,175 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added" - }, - { - "$id": "71", - "name": "InterfaceV2", - "namespace": "Versioning.Added", - "operations": [ + "crossLanguageDefinitionId": "Versioning.Added", + "apiVersions": [ + "v1", + "v2" + ], + "children": [ { - "$id": "72", - "name": "v2InInterface", - "resourceName": "InterfaceV2", - "accessibility": "public", - "parameters": [ + "$id": "71", + "kind": "client", + "name": "InterfaceV2", + "namespace": "Versioning.Added", + "operations": [ { - "$id": "73", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "74", - "kind": "constant", - "valueType": { - "$id": "75", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "72", + "name": "v2InInterface", + "resourceName": "InterfaceV2", + "accessibility": "public", + "parameters": [ + { + "$id": "73", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "74", + "kind": "constant", + "valueType": { + "$id": "75", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, + { + "$id": "76", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "77", + "kind": "constant", + "valueType": { + "$id": "78", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "79", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "33" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "80", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "33" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/added/api-version:{version}", + "path": "/interface-v2/v2", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface", + "decorators": [] + } + ], + "parameters": [ { - "$id": "76", - "name": "accept", - "nameInRequest": "Accept", + "$id": "81", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "77", - "kind": "constant", - "valueType": { - "$id": "78", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "82", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" }, { - "$id": "79", - "name": "body", - "nameInRequest": "body", + "$id": "83", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "33" + "$ref": "12" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, + "isRequired": true, "isEndpoint": false, + "skipUrlEncoding": false, "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "kind": "Client" } ], - "responses": [ - { - "$id": "80", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "33" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/added/api-version:{version}", - "path": "/interface-v2/v2", - "requestMediaTypes": [ - "application/json" + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2", + "apiVersions": [ + "v2" ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface", - "decorators": [] - } - ], - "parent": "AddedClient", - "parameters": [ - { - "$id": "81", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "82", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "83", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "12" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" + "parent": { + "$ref": "47" + } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2" + ] } ] } 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 555cdc672d6..34e8b1afef9 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 @@ -113,6 +113,7 @@ "clients": [ { "$id": "15", + "kind": "client", "name": "MadeOptionalClient", "namespace": "Versioning.MadeOptional", "doc": "Test for the `@madeOptional` decorator.", @@ -286,7 +287,10 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Versioning.MadeOptional" + "crossLanguageDefinitionId": "Versioning.MadeOptional", + "apiVersions": [ + "v1" + ] } ] } 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 6272b53337a..657fea2fd80 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 @@ -132,6 +132,7 @@ "clients": [ { "$id": "17", + "kind": "client", "name": "MadeOptionalClient", "namespace": "Versioning.MadeOptional", "doc": "Test for the `@madeOptional` decorator.", @@ -305,7 +306,11 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Versioning.MadeOptional" + "crossLanguageDefinitionId": "Versioning.MadeOptional", + "apiVersions": [ + "v1", + "v2" + ] } ] } 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 7b7aa838665..1933d326abc 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 @@ -496,6 +496,7 @@ "clients": [ { "$id": "64", + "kind": "client", "name": "RemovedClient", "namespace": "Versioning.Removed", "doc": "Test for the `@removed` decorator.", @@ -885,164 +886,175 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed" - }, - { - "$id": "97", - "name": "InterfaceV1", - "namespace": "Versioning.Removed", - "doc": "This operation group should not be generated with latest version.", - "operations": [ + "crossLanguageDefinitionId": "Versioning.Removed", + "apiVersions": [ + "v1" + ], + "children": [ { - "$id": "98", - "name": "v1InInterface", - "resourceName": "InterfaceV1", - "accessibility": "public", - "parameters": [ + "$id": "97", + "kind": "client", + "name": "InterfaceV1", + "namespace": "Versioning.Removed", + "doc": "This operation group should not be generated with latest version.", + "operations": [ { - "$id": "99", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "100", - "kind": "constant", - "valueType": { - "$id": "101", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "98", + "name": "v1InInterface", + "resourceName": "InterfaceV1", + "accessibility": "public", + "parameters": [ + { + "$id": "99", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "100", + "kind": "constant", + "valueType": { + "$id": "101", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, + { + "$id": "102", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "103", + "kind": "constant", + "valueType": { + "$id": "104", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "105", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "22" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "106", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "22" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/removed/api-version:{version}", + "path": "/interface-v1/v1", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface", + "decorators": [] + } + ], + "parameters": [ { - "$id": "102", - "name": "accept", - "nameInRequest": "Accept", + "$id": "107", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "103", - "kind": "constant", - "valueType": { - "$id": "104", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "108", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" }, { - "$id": "105", - "name": "body", - "nameInRequest": "body", + "$id": "109", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "22" + "$ref": "18" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, + "isRequired": true, "isEndpoint": false, + "skipUrlEncoding": false, "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "kind": "Client" } ], - "responses": [ - { - "$id": "106", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "22" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/removed/api-version:{version}", - "path": "/interface-v1/v1", - "requestMediaTypes": [ - "application/json" + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1", + "apiVersions": [ + "v1" ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface", - "decorators": [] - } - ], - "parent": "RemovedClient", - "parameters": [ - { - "$id": "107", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "108", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "109", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "type": { - "$ref": "18" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" + "parent": { + "$ref": "64" + } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1" + ] } ] } 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 de1e806b46e..5ef02df65f8 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 @@ -339,6 +339,7 @@ "clients": [ { "$id": "42", + "kind": "client", "name": "RemovedClient", "namespace": "Versioning.Removed", "doc": "Test for the `@removed` decorator.", @@ -599,7 +600,12 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed" + "crossLanguageDefinitionId": "Versioning.Removed", + "apiVersions": [ + "v1", + "v2preview", + "v2" + ] } ] } 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 ca046904802..9e29a107e85 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 @@ -439,6 +439,7 @@ "clients": [ { "$id": "57", + "kind": "client", "name": "RemovedClient", "namespace": "Versioning.Removed", "doc": "Test for the `@removed` decorator.", @@ -828,164 +829,177 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed" - }, - { - "$id": "90", - "name": "InterfaceV1", - "namespace": "Versioning.Removed", - "doc": "This operation group should not be generated with latest version.", - "operations": [ + "crossLanguageDefinitionId": "Versioning.Removed", + "apiVersions": [ + "v1", + "v2preview" + ], + "children": [ { - "$id": "91", - "name": "v1InInterface", - "resourceName": "InterfaceV1", - "accessibility": "public", - "parameters": [ + "$id": "90", + "kind": "client", + "name": "InterfaceV1", + "namespace": "Versioning.Removed", + "doc": "This operation group should not be generated with latest version.", + "operations": [ { - "$id": "92", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "93", - "kind": "constant", - "valueType": { - "$id": "94", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "91", + "name": "v1InInterface", + "resourceName": "InterfaceV1", + "accessibility": "public", + "parameters": [ + { + "$id": "92", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "93", + "kind": "constant", + "valueType": { + "$id": "94", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, + { + "$id": "95", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "96", + "kind": "constant", + "valueType": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "98", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "18" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "99", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "18" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/removed/api-version:{version}", + "path": "/interface-v1/v1", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface", + "decorators": [] + } + ], + "parameters": [ { - "$id": "95", - "name": "accept", - "nameInRequest": "Accept", + "$id": "100", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "96", - "kind": "constant", - "valueType": { - "$id": "97", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "101", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" }, { - "$id": "98", - "name": "body", - "nameInRequest": "body", + "$id": "102", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "18" + "$ref": "12" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, + "isRequired": true, "isEndpoint": false, + "skipUrlEncoding": false, "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "kind": "Client" } ], - "responses": [ - { - "$id": "99", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "18" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/removed/api-version:{version}", - "path": "/interface-v1/v1", - "requestMediaTypes": [ - "application/json" + "decorators": [], + "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1", + "apiVersions": [ + "v1", + "v2preview" ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface", - "decorators": [] - } - ], - "parent": "RemovedClient", - "parameters": [ - { - "$id": "100", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "101", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "102", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", - "type": { - "$ref": "12" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" + "parent": { + "$ref": "57" + } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1" + ] } ] } 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 9b62942f6bf..8010aa01546 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 @@ -195,6 +195,7 @@ "clients": [ { "$id": "25", + "kind": "client", "name": "RenamedFromClient", "namespace": "Versioning.RenamedFrom", "doc": "Test for the `@renamedFrom` decorator.", @@ -368,163 +369,174 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom" - }, - { - "$id": "40", - "name": "OldInterface", - "namespace": "Versioning.RenamedFrom", - "operations": [ + "crossLanguageDefinitionId": "Versioning.RenamedFrom", + "apiVersions": [ + "v1" + ], + "children": [ { - "$id": "41", - "name": "newOpInNewInterface", - "resourceName": "OldInterface", - "accessibility": "public", - "parameters": [ + "$id": "40", + "kind": "client", + "name": "OldInterface", + "namespace": "Versioning.RenamedFrom", + "operations": [ { - "$id": "42", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "43", - "kind": "constant", - "valueType": { - "$id": "44", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "41", + "name": "newOpInNewInterface", + "resourceName": "OldInterface", + "accessibility": "public", + "parameters": [ + { + "$id": "42", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "43", + "kind": "constant", + "valueType": { + "$id": "44", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, + { + "$id": "45", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "46", + "kind": "constant", + "valueType": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "48", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "10" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "49", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "10" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/renamed-from/api-version:{version}", + "path": "/interface/test", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface", + "decorators": [] + } + ], + "parameters": [ { - "$id": "45", - "name": "accept", - "nameInRequest": "Accept", + "$id": "50", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "46", - "kind": "constant", - "valueType": { - "$id": "47", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "51", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" }, { - "$id": "48", - "name": "body", - "nameInRequest": "body", + "$id": "52", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "10" + "$ref": "6" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, + "isRequired": true, "isEndpoint": false, + "skipUrlEncoding": false, "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "kind": "Client" } ], - "responses": [ - { - "$id": "49", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "10" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/renamed-from/api-version:{version}", - "path": "/interface/test", - "requestMediaTypes": [ - "application/json" + "decorators": [], + "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface", + "apiVersions": [ + "v1" ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface", - "decorators": [] - } - ], - "parent": "RenamedFromClient", - "parameters": [ - { - "$id": "50", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "51", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "52", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "6" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" + "parent": { + "$ref": "25" + } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface" + ] } ] } 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 021c3a8bdb1..e5ea99c17b0 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 @@ -214,6 +214,7 @@ "clients": [ { "$id": "27", + "kind": "client", "name": "RenamedFromClient", "namespace": "Versioning.RenamedFrom", "doc": "Test for the `@renamedFrom` decorator.", @@ -387,163 +388,176 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom" - }, - { - "$id": "42", - "name": "NewInterface", - "namespace": "Versioning.RenamedFrom", - "operations": [ + "crossLanguageDefinitionId": "Versioning.RenamedFrom", + "apiVersions": [ + "v1", + "v2" + ], + "children": [ { - "$id": "43", - "name": "newOpInNewInterface", - "resourceName": "NewInterface", - "accessibility": "public", - "parameters": [ + "$id": "42", + "kind": "client", + "name": "NewInterface", + "namespace": "Versioning.RenamedFrom", + "operations": [ { - "$id": "44", - "name": "contentType", - "nameInRequest": "Content-Type", - "doc": "Body parameter's content type. Known values are application/json", - "type": { - "$id": "45", - "kind": "constant", - "valueType": { - "$id": "46", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] + "$id": "43", + "name": "newOpInNewInterface", + "resourceName": "NewInterface", + "accessibility": "public", + "parameters": [ + { + "$id": "44", + "name": "contentType", + "nameInRequest": "Content-Type", + "doc": "Body parameter's content type. Known values are application/json", + "type": { + "$id": "45", + "kind": "constant", + "valueType": { + "$id": "46", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": true, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false }, - "value": "application/json", - "decorators": [] - }, - "location": "Header", - "isApiVersion": false, - "isContentType": true, - "isEndpoint": false, - "explode": false, - "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false - }, + { + "$id": "47", + "name": "accept", + "nameInRequest": "Accept", + "type": { + "$id": "48", + "kind": "constant", + "valueType": { + "$id": "49", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "location": "Header", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Constant", + "decorators": [], + "skipUrlEncoding": false + }, + { + "$id": "50", + "name": "body", + "nameInRequest": "body", + "type": { + "$ref": "12" + }, + "location": "Body", + "isApiVersion": false, + "isContentType": false, + "isEndpoint": false, + "explode": false, + "isRequired": true, + "kind": "Method", + "decorators": [], + "skipUrlEncoding": false + } + ], + "responses": [ + { + "$id": "51", + "statusCodes": [ + 200 + ], + "bodyType": { + "$ref": "12" + }, + "headers": [], + "isErrorResponse": false, + "contentTypes": [ + "application/json" + ] + } + ], + "httpMethod": "POST", + "uri": "{endpoint}/versioning/renamed-from/api-version:{version}", + "path": "/interface/test", + "requestMediaTypes": [ + "application/json" + ], + "bufferResponse": true, + "generateProtocolMethod": true, + "generateConvenienceMethod": true, + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface", + "decorators": [] + } + ], + "parameters": [ { - "$id": "47", - "name": "accept", - "nameInRequest": "Accept", + "$id": "52", + "name": "endpoint", + "nameInRequest": "endpoint", + "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "48", - "kind": "constant", - "valueType": { - "$id": "49", - "kind": "string", - "name": "string", - "crossLanguageDefinitionId": "TypeSpec.string", - "decorators": [] - }, - "value": "application/json", - "decorators": [] + "$id": "53", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" }, - "location": "Header", + "location": "Uri", "isApiVersion": false, "isContentType": false, - "isEndpoint": false, - "explode": false, "isRequired": true, - "kind": "Constant", - "decorators": [], - "skipUrlEncoding": false + "isEndpoint": true, + "skipUrlEncoding": false, + "explode": false, + "kind": "Client" }, { - "$id": "50", - "name": "body", - "nameInRequest": "body", + "$id": "54", + "name": "version", + "nameInRequest": "version", + "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "12" + "$ref": "6" }, - "location": "Body", + "location": "Uri", "isApiVersion": false, "isContentType": false, + "isRequired": true, "isEndpoint": false, + "skipUrlEncoding": false, "explode": false, - "isRequired": true, - "kind": "Method", - "decorators": [], - "skipUrlEncoding": false + "kind": "Client" } ], - "responses": [ - { - "$id": "51", - "statusCodes": [ - 200 - ], - "bodyType": { - "$ref": "12" - }, - "headers": [], - "isErrorResponse": false, - "contentTypes": [ - "application/json" - ] - } - ], - "httpMethod": "POST", - "uri": "{endpoint}/versioning/renamed-from/api-version:{version}", - "path": "/interface/test", - "requestMediaTypes": [ - "application/json" + "decorators": [], + "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface", + "apiVersions": [ + "v1", + "v2" ], - "bufferResponse": true, - "generateProtocolMethod": true, - "generateConvenienceMethod": true, - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface", - "decorators": [] - } - ], - "parent": "RenamedFromClient", - "parameters": [ - { - "$id": "52", - "name": "endpoint", - "nameInRequest": "endpoint", - "doc": "Need to be set as 'http://localhost:3000' in client.", - "type": { - "$id": "53", - "kind": "url", - "name": "url", - "crossLanguageDefinitionId": "TypeSpec.url" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": true, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" - }, - { - "$id": "54", - "name": "version", - "nameInRequest": "version", - "doc": "Need to be set as 'v1' or 'v2' in client.", - "type": { - "$ref": "6" - }, - "location": "Uri", - "isApiVersion": false, - "isContentType": false, - "isRequired": true, - "isEndpoint": false, - "skipUrlEncoding": false, - "explode": false, - "kind": "Client" + "parent": { + "$ref": "27" + } } - ], - "decorators": [], - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface" + ] } ] } 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 245a8dbdbcf..dde92e77dda 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 @@ -49,6 +49,7 @@ "clients": [ { "$id": "6", + "kind": "client", "name": "ReturnTypeChangedFromClient", "namespace": "Versioning.ReturnTypeChangedFrom", "doc": "Test for the `@returnTypeChangedFrom` decorator.", @@ -227,7 +228,10 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom" + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom", + "apiVersions": [ + "v1" + ] } ] } 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 a471b3906d4..bea55b777f2 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 @@ -68,6 +68,7 @@ "clients": [ { "$id": "8", + "kind": "client", "name": "ReturnTypeChangedFromClient", "namespace": "Versioning.ReturnTypeChangedFrom", "doc": "Test for the `@returnTypeChangedFrom` decorator.", @@ -246,7 +247,11 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom" + "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom", + "apiVersions": [ + "v1", + "v2" + ] } ] } 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 b34a422a3b1..69fe00fafb7 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 @@ -113,6 +113,7 @@ "clients": [ { "$id": "15", + "kind": "client", "name": "TypeChangedFromClient", "namespace": "Versioning.TypeChangedFrom", "doc": "Test for the `@typeChangedFrom` decorator.", @@ -286,7 +287,10 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom" + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom", + "apiVersions": [ + "v1" + ] } ] } 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 df4e9487661..158d5de49b5 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 @@ -132,6 +132,7 @@ "clients": [ { "$id": "17", + "kind": "client", "name": "TypeChangedFromClient", "namespace": "Versioning.TypeChangedFrom", "doc": "Test for the `@typeChangedFrom` decorator.", @@ -305,7 +306,11 @@ } ], "decorators": [], - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom" + "crossLanguageDefinitionId": "Versioning.TypeChangedFrom", + "apiVersions": [ + "v1", + "v2" + ] } ] }