diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index e14429771315..ba1ec85d9ee7 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -467,7 +467,7 @@ 1.0.0-dev.20250930.1 - 1.0.0-alpha.20251009.4 + 1.0.0-alpha.20251009.7 1.0.0-alpha.20250929.3 \ No newline at end of file diff --git a/eng/http-client-csharp-emitter-package-lock.json b/eng/http-client-csharp-emitter-package-lock.json index 47b12191141a..188bf62b7f26 100644 --- a/eng/http-client-csharp-emitter-package-lock.json +++ b/eng/http-client-csharp-emitter-package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@typespec/http-client-csharp": "1.0.0-alpha.20251009.4", + "@typespec/http-client-csharp": "1.0.0-alpha.20251009.7", "client-plugin": "file:../../../../eng/packages/plugins/client" }, "devDependencies": { @@ -601,9 +601,9 @@ } }, "node_modules/@typespec/http-client-csharp": { - "version": "1.0.0-alpha.20251009.4", - "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251009.4.tgz", - "integrity": "sha512-jgNhG5iG3fzevmaekb4h8nVIWJ+3rj4CiH6554fAkjrBpamR3FPr70uohriSucz0e8sbRht+QJmBT6jjXA3hJA==", + "version": "1.0.0-alpha.20251009.7", + "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251009.7.tgz", + "integrity": "sha512-o1ZHLQLFVSRjDQVxEdwzfWelpLmzzUPcP4JJLz5MYIISDRUxw65T1ECoq1OUCPa4bCL7rBoRwcKeuCPL9yFiIw==", "license": "MIT", "peerDependencies": { "@azure-tools/typespec-client-generator-core": ">=0.60.0 < 0.61.0 || ~0.61.0-0", diff --git a/eng/http-client-csharp-emitter-package.json b/eng/http-client-csharp-emitter-package.json index aa131521cf91..012fbdff613d 100644 --- a/eng/http-client-csharp-emitter-package.json +++ b/eng/http-client-csharp-emitter-package.json @@ -2,7 +2,7 @@ "main": "dist/src/index.js", "dependencies": { "client-plugin": "file:../../../../eng/packages/plugins/client", - "@typespec/http-client-csharp": "1.0.0-alpha.20251009.4" + "@typespec/http-client-csharp": "1.0.0-alpha.20251009.7" }, "devDependencies": { "@azure-tools/typespec-client-generator-core": "0.60.3", diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/tspCodeModel.json index 412557dddf84..141634fcdf62 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/tspCodeModel.json @@ -40,6 +40,7 @@ "namespace": "BasicTypeSpec", "isFixed": false, "isFlags": false, + "usage": "Input,Output,Spread,Json", "decorators": [] }, { @@ -77,6 +78,7 @@ "namespace": "BasicTypeSpec", "isFixed": false, "isFlags": false, + "usage": "Input,Output,Spread,Json", "decorators": [] }, { @@ -114,6 +116,7 @@ "namespace": "BasicTypeSpec", "isFixed": false, "isFlags": false, + "usage": "Input,Output,Spread,Json", "decorators": [] }, { @@ -138,78 +141,12 @@ "$ref": "14" }, "enumType": { - "$id": "16", - "kind": "enum", - "decorators": [], - "name": "StringFixedEnum", - "isGeneratedName": false, - "namespace": "BasicTypeSpec", - "doc": "Simple enum", - "valueType": { - "$id": "17", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "18", - "kind": "enumvalue", - "decorators": [], - "name": "One", - "value": "1", - "enumType": { - "$ref": "16" - }, - "valueType": { - "$ref": "17" - } - }, - { - "$id": "19", - "kind": "enumvalue", - "decorators": [], - "name": "Two", - "value": "2", - "enumType": { - "$ref": "16" - }, - "valueType": { - "$ref": "17" - } - }, - { - "$id": "20", - "kind": "enumvalue", - "decorators": [], - "name": "Four", - "value": "4", - "enumType": { - "$ref": "16" - }, - "valueType": { - "$ref": "17" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "BasicTypeSpec.StringFixedEnum", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "13" }, "decorators": [] }, { - "$id": "21", + "$id": "16", "kind": "enumvalue", "name": "Two", "value": "2", @@ -217,12 +154,12 @@ "$ref": "14" }, "enumType": { - "$ref": "16" + "$ref": "13" }, "decorators": [] }, { - "$id": "22", + "$id": "17", "kind": "enumvalue", "name": "Four", "value": "4", @@ -230,7 +167,7 @@ "$ref": "14" }, "enumType": { - "$ref": "16" + "$ref": "13" }, "decorators": [] } @@ -243,12 +180,12 @@ "decorators": [] }, { - "$id": "23", + "$id": "18", "kind": "enum", "name": "StringExtensibleEnum", "crossLanguageDefinitionId": "BasicTypeSpec.StringExtensibleEnum", "valueType": { - "$id": "24", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -256,107 +193,41 @@ }, "values": [ { - "$id": "25", + "$id": "20", "kind": "enumvalue", "name": "One", "value": "1", "valueType": { - "$ref": "24" + "$ref": "19" }, "enumType": { - "$id": "26", - "kind": "enum", - "decorators": [], - "name": "StringExtensibleEnum", - "isGeneratedName": false, - "namespace": "BasicTypeSpec", - "doc": "Extensible enum", - "valueType": { - "$id": "27", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "28", - "kind": "enumvalue", - "decorators": [], - "name": "One", - "value": "1", - "valueType": { - "$ref": "27" - }, - "enumType": { - "$ref": "26" - } - }, - { - "$id": "29", - "kind": "enumvalue", - "decorators": [], - "name": "Two", - "value": "2", - "valueType": { - "$ref": "27" - }, - "enumType": { - "$ref": "26" - } - }, - { - "$id": "30", - "kind": "enumvalue", - "decorators": [], - "name": "Four", - "value": "4", - "valueType": { - "$ref": "27" - }, - "enumType": { - "$ref": "26" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "BasicTypeSpec.StringExtensibleEnum", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "18" }, "decorators": [] }, { - "$id": "31", + "$id": "21", "kind": "enumvalue", "name": "Two", "value": "2", "valueType": { - "$ref": "24" + "$ref": "19" }, "enumType": { - "$ref": "26" + "$ref": "18" }, "decorators": [] }, { - "$id": "32", + "$id": "22", "kind": "enumvalue", "name": "Four", "value": "4", "valueType": { - "$ref": "24" + "$ref": "19" }, "enumType": { - "$ref": "26" + "$ref": "18" }, "decorators": [] } @@ -369,12 +240,12 @@ "decorators": [] }, { - "$id": "33", + "$id": "23", "kind": "enum", "name": "IntExtensibleEnum", "crossLanguageDefinitionId": "BasicTypeSpec.IntExtensibleEnum", "valueType": { - "$id": "34", + "$id": "24", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -382,107 +253,41 @@ }, "values": [ { - "$id": "35", + "$id": "25", "kind": "enumvalue", "name": "One", "value": 1, "valueType": { - "$ref": "34" + "$ref": "24" }, "enumType": { - "$id": "36", - "kind": "enum", - "decorators": [], - "name": "IntExtensibleEnum", - "isGeneratedName": false, - "namespace": "BasicTypeSpec", - "doc": "Int based extensible enum", - "valueType": { - "$id": "37", - "kind": "int32", - "decorators": [], - "name": "int32", - "doc": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", - "crossLanguageDefinitionId": "TypeSpec.int32" - }, - "values": [ - { - "$id": "38", - "kind": "enumvalue", - "decorators": [], - "name": "One", - "value": 1, - "valueType": { - "$ref": "37" - }, - "enumType": { - "$ref": "36" - } - }, - { - "$id": "39", - "kind": "enumvalue", - "decorators": [], - "name": "Two", - "value": 2, - "valueType": { - "$ref": "37" - }, - "enumType": { - "$ref": "36" - } - }, - { - "$id": "40", - "kind": "enumvalue", - "decorators": [], - "name": "Four", - "value": 4, - "valueType": { - "$ref": "37" - }, - "enumType": { - "$ref": "36" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "BasicTypeSpec.IntExtensibleEnum", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "23" }, "decorators": [] }, { - "$id": "41", + "$id": "26", "kind": "enumvalue", "name": "Two", "value": 2, "valueType": { - "$ref": "34" + "$ref": "24" }, "enumType": { - "$ref": "36" + "$ref": "23" }, "decorators": [] }, { - "$id": "42", + "$id": "27", "kind": "enumvalue", "name": "Four", "value": 4, "valueType": { - "$ref": "34" + "$ref": "24" }, "enumType": { - "$ref": "36" + "$ref": "23" }, "decorators": [] } @@ -495,12 +300,12 @@ "decorators": [] }, { - "$id": "43", + "$id": "28", "kind": "enum", "name": "FloatExtensibleEnum", "crossLanguageDefinitionId": "BasicTypeSpec.FloatExtensibleEnum", "valueType": { - "$id": "44", + "$id": "29", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -508,107 +313,41 @@ }, "values": [ { - "$id": "45", + "$id": "30", "kind": "enumvalue", "name": "OneDotOne", "value": 1.1, "valueType": { - "$ref": "44" + "$ref": "29" }, "enumType": { - "$id": "46", - "kind": "enum", - "decorators": [], - "name": "FloatExtensibleEnum", - "isGeneratedName": false, - "namespace": "BasicTypeSpec", - "doc": "Float based extensible enum", - "valueType": { - "$id": "47", - "kind": "float32", - "decorators": [], - "name": "float32", - "doc": "A 32 bit floating point number. (`±1.5 x 10^−45` to `±3.4 x 10^38`)", - "crossLanguageDefinitionId": "TypeSpec.float32" - }, - "values": [ - { - "$id": "48", - "kind": "enumvalue", - "decorators": [], - "name": "OneDotOne", - "value": 1.1, - "valueType": { - "$ref": "47" - }, - "enumType": { - "$ref": "46" - } - }, - { - "$id": "49", - "kind": "enumvalue", - "decorators": [], - "name": "TwoDotTwo", - "value": 2.2, - "valueType": { - "$ref": "47" - }, - "enumType": { - "$ref": "46" - } - }, - { - "$id": "50", - "kind": "enumvalue", - "decorators": [], - "name": "FourDotFour", - "value": 4.4, - "valueType": { - "$ref": "47" - }, - "enumType": { - "$ref": "46" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "BasicTypeSpec.FloatExtensibleEnum", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "28" }, "decorators": [] }, { - "$id": "51", + "$id": "31", "kind": "enumvalue", "name": "TwoDotTwo", "value": 2.2, "valueType": { - "$ref": "44" + "$ref": "29" }, "enumType": { - "$ref": "46" + "$ref": "28" }, "decorators": [] }, { - "$id": "52", + "$id": "32", "kind": "enumvalue", "name": "FourDotFour", "value": 4.4, "valueType": { - "$ref": "44" + "$ref": "29" }, "enumType": { - "$ref": "46" + "$ref": "28" }, "decorators": [] } @@ -621,12 +360,12 @@ "decorators": [] }, { - "$id": "53", + "$id": "33", "kind": "enum", "name": "FloatExtensibleEnumWithIntValue", "crossLanguageDefinitionId": "BasicTypeSpec.FloatExtensibleEnumWithIntValue", "valueType": { - "$id": "54", + "$id": "34", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -634,107 +373,41 @@ }, "values": [ { - "$id": "55", + "$id": "35", "kind": "enumvalue", "name": "One", "value": 1, "valueType": { - "$ref": "54" + "$ref": "34" }, "enumType": { - "$id": "56", - "kind": "enum", - "decorators": [], - "name": "FloatExtensibleEnumWithIntValue", - "isGeneratedName": false, - "namespace": "BasicTypeSpec", - "doc": "float fixed enum", - "valueType": { - "$id": "57", - "kind": "float32", - "decorators": [], - "name": "float32", - "doc": "A 32 bit floating point number. (`±1.5 x 10^−45` to `±3.4 x 10^38`)", - "crossLanguageDefinitionId": "TypeSpec.float32" - }, - "values": [ - { - "$id": "58", - "kind": "enumvalue", - "decorators": [], - "name": "One", - "value": 1, - "valueType": { - "$ref": "57" - }, - "enumType": { - "$ref": "56" - } - }, - { - "$id": "59", - "kind": "enumvalue", - "decorators": [], - "name": "Two", - "value": 2, - "valueType": { - "$ref": "57" - }, - "enumType": { - "$ref": "56" - } - }, - { - "$id": "60", - "kind": "enumvalue", - "decorators": [], - "name": "Four", - "value": 4, - "valueType": { - "$ref": "57" - }, - "enumType": { - "$ref": "56" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "BasicTypeSpec.FloatExtensibleEnumWithIntValue", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "33" }, "decorators": [] }, { - "$id": "61", + "$id": "36", "kind": "enumvalue", "name": "Two", "value": 2, "valueType": { - "$ref": "54" + "$ref": "34" }, "enumType": { - "$ref": "56" + "$ref": "33" }, "decorators": [] }, { - "$id": "62", + "$id": "37", "kind": "enumvalue", "name": "Four", "value": 4, "valueType": { - "$ref": "54" + "$ref": "34" }, "enumType": { - "$ref": "56" + "$ref": "33" }, "decorators": [] } @@ -747,12 +420,12 @@ "decorators": [] }, { - "$id": "63", + "$id": "38", "kind": "enum", "name": "FloatFixedEnum", "crossLanguageDefinitionId": "BasicTypeSpec.FloatFixedEnum", "valueType": { - "$id": "64", + "$id": "39", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -760,107 +433,41 @@ }, "values": [ { - "$id": "65", + "$id": "40", "kind": "enumvalue", "name": "OneDotOne", "value": 1.1, "valueType": { - "$ref": "64" + "$ref": "39" }, "enumType": { - "$id": "66", - "kind": "enum", - "decorators": [], - "name": "FloatFixedEnum", - "isGeneratedName": false, - "namespace": "BasicTypeSpec", - "doc": "float fixed enum", - "valueType": { - "$id": "67", - "kind": "float32", - "decorators": [], - "name": "float32", - "doc": "A 32 bit floating point number. (`±1.5 x 10^−45` to `±3.4 x 10^38`)", - "crossLanguageDefinitionId": "TypeSpec.float32" - }, - "values": [ - { - "$id": "68", - "kind": "enumvalue", - "decorators": [], - "name": "OneDotOne", - "value": 1.1, - "enumType": { - "$ref": "66" - }, - "valueType": { - "$ref": "67" - } - }, - { - "$id": "69", - "kind": "enumvalue", - "decorators": [], - "name": "TwoDotTwo", - "value": 2.2, - "enumType": { - "$ref": "66" - }, - "valueType": { - "$ref": "67" - } - }, - { - "$id": "70", - "kind": "enumvalue", - "decorators": [], - "name": "FourDotFour", - "value": 4.4, - "enumType": { - "$ref": "66" - }, - "valueType": { - "$ref": "67" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "BasicTypeSpec.FloatFixedEnum", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "38" }, "decorators": [] }, { - "$id": "71", + "$id": "41", "kind": "enumvalue", "name": "TwoDotTwo", "value": 2.2, "valueType": { - "$ref": "64" + "$ref": "39" }, "enumType": { - "$ref": "66" + "$ref": "38" }, "decorators": [] }, { - "$id": "72", + "$id": "42", "kind": "enumvalue", "name": "FourDotFour", "value": 4.4, "valueType": { - "$ref": "64" + "$ref": "39" }, "enumType": { - "$ref": "66" + "$ref": "38" }, "decorators": [] } @@ -873,12 +480,12 @@ "decorators": [] }, { - "$id": "73", + "$id": "43", "kind": "enum", "name": "FloatFixedEnumWithIntValue", "crossLanguageDefinitionId": "BasicTypeSpec.FloatFixedEnumWithIntValue", "valueType": { - "$id": "74", + "$id": "44", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -886,107 +493,41 @@ }, "values": [ { - "$id": "75", + "$id": "45", "kind": "enumvalue", "name": "One", "value": 1, "valueType": { - "$ref": "74" + "$ref": "44" }, "enumType": { - "$id": "76", - "kind": "enum", - "decorators": [], - "name": "FloatFixedEnumWithIntValue", - "isGeneratedName": false, - "namespace": "BasicTypeSpec", - "doc": "float fixed enum", - "valueType": { - "$id": "77", - "kind": "int32", - "decorators": [], - "name": "int32", - "doc": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", - "crossLanguageDefinitionId": "TypeSpec.int32" - }, - "values": [ - { - "$id": "78", - "kind": "enumvalue", - "decorators": [], - "name": "One", - "value": 1, - "enumType": { - "$ref": "76" - }, - "valueType": { - "$ref": "77" - } - }, - { - "$id": "79", - "kind": "enumvalue", - "decorators": [], - "name": "Two", - "value": 2, - "enumType": { - "$ref": "76" - }, - "valueType": { - "$ref": "77" - } - }, - { - "$id": "80", - "kind": "enumvalue", - "decorators": [], - "name": "Four", - "value": 4, - "enumType": { - "$ref": "76" - }, - "valueType": { - "$ref": "77" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "BasicTypeSpec.FloatFixedEnumWithIntValue", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "43" }, "decorators": [] }, { - "$id": "81", + "$id": "46", "kind": "enumvalue", "name": "Two", "value": 2, "valueType": { - "$ref": "74" + "$ref": "44" }, "enumType": { - "$ref": "76" + "$ref": "43" }, "decorators": [] }, { - "$id": "82", + "$id": "47", "kind": "enumvalue", "name": "Four", "value": 4, "valueType": { - "$ref": "74" + "$ref": "44" }, "enumType": { - "$ref": "76" + "$ref": "43" }, "decorators": [] } @@ -999,12 +540,12 @@ "decorators": [] }, { - "$id": "83", + "$id": "48", "kind": "enum", "name": "IntFixedEnum", "crossLanguageDefinitionId": "BasicTypeSpec.IntFixedEnum", "valueType": { - "$id": "84", + "$id": "49", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1012,107 +553,41 @@ }, "values": [ { - "$id": "85", + "$id": "50", "kind": "enumvalue", "name": "One", "value": 1, "valueType": { - "$ref": "84" + "$ref": "49" }, "enumType": { - "$id": "86", - "kind": "enum", - "decorators": [], - "name": "IntFixedEnum", - "isGeneratedName": false, - "namespace": "BasicTypeSpec", - "doc": "int fixed enum", - "valueType": { - "$id": "87", - "kind": "int32", - "decorators": [], - "name": "int32", - "doc": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", - "crossLanguageDefinitionId": "TypeSpec.int32" - }, - "values": [ - { - "$id": "88", - "kind": "enumvalue", - "decorators": [], - "name": "One", - "value": 1, - "enumType": { - "$ref": "86" - }, - "valueType": { - "$ref": "87" - } - }, - { - "$id": "89", - "kind": "enumvalue", - "decorators": [], - "name": "Two", - "value": 2, - "enumType": { - "$ref": "86" - }, - "valueType": { - "$ref": "87" - } - }, - { - "$id": "90", - "kind": "enumvalue", - "decorators": [], - "name": "Four", - "value": 4, - "enumType": { - "$ref": "86" - }, - "valueType": { - "$ref": "87" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "BasicTypeSpec.IntFixedEnum", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "48" }, "decorators": [] }, { - "$id": "91", + "$id": "51", "kind": "enumvalue", "name": "Two", "value": 2, "valueType": { - "$ref": "84" + "$ref": "49" }, "enumType": { - "$ref": "86" + "$ref": "48" }, "decorators": [] }, { - "$id": "92", + "$id": "52", "kind": "enumvalue", "name": "Four", "value": 4, "valueType": { - "$ref": "84" + "$ref": "49" }, "enumType": { - "$ref": "86" + "$ref": "48" }, "decorators": [] } @@ -1125,12 +600,12 @@ "decorators": [] }, { - "$id": "93", + "$id": "53", "kind": "enum", "name": "Versions", "crossLanguageDefinitionId": "BasicTypeSpec.Versions", "valueType": { - "$id": "94", + "$id": "54", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1138,80 +613,28 @@ }, "values": [ { - "$id": "95", + "$id": "55", "kind": "enumvalue", "name": "2024-07-16-preview", "value": "2024-07-16-preview", "valueType": { - "$ref": "94" + "$ref": "54" }, "enumType": { - "$id": "96", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "BasicTypeSpec", - "valueType": { - "$id": "97", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "98", - "kind": "enumvalue", - "decorators": [], - "name": "2024-07-16-preview", - "value": "2024-07-16-preview", - "enumType": { - "$ref": "96" - }, - "valueType": { - "$ref": "97" - } - }, - { - "$id": "99", - "kind": "enumvalue", - "decorators": [], - "name": "2024-08-16-preview", - "value": "2024-08-16-preview", - "enumType": { - "$ref": "96" - }, - "valueType": { - "$ref": "97" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "BasicTypeSpec.Versions", - "apiVersions": [ - "2024-07-16-preview", - "2024-08-16-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "53" }, "decorators": [] }, { - "$id": "100", + "$id": "56", "kind": "enumvalue", "name": "2024-08-16-preview", "value": "2024-08-16-preview", "valueType": { - "$ref": "94" + "$ref": "54" }, "enumType": { - "$ref": "96" + "$ref": "53" }, "decorators": [] } @@ -1225,13 +648,13 @@ ], "constants": [ { - "$id": "101", + "$id": "57", "kind": "constant", "name": "ThingModelRequiredLiteralString", "namespace": "BasicTypeSpec", "usage": "Input,Output,Spread,Json", "valueType": { - "$id": "102", + "$id": "58", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1241,13 +664,13 @@ "decorators": [] }, { - "$id": "103", + "$id": "59", "kind": "constant", "name": "ThingModelRequiredLiteralInt", "namespace": "BasicTypeSpec", "usage": "Input,Output,Spread,Json", "valueType": { - "$id": "104", + "$id": "60", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1257,13 +680,13 @@ "decorators": [] }, { - "$id": "105", + "$id": "61", "kind": "constant", "name": "ThingModelRequiredLiteralFloat", "namespace": "BasicTypeSpec", "usage": "Input,Output,Spread,Json", "valueType": { - "$id": "106", + "$id": "62", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1273,13 +696,13 @@ "decorators": [] }, { - "$id": "107", + "$id": "63", "kind": "constant", "name": "ThingModelRequiredLiteralBool", "namespace": "BasicTypeSpec", "usage": "Input,Output,Spread,Json", "valueType": { - "$id": "108", + "$id": "64", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1289,13 +712,13 @@ "decorators": [] }, { - "$id": "109", + "$id": "65", "kind": "constant", "name": "ThingModelOptionalLiteralBool", "namespace": "BasicTypeSpec", "usage": "Input,Output,Spread,Json", "valueType": { - "$id": "110", + "$id": "66", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1305,13 +728,13 @@ "decorators": [] }, { - "$id": "111", + "$id": "67", "kind": "constant", "name": "sayHiContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "112", + "$id": "68", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1321,13 +744,13 @@ "decorators": [] }, { - "$id": "113", + "$id": "69", "kind": "constant", "name": "HelloAgainRequestContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "114", + "$id": "70", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1337,13 +760,13 @@ "decorators": [] }, { - "$id": "115", + "$id": "71", "kind": "constant", "name": "helloAgainContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "116", + "$id": "72", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1353,13 +776,13 @@ "decorators": [] }, { - "$id": "117", + "$id": "73", "kind": "constant", "name": "HelloAgainRequestContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "118", + "$id": "74", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1369,13 +792,13 @@ "decorators": [] }, { - "$id": "119", + "$id": "75", "kind": "constant", "name": "noContentTypeContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "120", + "$id": "76", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1385,13 +808,13 @@ "decorators": [] }, { - "$id": "121", + "$id": "77", "kind": "constant", "name": "noContentTypeContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "122", + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1401,13 +824,13 @@ "decorators": [] }, { - "$id": "123", + "$id": "79", "kind": "constant", "name": "helloDemo2ContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "124", + "$id": "80", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1417,13 +840,13 @@ "decorators": [] }, { - "$id": "125", + "$id": "81", "kind": "constant", "name": "createLiteralContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "126", + "$id": "82", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1433,13 +856,13 @@ "decorators": [] }, { - "$id": "127", + "$id": "83", "kind": "constant", "name": "createLiteralContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "128", + "$id": "84", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1449,13 +872,13 @@ "decorators": [] }, { - "$id": "129", + "$id": "85", "kind": "constant", "name": "HelloLiteralRequestP1", "namespace": "", "usage": "None", "valueType": { - "$id": "130", + "$id": "86", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1465,13 +888,13 @@ "decorators": [] }, { - "$id": "131", + "$id": "87", "kind": "constant", "name": "ThingModelRequiredLiteralInt1", "namespace": "", "usage": "None", "valueType": { - "$id": "132", + "$id": "88", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1481,13 +904,13 @@ "decorators": [] }, { - "$id": "133", + "$id": "89", "kind": "constant", "name": "ThingModelOptionalLiteralBool1", "namespace": "", "usage": "None", "valueType": { - "$id": "134", + "$id": "90", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1497,13 +920,13 @@ "decorators": [] }, { - "$id": "135", + "$id": "91", "kind": "constant", "name": "helloLiteralContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "136", + "$id": "92", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1513,13 +936,13 @@ "decorators": [] }, { - "$id": "137", + "$id": "93", "kind": "constant", "name": "HelloLiteralRequestP11", "namespace": "", "usage": "None", "valueType": { - "$id": "138", + "$id": "94", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1529,13 +952,13 @@ "decorators": [] }, { - "$id": "139", + "$id": "95", "kind": "constant", "name": "ThingModelRequiredLiteralInt2", "namespace": "", "usage": "None", "valueType": { - "$id": "140", + "$id": "96", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1545,13 +968,13 @@ "decorators": [] }, { - "$id": "141", + "$id": "97", "kind": "constant", "name": "ThingModelOptionalLiteralBool2", "namespace": "", "usage": "None", "valueType": { - "$id": "142", + "$id": "98", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1561,13 +984,13 @@ "decorators": [] }, { - "$id": "143", + "$id": "99", "kind": "constant", "name": "topActionContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "144", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1577,13 +1000,13 @@ "decorators": [] }, { - "$id": "145", + "$id": "101", "kind": "constant", "name": "topAction2ContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "146", + "$id": "102", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1593,13 +1016,13 @@ "decorators": [] }, { - "$id": "147", + "$id": "103", "kind": "constant", "name": "patchActionContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "148", + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1609,13 +1032,13 @@ "decorators": [] }, { - "$id": "149", + "$id": "105", "kind": "constant", "name": "patchActionContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "150", + "$id": "106", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1625,13 +1048,13 @@ "decorators": [] }, { - "$id": "151", + "$id": "107", "kind": "constant", "name": "anonymousBodyContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "152", + "$id": "108", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1641,13 +1064,13 @@ "decorators": [] }, { - "$id": "153", + "$id": "109", "kind": "constant", "name": "anonymousBodyContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "154", + "$id": "110", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1657,13 +1080,13 @@ "decorators": [] }, { - "$id": "155", + "$id": "111", "kind": "constant", "name": "ThingModelRequiredLiteralString1", "namespace": "", "usage": "None", "valueType": { - "$id": "156", + "$id": "112", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1673,13 +1096,13 @@ "decorators": [] }, { - "$id": "157", + "$id": "113", "kind": "constant", "name": "ThingModelRequiredLiteralInt3", "namespace": "", "usage": "None", "valueType": { - "$id": "158", + "$id": "114", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1689,13 +1112,13 @@ "decorators": [] }, { - "$id": "159", + "$id": "115", "kind": "constant", "name": "ThingModelRequiredLiteralFloat1", "namespace": "", "usage": "None", "valueType": { - "$id": "160", + "$id": "116", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1705,13 +1128,13 @@ "decorators": [] }, { - "$id": "161", + "$id": "117", "kind": "constant", "name": "ThingModelRequiredLiteralBool1", "namespace": "", "usage": "None", "valueType": { - "$id": "162", + "$id": "118", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1721,13 +1144,13 @@ "decorators": [] }, { - "$id": "163", + "$id": "119", "kind": "constant", "name": "ThingModelOptionalLiteralBool3", "namespace": "", "usage": "None", "valueType": { - "$id": "164", + "$id": "120", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1737,13 +1160,13 @@ "decorators": [] }, { - "$id": "165", + "$id": "121", "kind": "constant", "name": "friendlyModelContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "166", + "$id": "122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1753,13 +1176,13 @@ "decorators": [] }, { - "$id": "167", + "$id": "123", "kind": "constant", "name": "friendlyModelContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "168", + "$id": "124", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1769,13 +1192,13 @@ "decorators": [] }, { - "$id": "169", + "$id": "125", "kind": "constant", "name": "projectedNameModelContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "170", + "$id": "126", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1785,13 +1208,13 @@ "decorators": [] }, { - "$id": "171", + "$id": "127", "kind": "constant", "name": "projectedNameModelContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "172", + "$id": "128", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1801,13 +1224,13 @@ "decorators": [] }, { - "$id": "173", + "$id": "129", "kind": "constant", "name": "returnsAnonymousModelContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "174", + "$id": "130", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1817,13 +1240,13 @@ "decorators": [] }, { - "$id": "175", + "$id": "131", "kind": "constant", "name": "internalProtocolContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "176", + "$id": "132", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1833,13 +1256,13 @@ "decorators": [] }, { - "$id": "177", + "$id": "133", "kind": "constant", "name": "internalProtocolContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "178", + "$id": "134", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1849,13 +1272,13 @@ "decorators": [] }, { - "$id": "179", + "$id": "135", "kind": "constant", "name": "ListWithNextLinkContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "180", + "$id": "136", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1865,13 +1288,13 @@ "decorators": [] }, { - "$id": "181", + "$id": "137", "kind": "constant", "name": "ListWithStringNextLinkContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "182", + "$id": "138", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1881,13 +1304,13 @@ "decorators": [] }, { - "$id": "183", + "$id": "139", "kind": "constant", "name": "ListWithHeaderNextLinkContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "184", + "$id": "140", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1897,13 +1320,13 @@ "decorators": [] }, { - "$id": "185", + "$id": "141", "kind": "constant", "name": "ListWithContinuationTokenContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "186", + "$id": "142", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1913,13 +1336,13 @@ "decorators": [] }, { - "$id": "187", + "$id": "143", "kind": "constant", "name": "ListWithContinuationTokenHeaderResponseContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "188", + "$id": "144", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1929,13 +1352,13 @@ "decorators": [] }, { - "$id": "189", + "$id": "145", "kind": "constant", "name": "ListWithPagingContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "190", + "$id": "146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1945,13 +1368,13 @@ "decorators": [] }, { - "$id": "191", + "$id": "147", "kind": "constant", "name": "MultipartRequestRequestContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "192", + "$id": "148", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1961,13 +1384,13 @@ "decorators": [] }, { - "$id": "193", + "$id": "149", "kind": "constant", "name": "MultipartRequestRequestContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "194", + "$id": "150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1979,7 +1402,7 @@ ], "models": [ { - "$id": "195", + "$id": "151", "kind": "model", "name": "ThingModel", "namespace": "BasicTypeSpec", @@ -1989,13 +1412,13 @@ "decorators": [], "properties": [ { - "$id": "196", + "$id": "152", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the ThingModel", "type": { - "$id": "197", + "$id": "153", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2015,29 +1438,29 @@ "isHttpMetadata": false }, { - "$id": "198", + "$id": "154", "kind": "property", "name": "requiredUnion", "serializedName": "requiredUnion", "doc": "required Union", "type": { - "$id": "199", + "$id": "155", "kind": "union", "name": "ThingModelRequiredUnion", "variantTypes": [ { - "$id": "200", + "$id": "156", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "201", + "$id": "157", "kind": "array", "name": "Array", "valueType": { - "$id": "202", + "$id": "158", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2047,7 +1470,7 @@ "decorators": [] }, { - "$id": "203", + "$id": "159", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2071,13 +1494,13 @@ "isHttpMetadata": false }, { - "$id": "204", + "$id": "160", "kind": "property", "name": "requiredLiteralString", "serializedName": "requiredLiteralString", "doc": "required literal string", "type": { - "$ref": "101" + "$ref": "57" }, "optional": false, "readOnly": false, @@ -2093,13 +1516,13 @@ "isHttpMetadata": false }, { - "$id": "205", + "$id": "161", "kind": "property", "name": "requiredLiteralInt", "serializedName": "requiredLiteralInt", "doc": "required literal int", "type": { - "$ref": "103" + "$ref": "59" }, "optional": false, "readOnly": false, @@ -2115,13 +1538,13 @@ "isHttpMetadata": false }, { - "$id": "206", + "$id": "162", "kind": "property", "name": "requiredLiteralFloat", "serializedName": "requiredLiteralFloat", "doc": "required literal float", "type": { - "$ref": "105" + "$ref": "61" }, "optional": false, "readOnly": false, @@ -2137,13 +1560,13 @@ "isHttpMetadata": false }, { - "$id": "207", + "$id": "163", "kind": "property", "name": "requiredLiteralBool", "serializedName": "requiredLiteralBool", "doc": "required literal bool", "type": { - "$ref": "107" + "$ref": "63" }, "optional": false, "readOnly": false, @@ -2159,7 +1582,7 @@ "isHttpMetadata": false }, { - "$id": "208", + "$id": "164", "kind": "property", "name": "optionalLiteralString", "serializedName": "optionalLiteralString", @@ -2181,7 +1604,7 @@ "isHttpMetadata": false }, { - "$id": "209", + "$id": "165", "kind": "property", "name": "optionalLiteralInt", "serializedName": "optionalLiteralInt", @@ -2203,7 +1626,7 @@ "isHttpMetadata": false }, { - "$id": "210", + "$id": "166", "kind": "property", "name": "optionalLiteralFloat", "serializedName": "optionalLiteralFloat", @@ -2225,13 +1648,13 @@ "isHttpMetadata": false }, { - "$id": "211", + "$id": "167", "kind": "property", "name": "optionalLiteralBool", "serializedName": "optionalLiteralBool", "doc": "optional literal bool", "type": { - "$ref": "109" + "$ref": "65" }, "optional": true, "readOnly": false, @@ -2247,13 +1670,13 @@ "isHttpMetadata": false }, { - "$id": "212", + "$id": "168", "kind": "property", "name": "requiredBadDescription", "serializedName": "requiredBadDescription", "doc": "description with xml <|endoftext|>", "type": { - "$id": "213", + "$id": "169", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2273,20 +1696,20 @@ "isHttpMetadata": false }, { - "$id": "214", + "$id": "170", "kind": "property", "name": "optionalNullableList", "serializedName": "optionalNullableList", "doc": "optional nullable collection", "type": { - "$id": "215", + "$id": "171", "kind": "nullable", "type": { - "$id": "216", + "$id": "172", "kind": "array", "name": "Array1", "valueType": { - "$id": "217", + "$id": "173", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2311,16 +1734,16 @@ "isHttpMetadata": false }, { - "$id": "218", + "$id": "174", "kind": "property", "name": "requiredNullableList", "serializedName": "requiredNullableList", "doc": "required nullable collection", "type": { - "$id": "219", + "$id": "175", "kind": "nullable", "type": { - "$ref": "216" + "$ref": "172" }, "namespace": "BasicTypeSpec" }, @@ -2340,7 +1763,7 @@ ] }, { - "$id": "220", + "$id": "176", "kind": "model", "name": "RoundTripModel", "namespace": "BasicTypeSpec", @@ -2355,13 +1778,13 @@ ], "properties": [ { - "$id": "221", + "$id": "177", "kind": "property", "name": "requiredString", "serializedName": "requiredString", "doc": "Required string, illustrating a reference type property.", "type": { - "$id": "222", + "$id": "178", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2381,13 +1804,13 @@ "isHttpMetadata": false }, { - "$id": "223", + "$id": "179", "kind": "property", "name": "requiredInt", "serializedName": "requiredInt", "doc": "Required int, illustrating a value type property.", "type": { - "$id": "224", + "$id": "180", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2407,13 +1830,13 @@ "isHttpMetadata": false }, { - "$id": "225", + "$id": "181", "kind": "property", "name": "requiredCollection", "serializedName": "requiredCollection", "doc": "Required collection of enums", "type": { - "$id": "226", + "$id": "182", "kind": "array", "name": "ArrayStringFixedEnum", "valueType": { @@ -2436,23 +1859,23 @@ "isHttpMetadata": false }, { - "$id": "227", + "$id": "183", "kind": "property", "name": "requiredDictionary", "serializedName": "requiredDictionary", "doc": "Required dictionary of enums", "type": { - "$id": "228", + "$id": "184", "kind": "dict", "keyType": { - "$id": "229", + "$id": "185", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$ref": "23" + "$ref": "18" }, "decorators": [] }, @@ -2470,13 +1893,13 @@ "isHttpMetadata": false }, { - "$id": "230", + "$id": "186", "kind": "property", "name": "requiredModel", "serializedName": "requiredModel", "doc": "Required model", "type": { - "$ref": "195" + "$ref": "151" }, "optional": false, "readOnly": false, @@ -2492,13 +1915,13 @@ "isHttpMetadata": false }, { - "$id": "231", + "$id": "187", "kind": "property", "name": "intExtensibleEnum", "serializedName": "intExtensibleEnum", "doc": "this is an int based extensible enum", "type": { - "$ref": "33" + "$ref": "23" }, "optional": true, "readOnly": false, @@ -2514,17 +1937,17 @@ "isHttpMetadata": false }, { - "$id": "232", + "$id": "188", "kind": "property", "name": "intExtensibleEnumCollection", "serializedName": "intExtensibleEnumCollection", "doc": "this is a collection of int based extensible enum", "type": { - "$id": "233", + "$id": "189", "kind": "array", "name": "ArrayIntExtensibleEnum", "valueType": { - "$ref": "33" + "$ref": "23" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2543,13 +1966,13 @@ "isHttpMetadata": false }, { - "$id": "234", + "$id": "190", "kind": "property", "name": "floatExtensibleEnum", "serializedName": "floatExtensibleEnum", "doc": "this is a float based extensible enum", "type": { - "$ref": "43" + "$ref": "28" }, "optional": true, "readOnly": false, @@ -2565,13 +1988,13 @@ "isHttpMetadata": false }, { - "$id": "235", + "$id": "191", "kind": "property", "name": "floatExtensibleEnumWithIntValue", "serializedName": "floatExtensibleEnumWithIntValue", "doc": "this is a float based extensible enum", "type": { - "$ref": "53" + "$ref": "33" }, "optional": true, "readOnly": false, @@ -2587,17 +2010,17 @@ "isHttpMetadata": false }, { - "$id": "236", + "$id": "192", "kind": "property", "name": "floatExtensibleEnumCollection", "serializedName": "floatExtensibleEnumCollection", "doc": "this is a collection of float based extensible enum", "type": { - "$id": "237", + "$id": "193", "kind": "array", "name": "ArrayFloatExtensibleEnum", "valueType": { - "$ref": "43" + "$ref": "28" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2616,13 +2039,13 @@ "isHttpMetadata": false }, { - "$id": "238", + "$id": "194", "kind": "property", "name": "floatFixedEnum", "serializedName": "floatFixedEnum", "doc": "this is a float based fixed enum", "type": { - "$ref": "63" + "$ref": "38" }, "optional": true, "readOnly": false, @@ -2638,13 +2061,13 @@ "isHttpMetadata": false }, { - "$id": "239", + "$id": "195", "kind": "property", "name": "floatFixedEnumWithIntValue", "serializedName": "floatFixedEnumWithIntValue", "doc": "this is a float based fixed enum", "type": { - "$ref": "73" + "$ref": "43" }, "optional": true, "readOnly": false, @@ -2660,17 +2083,17 @@ "isHttpMetadata": false }, { - "$id": "240", + "$id": "196", "kind": "property", "name": "floatFixedEnumCollection", "serializedName": "floatFixedEnumCollection", "doc": "this is a collection of float based fixed enum", "type": { - "$id": "241", + "$id": "197", "kind": "array", "name": "ArrayFloatFixedEnum", "valueType": { - "$ref": "63" + "$ref": "38" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2689,13 +2112,13 @@ "isHttpMetadata": false }, { - "$id": "242", + "$id": "198", "kind": "property", "name": "intFixedEnum", "serializedName": "intFixedEnum", "doc": "this is a int based fixed enum", "type": { - "$ref": "83" + "$ref": "48" }, "optional": true, "readOnly": false, @@ -2711,17 +2134,17 @@ "isHttpMetadata": false }, { - "$id": "243", + "$id": "199", "kind": "property", "name": "intFixedEnumCollection", "serializedName": "intFixedEnumCollection", "doc": "this is a collection of int based fixed enum", "type": { - "$id": "244", + "$id": "200", "kind": "array", "name": "ArrayIntFixedEnum", "valueType": { - "$ref": "83" + "$ref": "48" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2740,7 +2163,7 @@ "isHttpMetadata": false }, { - "$id": "245", + "$id": "201", "kind": "property", "name": "stringFixedEnum", "serializedName": "stringFixedEnum", @@ -2762,13 +2185,13 @@ "isHttpMetadata": false }, { - "$id": "246", + "$id": "202", "kind": "property", "name": "requiredUnknown", "serializedName": "requiredUnknown", "doc": "required unknown", "type": { - "$id": "247", + "$id": "203", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2788,13 +2211,13 @@ "isHttpMetadata": false }, { - "$id": "248", + "$id": "204", "kind": "property", "name": "optionalUnknown", "serializedName": "optionalUnknown", "doc": "optional unknown", "type": { - "$id": "249", + "$id": "205", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2814,23 +2237,23 @@ "isHttpMetadata": false }, { - "$id": "250", + "$id": "206", "kind": "property", "name": "requiredRecordUnknown", "serializedName": "requiredRecordUnknown", "doc": "required record of unknown", "type": { - "$id": "251", + "$id": "207", "kind": "dict", "keyType": { - "$id": "252", + "$id": "208", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "253", + "$id": "209", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2852,13 +2275,13 @@ "isHttpMetadata": false }, { - "$id": "254", + "$id": "210", "kind": "property", "name": "optionalRecordUnknown", "serializedName": "optionalRecordUnknown", "doc": "optional record of unknown", "type": { - "$ref": "251" + "$ref": "207" }, "optional": true, "readOnly": false, @@ -2874,13 +2297,13 @@ "isHttpMetadata": false }, { - "$id": "255", + "$id": "211", "kind": "property", "name": "readOnlyRequiredRecordUnknown", "serializedName": "readOnlyRequiredRecordUnknown", "doc": "required readonly record of unknown", "type": { - "$ref": "251" + "$ref": "207" }, "optional": false, "readOnly": true, @@ -2896,13 +2319,13 @@ "isHttpMetadata": false }, { - "$id": "256", + "$id": "212", "kind": "property", "name": "readOnlyOptionalRecordUnknown", "serializedName": "readOnlyOptionalRecordUnknown", "doc": "optional readonly record of unknown", "type": { - "$ref": "251" + "$ref": "207" }, "optional": true, "readOnly": true, @@ -2918,13 +2341,13 @@ "isHttpMetadata": false }, { - "$id": "257", + "$id": "213", "kind": "property", "name": "modelWithRequiredNullable", "serializedName": "modelWithRequiredNullable", "doc": "this is a model with required nullable properties", "type": { - "$id": "258", + "$id": "214", "kind": "model", "name": "ModelWithRequiredNullableProperties", "namespace": "BasicTypeSpec", @@ -2934,16 +2357,16 @@ "decorators": [], "properties": [ { - "$id": "259", + "$id": "215", "kind": "property", "name": "requiredNullablePrimitive", "serializedName": "requiredNullablePrimitive", "doc": "required nullable primitive type", "type": { - "$id": "260", + "$id": "216", "kind": "nullable", "type": { - "$id": "261", + "$id": "217", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2965,16 +2388,16 @@ "isHttpMetadata": false }, { - "$id": "262", + "$id": "218", "kind": "property", "name": "requiredExtensibleEnum", "serializedName": "requiredExtensibleEnum", "doc": "required nullable extensible enum type", "type": { - "$id": "263", + "$id": "219", "kind": "nullable", "type": { - "$ref": "23" + "$ref": "18" }, "namespace": "BasicTypeSpec" }, @@ -2992,13 +2415,13 @@ "isHttpMetadata": false }, { - "$id": "264", + "$id": "220", "kind": "property", "name": "requiredFixedEnum", "serializedName": "requiredFixedEnum", "doc": "required nullable fixed enum type", "type": { - "$id": "265", + "$id": "221", "kind": "nullable", "type": { "$ref": "13" @@ -3034,13 +2457,13 @@ "isHttpMetadata": false }, { - "$id": "266", + "$id": "222", "kind": "property", "name": "requiredBytes", "serializedName": "requiredBytes", "doc": "Required bytes", "type": { - "$id": "267", + "$id": "223", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -3063,10 +2486,10 @@ ] }, { - "$ref": "258" + "$ref": "214" }, { - "$id": "268", + "$id": "224", "kind": "model", "name": "FriendModel", "namespace": "BasicTypeSpec", @@ -3076,13 +2499,13 @@ "decorators": [], "properties": [ { - "$id": "269", + "$id": "225", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the NotFriend", "type": { - "$id": "270", + "$id": "226", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3104,7 +2527,7 @@ ] }, { - "$id": "271", + "$id": "227", "kind": "model", "name": "RenamedModel", "namespace": "BasicTypeSpec", @@ -3114,13 +2537,13 @@ "decorators": [], "properties": [ { - "$id": "272", + "$id": "228", "kind": "property", "name": "name", "serializedName": "name", "doc": "name of the ModelWithClientName", "type": { - "$id": "273", + "$id": "229", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3142,7 +2565,7 @@ ] }, { - "$id": "274", + "$id": "230", "kind": "model", "name": "ReturnsAnonymousModelResponse", "namespace": "BasicTypeSpec", @@ -3152,7 +2575,7 @@ "properties": [] }, { - "$id": "275", + "$id": "231", "kind": "model", "name": "ListWithNextLinkResponse", "namespace": "BasicTypeSpec", @@ -3161,16 +2584,16 @@ "decorators": [], "properties": [ { - "$id": "276", + "$id": "232", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$id": "277", + "$id": "233", "kind": "array", "name": "ArrayThingModel", "valueType": { - "$ref": "195" + "$ref": "151" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -3189,12 +2612,12 @@ "isHttpMetadata": false }, { - "$id": "278", + "$id": "234", "kind": "property", "name": "next", "serializedName": "next", "type": { - "$id": "279", + "$id": "235", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -3216,7 +2639,7 @@ ] }, { - "$id": "280", + "$id": "236", "kind": "model", "name": "ListWithStringNextLinkResponse", "namespace": "BasicTypeSpec", @@ -3225,12 +2648,12 @@ "decorators": [], "properties": [ { - "$id": "281", + "$id": "237", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$ref": "277" + "$ref": "233" }, "optional": false, "readOnly": false, @@ -3246,12 +2669,12 @@ "isHttpMetadata": false }, { - "$id": "282", + "$id": "238", "kind": "property", "name": "next", "serializedName": "next", "type": { - "$id": "283", + "$id": "239", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3273,7 +2696,7 @@ ] }, { - "$id": "284", + "$id": "240", "kind": "model", "name": "ListWithHeaderNextLinkResponse", "namespace": "", @@ -3282,12 +2705,12 @@ "decorators": [], "properties": [ { - "$id": "285", + "$id": "241", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$ref": "277" + "$ref": "233" }, "optional": false, "readOnly": false, @@ -3305,7 +2728,7 @@ ] }, { - "$id": "286", + "$id": "242", "kind": "model", "name": "ListWithContinuationTokenResponse", "namespace": "BasicTypeSpec", @@ -3314,12 +2737,12 @@ "decorators": [], "properties": [ { - "$id": "287", + "$id": "243", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$ref": "277" + "$ref": "233" }, "optional": false, "readOnly": false, @@ -3335,12 +2758,12 @@ "isHttpMetadata": false }, { - "$id": "288", + "$id": "244", "kind": "property", "name": "nextToken", "serializedName": "nextToken", "type": { - "$id": "289", + "$id": "245", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3362,7 +2785,7 @@ ] }, { - "$id": "290", + "$id": "246", "kind": "model", "name": "ListWithContinuationTokenHeaderResponseResponse", "namespace": "", @@ -3371,12 +2794,12 @@ "decorators": [], "properties": [ { - "$id": "291", + "$id": "247", "kind": "property", "name": "things", "serializedName": "things", "type": { - "$ref": "277" + "$ref": "233" }, "optional": false, "readOnly": false, @@ -3394,7 +2817,7 @@ ] }, { - "$id": "292", + "$id": "248", "kind": "model", "name": "PageThingModel", "namespace": "BasicTypeSpec", @@ -3403,12 +2826,12 @@ "decorators": [], "properties": [ { - "$id": "293", + "$id": "249", "kind": "property", "name": "items", "serializedName": "items", "type": { - "$ref": "277" + "$ref": "233" }, "optional": false, "readOnly": false, @@ -3426,7 +2849,7 @@ ] }, { - "$id": "294", + "$id": "250", "kind": "model", "name": "MultipartRequestRequest", "namespace": "BasicTypeSpec", @@ -3435,12 +2858,12 @@ "decorators": [], "properties": [ { - "$id": "295", + "$id": "251", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "296", + "$id": "252", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3470,14 +2893,14 @@ ], "clients": [ { - "$id": "297", + "$id": "253", "kind": "client", "name": "BasicTypeSpecClient", "namespace": "BasicTypeSpec", "doc": "This is a sample typespec project.", "methods": [ { - "$id": "298", + "$id": "254", "kind": "basic", "name": "sayHi", "accessibility": "public", @@ -3487,19 +2910,19 @@ ], "doc": "Return hi", "operation": { - "$id": "299", + "$id": "255", "name": "sayHi", "resourceName": "BasicTypeSpec", "doc": "Return hi", "accessibility": "public", "parameters": [ { - "$id": "300", + "$id": "256", "kind": "header", "name": "headParameter", "serializedName": "head-parameter", "type": { - "$id": "301", + "$id": "257", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3514,12 +2937,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.sayHi.headParameter" }, { - "$id": "302", + "$id": "258", "kind": "query", "name": "queryParameter", "serializedName": "queryParameter", "type": { - "$id": "303", + "$id": "259", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3534,12 +2957,12 @@ "readOnly": false }, { - "$id": "304", + "$id": "260", "kind": "query", "name": "optionalQuery", "serializedName": "optionalQuery", "type": { - "$id": "305", + "$id": "261", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3554,12 +2977,12 @@ "readOnly": false }, { - "$id": "306", + "$id": "262", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "111" + "$ref": "67" }, "isApiVersion": false, "optional": false, @@ -3576,7 +2999,7 @@ 200 ], "bodyType": { - "$ref": "195" + "$ref": "151" }, "headers": [], "isErrorResponse": false, @@ -3596,12 +3019,12 @@ }, "parameters": [ { - "$id": "307", + "$id": "263", "kind": "method", "name": "headParameter", "serializedName": "head-parameter", "type": { - "$id": "308", + "$id": "264", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3617,12 +3040,12 @@ "decorators": [] }, { - "$id": "309", + "$id": "265", "kind": "method", "name": "queryParameter", "serializedName": "queryParameter", "type": { - "$id": "310", + "$id": "266", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3638,12 +3061,12 @@ "decorators": [] }, { - "$id": "311", + "$id": "267", "kind": "method", "name": "optionalQuery", "serializedName": "optionalQuery", "type": { - "$id": "312", + "$id": "268", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3659,12 +3082,12 @@ "decorators": [] }, { - "$id": "313", + "$id": "269", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "111" + "$ref": "67" }, "location": "Header", "isApiVersion": false, @@ -3678,7 +3101,7 @@ ], "response": { "type": { - "$ref": "195" + "$ref": "151" } }, "isOverride": false, @@ -3687,7 +3110,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.sayHi" }, { - "$id": "314", + "$id": "270", "kind": "basic", "name": "helloAgain", "accessibility": "public", @@ -3697,19 +3120,19 @@ ], "doc": "Return hi again", "operation": { - "$id": "315", + "$id": "271", "name": "helloAgain", "resourceName": "BasicTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "316", + "$id": "272", "kind": "header", "name": "p1", "serializedName": "p1", "type": { - "$id": "317", + "$id": "273", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3724,12 +3147,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.helloAgain.p1" }, { - "$id": "318", + "$id": "274", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "113" + "$ref": "69" }, "isApiVersion": false, "optional": false, @@ -3740,12 +3163,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.helloAgain.contentType" }, { - "$id": "319", + "$id": "275", "kind": "path", "name": "p2", "serializedName": "p2", "type": { - "$id": "320", + "$id": "276", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3763,12 +3186,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.helloAgain.p2" }, { - "$id": "321", + "$id": "277", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "115" + "$ref": "71" }, "isApiVersion": false, "optional": false, @@ -3779,12 +3202,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.helloAgain.accept" }, { - "$id": "322", + "$id": "278", "kind": "body", "name": "action", "serializedName": "action", "type": { - "$ref": "220" + "$ref": "176" }, "isApiVersion": false, "contentTypes": [ @@ -3804,7 +3227,7 @@ 200 ], "bodyType": { - "$ref": "220" + "$ref": "176" }, "headers": [], "isErrorResponse": false, @@ -3827,12 +3250,12 @@ }, "parameters": [ { - "$id": "323", + "$id": "279", "kind": "method", "name": "p1", "serializedName": "p1", "type": { - "$id": "324", + "$id": "280", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3848,12 +3271,12 @@ "decorators": [] }, { - "$id": "325", + "$id": "281", "kind": "method", "name": "action", "serializedName": "action", "type": { - "$ref": "220" + "$ref": "176" }, "location": "Body", "isApiVersion": false, @@ -3865,12 +3288,12 @@ "decorators": [] }, { - "$id": "326", + "$id": "282", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "117" + "$ref": "73" }, "location": "Header", "isApiVersion": false, @@ -3882,12 +3305,12 @@ "decorators": [] }, { - "$id": "327", + "$id": "283", "kind": "method", "name": "p2", "serializedName": "p2", "type": { - "$id": "328", + "$id": "284", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3903,12 +3326,12 @@ "decorators": [] }, { - "$id": "329", + "$id": "285", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "115" + "$ref": "71" }, "location": "Header", "isApiVersion": false, @@ -3922,7 +3345,7 @@ ], "response": { "type": { - "$ref": "220" + "$ref": "176" } }, "isOverride": false, @@ -3931,7 +3354,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.helloAgain" }, { - "$id": "330", + "$id": "286", "kind": "basic", "name": "noContentType", "accessibility": "public", @@ -3941,19 +3364,19 @@ ], "doc": "Return hi again", "operation": { - "$id": "331", + "$id": "287", "name": "noContentType", "resourceName": "BasicTypeSpec", "doc": "Return hi again", "accessibility": "public", "parameters": [ { - "$id": "332", + "$id": "288", "kind": "header", "name": "p1", "serializedName": "p1", "type": { - "$id": "333", + "$id": "289", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3968,12 +3391,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.noContentType.p1" }, { - "$id": "334", + "$id": "290", "kind": "path", "name": "p2", "serializedName": "p2", "type": { - "$id": "335", + "$id": "291", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -3991,13 +3414,13 @@ "crossLanguageDefinitionId": "BasicTypeSpec.noContentType.p2" }, { - "$id": "336", + "$id": "292", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "119" + "$ref": "75" }, "isApiVersion": false, "optional": false, @@ -4008,12 +3431,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.noContentType.contentType" }, { - "$id": "337", + "$id": "293", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "121" + "$ref": "77" }, "isApiVersion": false, "optional": false, @@ -4024,12 +3447,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.noContentType.accept" }, { - "$id": "338", + "$id": "294", "kind": "body", "name": "action", "serializedName": "action", "type": { - "$ref": "220" + "$ref": "176" }, "isApiVersion": false, "contentTypes": [ @@ -4049,7 +3472,7 @@ 200 ], "bodyType": { - "$ref": "220" + "$ref": "176" }, "headers": [], "isErrorResponse": false, @@ -4072,12 +3495,12 @@ }, "parameters": [ { - "$id": "339", + "$id": "295", "kind": "method", "name": "p1", "serializedName": "p1", "type": { - "$id": "340", + "$id": "296", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4093,12 +3516,12 @@ "decorators": [] }, { - "$id": "341", + "$id": "297", "kind": "method", "name": "action", "serializedName": "action", "type": { - "$ref": "220" + "$ref": "176" }, "location": "Body", "isApiVersion": false, @@ -4110,12 +3533,12 @@ "decorators": [] }, { - "$id": "342", + "$id": "298", "kind": "method", "name": "p2", "serializedName": "p2", "type": { - "$id": "343", + "$id": "299", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4131,13 +3554,13 @@ "decorators": [] }, { - "$id": "344", + "$id": "300", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "119" + "$ref": "75" }, "location": "Header", "isApiVersion": false, @@ -4149,12 +3572,12 @@ "decorators": [] }, { - "$id": "345", + "$id": "301", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "121" + "$ref": "77" }, "location": "Header", "isApiVersion": false, @@ -4168,7 +3591,7 @@ ], "response": { "type": { - "$ref": "220" + "$ref": "176" } }, "isOverride": false, @@ -4177,7 +3600,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.noContentType" }, { - "$id": "346", + "$id": "302", "kind": "basic", "name": "helloDemo2", "accessibility": "public", @@ -4187,19 +3610,19 @@ ], "doc": "Return hi in demo2", "operation": { - "$id": "347", + "$id": "303", "name": "helloDemo2", "resourceName": "BasicTypeSpec", "doc": "Return hi in demo2", "accessibility": "public", "parameters": [ { - "$id": "348", + "$id": "304", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "123" + "$ref": "79" }, "isApiVersion": false, "optional": false, @@ -4216,7 +3639,7 @@ 200 ], "bodyType": { - "$ref": "195" + "$ref": "151" }, "headers": [], "isErrorResponse": false, @@ -4236,12 +3659,12 @@ }, "parameters": [ { - "$id": "349", + "$id": "305", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "123" + "$ref": "79" }, "location": "Header", "isApiVersion": false, @@ -4255,7 +3678,7 @@ ], "response": { "type": { - "$ref": "195" + "$ref": "151" } }, "isOverride": false, @@ -4264,7 +3687,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.helloDemo2" }, { - "$id": "350", + "$id": "306", "kind": "basic", "name": "createLiteral", "accessibility": "public", @@ -4274,20 +3697,20 @@ ], "doc": "Create with literal value", "operation": { - "$id": "351", + "$id": "307", "name": "createLiteral", "resourceName": "BasicTypeSpec", "doc": "Create with literal value", "accessibility": "public", "parameters": [ { - "$id": "352", + "$id": "308", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "125" + "$ref": "81" }, "isApiVersion": false, "optional": false, @@ -4298,12 +3721,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.createLiteral.contentType" }, { - "$id": "353", + "$id": "309", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "127" + "$ref": "83" }, "isApiVersion": false, "optional": false, @@ -4314,12 +3737,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.createLiteral.accept" }, { - "$id": "354", + "$id": "310", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "195" + "$ref": "151" }, "isApiVersion": false, "contentTypes": [ @@ -4339,7 +3762,7 @@ 200 ], "bodyType": { - "$ref": "195" + "$ref": "151" }, "headers": [], "isErrorResponse": false, @@ -4362,12 +3785,12 @@ }, "parameters": [ { - "$id": "355", + "$id": "311", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "195" + "$ref": "151" }, "location": "Body", "isApiVersion": false, @@ -4379,13 +3802,13 @@ "decorators": [] }, { - "$id": "356", + "$id": "312", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "125" + "$ref": "81" }, "location": "Header", "isApiVersion": false, @@ -4397,12 +3820,12 @@ "decorators": [] }, { - "$id": "357", + "$id": "313", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "127" + "$ref": "83" }, "location": "Header", "isApiVersion": false, @@ -4416,7 +3839,7 @@ ], "response": { "type": { - "$ref": "195" + "$ref": "151" } }, "isOverride": false, @@ -4425,7 +3848,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.createLiteral" }, { - "$id": "358", + "$id": "314", "kind": "basic", "name": "helloLiteral", "accessibility": "public", @@ -4435,19 +3858,19 @@ ], "doc": "Send literal parameters", "operation": { - "$id": "359", + "$id": "315", "name": "helloLiteral", "resourceName": "BasicTypeSpec", "doc": "Send literal parameters", "accessibility": "public", "parameters": [ { - "$id": "360", + "$id": "316", "kind": "header", "name": "p1", "serializedName": "p1", "type": { - "$ref": "129" + "$ref": "85" }, "isApiVersion": false, "optional": false, @@ -4458,12 +3881,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.helloLiteral.p1" }, { - "$id": "361", + "$id": "317", "kind": "path", "name": "p2", "serializedName": "p2", "type": { - "$ref": "131" + "$ref": "87" }, "isApiVersion": false, "explode": false, @@ -4477,12 +3900,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.helloLiteral.p2" }, { - "$id": "362", + "$id": "318", "kind": "query", "name": "p3", "serializedName": "p3", "type": { - "$ref": "133" + "$ref": "89" }, "isApiVersion": false, "explode": false, @@ -4493,12 +3916,12 @@ "readOnly": false }, { - "$id": "363", + "$id": "319", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "135" + "$ref": "91" }, "isApiVersion": false, "optional": false, @@ -4515,7 +3938,7 @@ 200 ], "bodyType": { - "$ref": "195" + "$ref": "151" }, "headers": [], "isErrorResponse": false, @@ -4535,12 +3958,12 @@ }, "parameters": [ { - "$id": "364", + "$id": "320", "kind": "method", "name": "p1", "serializedName": "p1", "type": { - "$ref": "137" + "$ref": "93" }, "location": "Header", "isApiVersion": false, @@ -4552,12 +3975,12 @@ "decorators": [] }, { - "$id": "365", + "$id": "321", "kind": "method", "name": "p2", "serializedName": "p2", "type": { - "$ref": "139" + "$ref": "95" }, "location": "Path", "isApiVersion": false, @@ -4569,12 +3992,12 @@ "decorators": [] }, { - "$id": "366", + "$id": "322", "kind": "method", "name": "p3", "serializedName": "p3", "type": { - "$ref": "141" + "$ref": "97" }, "location": "Query", "isApiVersion": false, @@ -4586,12 +4009,12 @@ "decorators": [] }, { - "$id": "367", + "$id": "323", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "135" + "$ref": "91" }, "location": "Header", "isApiVersion": false, @@ -4605,7 +4028,7 @@ ], "response": { "type": { - "$ref": "195" + "$ref": "151" } }, "isOverride": false, @@ -4614,7 +4037,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.helloLiteral" }, { - "$id": "368", + "$id": "324", "kind": "basic", "name": "topAction", "accessibility": "public", @@ -4624,24 +4047,24 @@ ], "doc": "top level method", "operation": { - "$id": "369", + "$id": "325", "name": "topAction", "resourceName": "BasicTypeSpec", "doc": "top level method", "accessibility": "public", "parameters": [ { - "$id": "370", + "$id": "326", "kind": "path", "name": "action", "serializedName": "action", "type": { - "$id": "371", + "$id": "327", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "372", + "$id": "328", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4662,12 +4085,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.topAction.action" }, { - "$id": "373", + "$id": "329", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "143" + "$ref": "99" }, "isApiVersion": false, "optional": false, @@ -4684,7 +4107,7 @@ 200 ], "bodyType": { - "$ref": "195" + "$ref": "151" }, "headers": [], "isErrorResponse": false, @@ -4704,17 +4127,17 @@ }, "parameters": [ { - "$id": "374", + "$id": "330", "kind": "method", "name": "action", "serializedName": "action", "type": { - "$id": "375", + "$id": "331", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "376", + "$id": "332", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -4733,12 +4156,12 @@ "decorators": [] }, { - "$id": "377", + "$id": "333", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "143" + "$ref": "99" }, "location": "Header", "isApiVersion": false, @@ -4752,7 +4175,7 @@ ], "response": { "type": { - "$ref": "195" + "$ref": "151" } }, "isOverride": false, @@ -4761,7 +4184,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.topAction" }, { - "$id": "378", + "$id": "334", "kind": "basic", "name": "topAction2", "accessibility": "public", @@ -4771,19 +4194,19 @@ ], "doc": "top level method2", "operation": { - "$id": "379", + "$id": "335", "name": "topAction2", "resourceName": "BasicTypeSpec", "doc": "top level method2", "accessibility": "public", "parameters": [ { - "$id": "380", + "$id": "336", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "145" + "$ref": "101" }, "isApiVersion": false, "optional": false, @@ -4800,7 +4223,7 @@ 200 ], "bodyType": { - "$ref": "195" + "$ref": "151" }, "headers": [], "isErrorResponse": false, @@ -4820,12 +4243,12 @@ }, "parameters": [ { - "$id": "381", + "$id": "337", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "145" + "$ref": "101" }, "location": "Header", "isApiVersion": false, @@ -4839,7 +4262,7 @@ ], "response": { "type": { - "$ref": "195" + "$ref": "151" } }, "isOverride": false, @@ -4848,7 +4271,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.topAction2" }, { - "$id": "382", + "$id": "338", "kind": "basic", "name": "patchAction", "accessibility": "public", @@ -4858,20 +4281,20 @@ ], "doc": "top level patch", "operation": { - "$id": "383", + "$id": "339", "name": "patchAction", "resourceName": "BasicTypeSpec", "doc": "top level patch", "accessibility": "public", "parameters": [ { - "$id": "384", + "$id": "340", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "147" + "$ref": "103" }, "isApiVersion": false, "optional": false, @@ -4882,12 +4305,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.patchAction.contentType" }, { - "$id": "385", + "$id": "341", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "149" + "$ref": "105" }, "isApiVersion": false, "optional": false, @@ -4898,12 +4321,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.patchAction.accept" }, { - "$id": "386", + "$id": "342", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "195" + "$ref": "151" }, "isApiVersion": false, "contentTypes": [ @@ -4923,7 +4346,7 @@ 200 ], "bodyType": { - "$ref": "195" + "$ref": "151" }, "headers": [], "isErrorResponse": false, @@ -4946,12 +4369,12 @@ }, "parameters": [ { - "$id": "387", + "$id": "343", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "195" + "$ref": "151" }, "location": "Body", "isApiVersion": false, @@ -4963,13 +4386,13 @@ "decorators": [] }, { - "$id": "388", + "$id": "344", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "147" + "$ref": "103" }, "location": "Header", "isApiVersion": false, @@ -4981,12 +4404,12 @@ "decorators": [] }, { - "$id": "389", + "$id": "345", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "149" + "$ref": "105" }, "location": "Header", "isApiVersion": false, @@ -5000,7 +4423,7 @@ ], "response": { "type": { - "$ref": "195" + "$ref": "151" } }, "isOverride": false, @@ -5009,7 +4432,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.patchAction" }, { - "$id": "390", + "$id": "346", "kind": "basic", "name": "anonymousBody", "accessibility": "public", @@ -5019,20 +4442,20 @@ ], "doc": "body parameter without body decorator", "operation": { - "$id": "391", + "$id": "347", "name": "anonymousBody", "resourceName": "BasicTypeSpec", "doc": "body parameter without body decorator", "accessibility": "public", "parameters": [ { - "$id": "392", + "$id": "348", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "151" + "$ref": "107" }, "isApiVersion": false, "optional": false, @@ -5043,12 +4466,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.contentType" }, { - "$id": "393", + "$id": "349", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "153" + "$ref": "109" }, "isApiVersion": false, "optional": false, @@ -5059,12 +4482,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody.accept" }, { - "$id": "394", + "$id": "350", "kind": "body", "name": "thingModel", "serializedName": "thingModel", "type": { - "$ref": "195" + "$ref": "151" }, "isApiVersion": false, "contentTypes": [ @@ -5084,7 +4507,7 @@ 200 ], "bodyType": { - "$ref": "195" + "$ref": "151" }, "headers": [], "isErrorResponse": false, @@ -5107,13 +4530,13 @@ }, "parameters": [ { - "$id": "395", + "$id": "351", "kind": "method", "name": "name", "serializedName": "name", "doc": "name of the ThingModel", "type": { - "$id": "396", + "$id": "352", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5129,13 +4552,13 @@ "decorators": [] }, { - "$id": "397", + "$id": "353", "kind": "method", "name": "requiredUnion", "serializedName": "requiredUnion", "doc": "required Union", "type": { - "$ref": "199" + "$ref": "155" }, "location": "Body", "isApiVersion": false, @@ -5147,13 +4570,13 @@ "decorators": [] }, { - "$id": "398", + "$id": "354", "kind": "method", "name": "requiredLiteralString", "serializedName": "requiredLiteralString", "doc": "required literal string", "type": { - "$ref": "101" + "$ref": "57" }, "location": "Body", "isApiVersion": false, @@ -5165,13 +4588,13 @@ "decorators": [] }, { - "$id": "399", + "$id": "355", "kind": "method", "name": "requiredLiteralInt", "serializedName": "requiredLiteralInt", "doc": "required literal int", "type": { - "$ref": "103" + "$ref": "59" }, "location": "Body", "isApiVersion": false, @@ -5183,13 +4606,13 @@ "decorators": [] }, { - "$id": "400", + "$id": "356", "kind": "method", "name": "requiredLiteralFloat", "serializedName": "requiredLiteralFloat", "doc": "required literal float", "type": { - "$ref": "105" + "$ref": "61" }, "location": "Body", "isApiVersion": false, @@ -5201,13 +4624,13 @@ "decorators": [] }, { - "$id": "401", + "$id": "357", "kind": "method", "name": "requiredLiteralBool", "serializedName": "requiredLiteralBool", "doc": "required literal bool", "type": { - "$ref": "107" + "$ref": "63" }, "location": "Body", "isApiVersion": false, @@ -5219,18 +4642,18 @@ "decorators": [] }, { - "$id": "402", + "$id": "358", "kind": "method", "name": "optionalLiteralString", "serializedName": "optionalLiteralString", "doc": "optional literal string", "type": { - "$id": "403", + "$id": "359", "kind": "enum", "name": "ThingModelOptionalLiteralString", "crossLanguageDefinitionId": "", "valueType": { - "$id": "404", + "$id": "360", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5238,12 +4661,12 @@ }, "values": [ { - "$id": "405", + "$id": "361", "kind": "enumvalue", "name": "reject", "value": "reject", "valueType": { - "$id": "406", + "$id": "362", "kind": "string", "decorators": [], "name": "string", @@ -5251,7 +4674,7 @@ "crossLanguageDefinitionId": "TypeSpec.string" }, "enumType": { - "$ref": "403" + "$ref": "359" }, "decorators": [] } @@ -5271,18 +4694,18 @@ "decorators": [] }, { - "$id": "407", + "$id": "363", "kind": "method", "name": "optionalLiteralInt", "serializedName": "optionalLiteralInt", "doc": "optional literal int", "type": { - "$id": "408", + "$id": "364", "kind": "enum", "name": "ThingModelOptionalLiteralInt", "crossLanguageDefinitionId": "", "valueType": { - "$id": "409", + "$id": "365", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -5290,12 +4713,12 @@ }, "values": [ { - "$id": "410", + "$id": "366", "kind": "enumvalue", "name": "456", "value": 456, "valueType": { - "$id": "411", + "$id": "367", "kind": "int32", "decorators": [], "name": "int32", @@ -5303,7 +4726,7 @@ "crossLanguageDefinitionId": "TypeSpec.int32" }, "enumType": { - "$ref": "408" + "$ref": "364" }, "decorators": [] } @@ -5323,18 +4746,18 @@ "decorators": [] }, { - "$id": "412", + "$id": "368", "kind": "method", "name": "optionalLiteralFloat", "serializedName": "optionalLiteralFloat", "doc": "optional literal float", "type": { - "$id": "413", + "$id": "369", "kind": "enum", "name": "ThingModelOptionalLiteralFloat", "crossLanguageDefinitionId": "", "valueType": { - "$id": "414", + "$id": "370", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -5342,12 +4765,12 @@ }, "values": [ { - "$id": "415", + "$id": "371", "kind": "enumvalue", "name": "4.56", "value": 4.56, "valueType": { - "$id": "416", + "$id": "372", "kind": "float32", "decorators": [], "name": "float32", @@ -5355,7 +4778,7 @@ "crossLanguageDefinitionId": "TypeSpec.float32" }, "enumType": { - "$ref": "413" + "$ref": "369" }, "decorators": [] } @@ -5375,13 +4798,13 @@ "decorators": [] }, { - "$id": "417", + "$id": "373", "kind": "method", "name": "optionalLiteralBool", "serializedName": "optionalLiteralBool", "doc": "optional literal bool", "type": { - "$ref": "109" + "$ref": "65" }, "location": "Body", "isApiVersion": false, @@ -5393,13 +4816,13 @@ "decorators": [] }, { - "$id": "418", + "$id": "374", "kind": "method", "name": "requiredBadDescription", "serializedName": "requiredBadDescription", "doc": "description with xml <|endoftext|>", "type": { - "$id": "419", + "$id": "375", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5415,13 +4838,13 @@ "decorators": [] }, { - "$id": "420", + "$id": "376", "kind": "method", "name": "optionalNullableList", "serializedName": "optionalNullableList", "doc": "optional nullable collection", "type": { - "$ref": "215" + "$ref": "171" }, "location": "Body", "isApiVersion": false, @@ -5433,13 +4856,13 @@ "decorators": [] }, { - "$id": "421", + "$id": "377", "kind": "method", "name": "requiredNullableList", "serializedName": "requiredNullableList", "doc": "required nullable collection", "type": { - "$ref": "219" + "$ref": "175" }, "location": "Body", "isApiVersion": false, @@ -5451,13 +4874,13 @@ "decorators": [] }, { - "$id": "422", + "$id": "378", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "151" + "$ref": "107" }, "location": "Header", "isApiVersion": false, @@ -5469,12 +4892,12 @@ "decorators": [] }, { - "$id": "423", + "$id": "379", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "153" + "$ref": "109" }, "location": "Header", "isApiVersion": false, @@ -5488,7 +4911,7 @@ ], "response": { "type": { - "$ref": "195" + "$ref": "151" } }, "isOverride": false, @@ -5497,7 +4920,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody" }, { - "$id": "424", + "$id": "380", "kind": "basic", "name": "friendlyModel", "accessibility": "public", @@ -5507,20 +4930,20 @@ ], "doc": "Model can have its friendly name", "operation": { - "$id": "425", + "$id": "381", "name": "friendlyModel", "resourceName": "BasicTypeSpec", "doc": "Model can have its friendly name", "accessibility": "public", "parameters": [ { - "$id": "426", + "$id": "382", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "165" + "$ref": "121" }, "isApiVersion": false, "optional": false, @@ -5531,12 +4954,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.friendlyModel.contentType" }, { - "$id": "427", + "$id": "383", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "167" + "$ref": "123" }, "isApiVersion": false, "optional": false, @@ -5547,12 +4970,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.friendlyModel.accept" }, { - "$id": "428", + "$id": "384", "kind": "body", "name": "friendModel", "serializedName": "friendModel", "type": { - "$ref": "268" + "$ref": "224" }, "isApiVersion": false, "contentTypes": [ @@ -5572,7 +4995,7 @@ 200 ], "bodyType": { - "$ref": "268" + "$ref": "224" }, "headers": [], "isErrorResponse": false, @@ -5595,13 +5018,13 @@ }, "parameters": [ { - "$id": "429", + "$id": "385", "kind": "method", "name": "name", "serializedName": "name", "doc": "name of the NotFriend", "type": { - "$id": "430", + "$id": "386", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5617,13 +5040,13 @@ "decorators": [] }, { - "$id": "431", + "$id": "387", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "165" + "$ref": "121" }, "location": "Header", "isApiVersion": false, @@ -5635,12 +5058,12 @@ "decorators": [] }, { - "$id": "432", + "$id": "388", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "167" + "$ref": "123" }, "location": "Header", "isApiVersion": false, @@ -5654,7 +5077,7 @@ ], "response": { "type": { - "$ref": "268" + "$ref": "224" } }, "isOverride": false, @@ -5663,7 +5086,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.friendlyModel" }, { - "$id": "433", + "$id": "389", "kind": "basic", "name": "addTimeHeader", "accessibility": "public", @@ -5672,23 +5095,23 @@ "2024-08-16-preview" ], "operation": { - "$id": "434", + "$id": "390", "name": "addTimeHeader", "resourceName": "BasicTypeSpec", "accessibility": "public", "parameters": [ { - "$id": "435", + "$id": "391", "kind": "header", "name": "repeatabilityFirstSent", "serializedName": "Repeatability-First-Sent", "type": { - "$id": "436", + "$id": "392", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "437", + "$id": "393", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5726,17 +5149,17 @@ }, "parameters": [ { - "$id": "438", + "$id": "394", "kind": "method", "name": "repeatabilityFirstSent", "serializedName": "Repeatability-First-Sent", "type": { - "$id": "439", + "$id": "395", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "440", + "$id": "396", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5762,7 +5185,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.addTimeHeader" }, { - "$id": "441", + "$id": "397", "kind": "basic", "name": "projectedNameModel", "accessibility": "public", @@ -5772,20 +5195,20 @@ ], "doc": "Model can have its projected name", "operation": { - "$id": "442", + "$id": "398", "name": "projectedNameModel", "resourceName": "BasicTypeSpec", "doc": "Model can have its projected name", "accessibility": "public", "parameters": [ { - "$id": "443", + "$id": "399", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "169" + "$ref": "125" }, "isApiVersion": false, "optional": false, @@ -5796,12 +5219,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.projectedNameModel.contentType" }, { - "$id": "444", + "$id": "400", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "171" + "$ref": "127" }, "isApiVersion": false, "optional": false, @@ -5812,12 +5235,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.projectedNameModel.accept" }, { - "$id": "445", + "$id": "401", "kind": "body", "name": "renamedModel", "serializedName": "renamedModel", "type": { - "$ref": "271" + "$ref": "227" }, "isApiVersion": false, "contentTypes": [ @@ -5837,7 +5260,7 @@ 200 ], "bodyType": { - "$ref": "271" + "$ref": "227" }, "headers": [], "isErrorResponse": false, @@ -5860,13 +5283,13 @@ }, "parameters": [ { - "$id": "446", + "$id": "402", "kind": "method", "name": "name", "serializedName": "name", "doc": "name of the ModelWithClientName", "type": { - "$id": "447", + "$id": "403", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -5882,13 +5305,13 @@ "decorators": [] }, { - "$id": "448", + "$id": "404", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "169" + "$ref": "125" }, "location": "Header", "isApiVersion": false, @@ -5900,12 +5323,12 @@ "decorators": [] }, { - "$id": "449", + "$id": "405", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "171" + "$ref": "127" }, "location": "Header", "isApiVersion": false, @@ -5919,7 +5342,7 @@ ], "response": { "type": { - "$ref": "271" + "$ref": "227" } }, "isOverride": false, @@ -5928,7 +5351,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.projectedNameModel" }, { - "$id": "450", + "$id": "406", "kind": "basic", "name": "returnsAnonymousModel", "accessibility": "public", @@ -5938,19 +5361,19 @@ ], "doc": "return anonymous model", "operation": { - "$id": "451", + "$id": "407", "name": "returnsAnonymousModel", "resourceName": "BasicTypeSpec", "doc": "return anonymous model", "accessibility": "public", "parameters": [ { - "$id": "452", + "$id": "408", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "173" + "$ref": "129" }, "isApiVersion": false, "optional": false, @@ -5967,7 +5390,7 @@ 200 ], "bodyType": { - "$ref": "274" + "$ref": "230" }, "headers": [], "isErrorResponse": false, @@ -5987,12 +5410,12 @@ }, "parameters": [ { - "$id": "453", + "$id": "409", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "173" + "$ref": "129" }, "location": "Header", "isApiVersion": false, @@ -6006,7 +5429,7 @@ ], "response": { "type": { - "$ref": "274" + "$ref": "230" } }, "isOverride": false, @@ -6015,7 +5438,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.returnsAnonymousModel" }, { - "$id": "454", + "$id": "410", "kind": "basic", "name": "getUnknownValue", "accessibility": "public", @@ -6025,19 +5448,19 @@ ], "doc": "get extensible enum", "operation": { - "$id": "455", + "$id": "411", "name": "getUnknownValue", "resourceName": "BasicTypeSpec", "doc": "get extensible enum", "accessibility": "public", "parameters": [ { - "$id": "456", + "$id": "412", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$id": "457", + "$id": "413", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6058,7 +5481,7 @@ 200 ], "bodyType": { - "$id": "458", + "$id": "414", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6089,12 +5512,12 @@ }, "parameters": [ { - "$id": "459", + "$id": "415", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "457" + "$ref": "413" }, "location": "Header", "isApiVersion": false, @@ -6108,7 +5531,7 @@ ], "response": { "type": { - "$ref": "458" + "$ref": "414" } }, "isOverride": false, @@ -6117,7 +5540,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.getUnknownValue" }, { - "$id": "460", + "$id": "416", "kind": "basic", "name": "internalProtocol", "accessibility": "public", @@ -6127,20 +5550,20 @@ ], "doc": "When set protocol false and convenient true, then the protocol method should be internal", "operation": { - "$id": "461", + "$id": "417", "name": "internalProtocol", "resourceName": "BasicTypeSpec", "doc": "When set protocol false and convenient true, then the protocol method should be internal", "accessibility": "public", "parameters": [ { - "$id": "462", + "$id": "418", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "175" + "$ref": "131" }, "isApiVersion": false, "optional": false, @@ -6151,12 +5574,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.internalProtocol.contentType" }, { - "$id": "463", + "$id": "419", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "177" + "$ref": "133" }, "isApiVersion": false, "optional": false, @@ -6167,12 +5590,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.internalProtocol.accept" }, { - "$id": "464", + "$id": "420", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "195" + "$ref": "151" }, "isApiVersion": false, "contentTypes": [ @@ -6192,7 +5615,7 @@ 200 ], "bodyType": { - "$ref": "195" + "$ref": "151" }, "headers": [], "isErrorResponse": false, @@ -6215,12 +5638,12 @@ }, "parameters": [ { - "$id": "465", + "$id": "421", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "195" + "$ref": "151" }, "location": "Body", "isApiVersion": false, @@ -6232,13 +5655,13 @@ "decorators": [] }, { - "$id": "466", + "$id": "422", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "175" + "$ref": "131" }, "location": "Header", "isApiVersion": false, @@ -6250,12 +5673,12 @@ "decorators": [] }, { - "$id": "467", + "$id": "423", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "177" + "$ref": "133" }, "location": "Header", "isApiVersion": false, @@ -6269,7 +5692,7 @@ ], "response": { "type": { - "$ref": "195" + "$ref": "151" } }, "isOverride": false, @@ -6278,7 +5701,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.internalProtocol" }, { - "$id": "468", + "$id": "424", "kind": "basic", "name": "stillConvenient", "accessibility": "public", @@ -6288,7 +5711,7 @@ ], "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", "operation": { - "$id": "469", + "$id": "425", "name": "stillConvenient", "resourceName": "BasicTypeSpec", "doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one", @@ -6320,7 +5743,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.stillConvenient" }, { - "$id": "470", + "$id": "426", "kind": "basic", "name": "headAsBoolean", "accessibility": "public", @@ -6330,19 +5753,19 @@ ], "doc": "head as boolean.", "operation": { - "$id": "471", + "$id": "427", "name": "headAsBoolean", "resourceName": "BasicTypeSpec", "doc": "head as boolean.", "accessibility": "public", "parameters": [ { - "$id": "472", + "$id": "428", "kind": "path", "name": "id", "serializedName": "id", "type": { - "$id": "473", + "$id": "429", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6380,12 +5803,12 @@ }, "parameters": [ { - "$id": "474", + "$id": "430", "kind": "method", "name": "id", "serializedName": "id", "type": { - "$id": "475", + "$id": "431", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6408,7 +5831,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.headAsBoolean" }, { - "$id": "476", + "$id": "432", "kind": "paging", "name": "ListWithNextLink", "accessibility": "public", @@ -6418,19 +5841,19 @@ ], "doc": "List things with nextlink", "operation": { - "$id": "477", + "$id": "433", "name": "ListWithNextLink", "resourceName": "BasicTypeSpec", "doc": "List things with nextlink", "accessibility": "public", "parameters": [ { - "$id": "478", + "$id": "434", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "179" + "$ref": "135" }, "isApiVersion": false, "optional": false, @@ -6447,7 +5870,7 @@ 200 ], "bodyType": { - "$ref": "275" + "$ref": "231" }, "headers": [], "isErrorResponse": false, @@ -6467,12 +5890,12 @@ }, "parameters": [ { - "$id": "479", + "$id": "435", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "179" + "$ref": "135" }, "location": "Header", "isApiVersion": false, @@ -6486,7 +5909,7 @@ ], "response": { "type": { - "$ref": "277" + "$ref": "233" }, "resultSegments": [ "things" @@ -6509,7 +5932,7 @@ } }, { - "$id": "480", + "$id": "436", "kind": "paging", "name": "ListWithStringNextLink", "accessibility": "public", @@ -6519,19 +5942,19 @@ ], "doc": "List things with nextlink", "operation": { - "$id": "481", + "$id": "437", "name": "ListWithStringNextLink", "resourceName": "BasicTypeSpec", "doc": "List things with nextlink", "accessibility": "public", "parameters": [ { - "$id": "482", + "$id": "438", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "181" + "$ref": "137" }, "isApiVersion": false, "optional": false, @@ -6548,7 +5971,7 @@ 200 ], "bodyType": { - "$ref": "280" + "$ref": "236" }, "headers": [], "isErrorResponse": false, @@ -6568,12 +5991,12 @@ }, "parameters": [ { - "$id": "483", + "$id": "439", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "181" + "$ref": "137" }, "location": "Header", "isApiVersion": false, @@ -6587,7 +6010,7 @@ ], "response": { "type": { - "$ref": "277" + "$ref": "233" }, "resultSegments": [ "things" @@ -6610,7 +6033,7 @@ } }, { - "$id": "484", + "$id": "440", "kind": "paging", "name": "ListWithHeaderNextLink", "accessibility": "public", @@ -6620,19 +6043,19 @@ ], "doc": "List things with nextlink", "operation": { - "$id": "485", + "$id": "441", "name": "ListWithHeaderNextLink", "resourceName": "BasicTypeSpec", "doc": "List things with nextlink", "accessibility": "public", "parameters": [ { - "$id": "486", + "$id": "442", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "183" + "$ref": "139" }, "isApiVersion": false, "optional": false, @@ -6649,14 +6072,14 @@ 200 ], "bodyType": { - "$ref": "284" + "$ref": "240" }, "headers": [ { "name": "next", "nameInResponse": "next", "type": { - "$id": "487", + "$id": "443", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6681,12 +6104,12 @@ }, "parameters": [ { - "$id": "488", + "$id": "444", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "183" + "$ref": "139" }, "location": "Header", "isApiVersion": false, @@ -6700,7 +6123,7 @@ ], "response": { "type": { - "$ref": "277" + "$ref": "233" }, "resultSegments": [ "things" @@ -6723,7 +6146,7 @@ } }, { - "$id": "489", + "$id": "445", "kind": "paging", "name": "ListWithContinuationToken", "accessibility": "public", @@ -6733,19 +6156,19 @@ ], "doc": "List things with continuation token", "operation": { - "$id": "490", + "$id": "446", "name": "ListWithContinuationToken", "resourceName": "BasicTypeSpec", "doc": "List things with continuation token", "accessibility": "public", "parameters": [ { - "$id": "491", + "$id": "447", "kind": "query", "name": "token", "serializedName": "token", "type": { - "$id": "492", + "$id": "448", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6760,12 +6183,12 @@ "readOnly": false }, { - "$id": "493", + "$id": "449", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "185" + "$ref": "141" }, "isApiVersion": false, "optional": false, @@ -6782,7 +6205,7 @@ 200 ], "bodyType": { - "$ref": "286" + "$ref": "242" }, "headers": [], "isErrorResponse": false, @@ -6802,12 +6225,12 @@ }, "parameters": [ { - "$id": "494", + "$id": "450", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "495", + "$id": "451", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6823,12 +6246,12 @@ "decorators": [] }, { - "$id": "496", + "$id": "452", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "185" + "$ref": "141" }, "location": "Header", "isApiVersion": false, @@ -6842,7 +6265,7 @@ ], "response": { "type": { - "$ref": "277" + "$ref": "233" }, "resultSegments": [ "things" @@ -6858,7 +6281,7 @@ ], "continuationToken": { "parameter": { - "$ref": "491" + "$ref": "447" }, "responseSegments": [ "nextToken" @@ -6868,7 +6291,7 @@ } }, { - "$id": "497", + "$id": "453", "kind": "paging", "name": "ListWithContinuationTokenHeaderResponse", "accessibility": "public", @@ -6878,19 +6301,19 @@ ], "doc": "List things with continuation token header response", "operation": { - "$id": "498", + "$id": "454", "name": "ListWithContinuationTokenHeaderResponse", "resourceName": "BasicTypeSpec", "doc": "List things with continuation token header response", "accessibility": "public", "parameters": [ { - "$id": "499", + "$id": "455", "kind": "query", "name": "token", "serializedName": "token", "type": { - "$id": "500", + "$id": "456", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6905,12 +6328,12 @@ "readOnly": false }, { - "$id": "501", + "$id": "457", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "187" + "$ref": "143" }, "isApiVersion": false, "optional": false, @@ -6927,14 +6350,14 @@ 200 ], "bodyType": { - "$ref": "290" + "$ref": "246" }, "headers": [ { "name": "nextToken", "nameInResponse": "next-token", "type": { - "$id": "502", + "$id": "458", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6959,12 +6382,12 @@ }, "parameters": [ { - "$id": "503", + "$id": "459", "kind": "method", "name": "token", "serializedName": "token", "type": { - "$id": "504", + "$id": "460", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -6980,12 +6403,12 @@ "decorators": [] }, { - "$id": "505", + "$id": "461", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "187" + "$ref": "143" }, "location": "Header", "isApiVersion": false, @@ -6999,7 +6422,7 @@ ], "response": { "type": { - "$ref": "277" + "$ref": "233" }, "resultSegments": [ "things" @@ -7015,7 +6438,7 @@ ], "continuationToken": { "parameter": { - "$ref": "499" + "$ref": "455" }, "responseSegments": [ "next-token" @@ -7025,7 +6448,7 @@ } }, { - "$id": "506", + "$id": "462", "kind": "paging", "name": "ListWithPaging", "accessibility": "public", @@ -7035,19 +6458,19 @@ ], "doc": "List things with paging", "operation": { - "$id": "507", + "$id": "463", "name": "ListWithPaging", "resourceName": "BasicTypeSpec", "doc": "List things with paging", "accessibility": "public", "parameters": [ { - "$id": "508", + "$id": "464", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "189" + "$ref": "145" }, "isApiVersion": false, "optional": false, @@ -7064,7 +6487,7 @@ 200 ], "bodyType": { - "$ref": "292" + "$ref": "248" }, "headers": [], "isErrorResponse": false, @@ -7084,12 +6507,12 @@ }, "parameters": [ { - "$id": "509", + "$id": "465", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "189" + "$ref": "145" }, "location": "Header", "isApiVersion": false, @@ -7103,7 +6526,7 @@ ], "response": { "type": { - "$ref": "277" + "$ref": "233" }, "resultSegments": [ "items" @@ -7120,7 +6543,7 @@ } }, { - "$id": "510", + "$id": "466", "kind": "basic", "name": "ConditionalRequest", "accessibility": "public", @@ -7130,19 +6553,19 @@ ], "doc": "A sample operation with conditional requests", "operation": { - "$id": "511", + "$id": "467", "name": "ConditionalRequest", "resourceName": "BasicTypeSpec", "doc": "A sample operation with conditional requests", "accessibility": "public", "parameters": [ { - "$id": "512", + "$id": "468", "kind": "header", "name": "ifMatch", "serializedName": "If-Match", "type": { - "$id": "513", + "$id": "469", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7157,12 +6580,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.ConditionalRequest.ifMatch" }, { - "$id": "514", + "$id": "470", "kind": "header", "name": "ifNoneMatch", "serializedName": "If-None-Match", "type": { - "$id": "515", + "$id": "471", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7197,12 +6620,12 @@ }, "parameters": [ { - "$id": "516", + "$id": "472", "kind": "method", "name": "ifMatch", "serializedName": "If-Match", "type": { - "$id": "517", + "$id": "473", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7218,12 +6641,12 @@ "decorators": [] }, { - "$id": "518", + "$id": "474", "kind": "method", "name": "ifNoneMatch", "serializedName": "If-None-Match", "type": { - "$id": "519", + "$id": "475", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7246,7 +6669,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.ConditionalRequest" }, { - "$id": "520", + "$id": "476", "kind": "basic", "name": "ConditionalRequestDate", "accessibility": "public", @@ -7256,19 +6679,19 @@ ], "doc": "A sample operation with conditional requests", "operation": { - "$id": "521", + "$id": "477", "name": "ConditionalRequestDate", "resourceName": "BasicTypeSpec", "doc": "A sample operation with conditional requests", "accessibility": "public", "parameters": [ { - "$id": "522", + "$id": "478", "kind": "header", "name": "ifMatch", "serializedName": "If-Match", "type": { - "$id": "523", + "$id": "479", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7283,12 +6706,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.ConditionalRequestDate.ifMatch" }, { - "$id": "524", + "$id": "480", "kind": "header", "name": "ifNoneMatch", "serializedName": "If-None-Match", "type": { - "$id": "525", + "$id": "481", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7303,12 +6726,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.ConditionalRequestDate.ifNoneMatch" }, { - "$id": "526", + "$id": "482", "kind": "header", "name": "ifModifiedSince", "serializedName": "If-Modified-Since", "type": { - "$id": "527", + "$id": "483", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7343,12 +6766,12 @@ }, "parameters": [ { - "$id": "528", + "$id": "484", "kind": "method", "name": "ifMatch", "serializedName": "If-Match", "type": { - "$id": "529", + "$id": "485", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7364,12 +6787,12 @@ "decorators": [] }, { - "$id": "530", + "$id": "486", "kind": "method", "name": "ifNoneMatch", "serializedName": "If-None-Match", "type": { - "$id": "531", + "$id": "487", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7385,12 +6808,12 @@ "decorators": [] }, { - "$id": "532", + "$id": "488", "kind": "method", "name": "ifModifiedSince", "serializedName": "If-Modified-Since", "type": { - "$id": "533", + "$id": "489", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -7413,7 +6836,7 @@ "crossLanguageDefinitionId": "BasicTypeSpec.ConditionalRequestDate" }, { - "$id": "534", + "$id": "490", "kind": "basic", "name": "MultipartRequest", "accessibility": "public", @@ -7423,19 +6846,19 @@ ], "doc": "A sample operation with multipart request", "operation": { - "$id": "535", + "$id": "491", "name": "MultipartRequest", "resourceName": "BasicTypeSpec", "doc": "A sample operation with multipart request", "accessibility": "public", "parameters": [ { - "$id": "536", + "$id": "492", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "191" + "$ref": "147" }, "isApiVersion": false, "optional": false, @@ -7446,12 +6869,12 @@ "crossLanguageDefinitionId": "BasicTypeSpec.MultipartRequest.contentType" }, { - "$id": "537", + "$id": "493", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "294" + "$ref": "250" }, "isApiVersion": false, "contentTypes": [ @@ -7488,12 +6911,12 @@ }, "parameters": [ { - "$id": "538", + "$id": "494", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "193" + "$ref": "149" }, "location": "Header", "isApiVersion": false, @@ -7505,12 +6928,12 @@ "decorators": [] }, { - "$id": "539", + "$id": "495", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "294" + "$ref": "250" }, "location": "Body", "isApiVersion": false, @@ -7531,12 +6954,12 @@ ], "parameters": [ { - "$id": "540", + "$id": "496", "kind": "endpoint", "name": "basicTypeSpecUrl", "serializedName": "basicTypeSpecUrl", "type": { - "$id": "541", + "$id": "497", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/tspCodeModel.json index 41485dcc3ed8..e5848c6620ac 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/tspCodeModel.json @@ -26,47 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "ApiVersions", - "isGeneratedName": false, - "namespace": "Client.AlternateApiVersion.Service.Header", - "doc": "Supported api versions.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v2025_01_01", - "value": "2025-01-01", - "doc": "Api version 2025-01-01.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Client.AlternateApiVersion.Service.Header.ApiVersions", - "apiVersions": [ - "2025-01-01" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "Api version 2025-01-01.", "decorators": [] @@ -84,13 +44,13 @@ "models": [], "clients": [ { - "$id": "7", + "$id": "4", "kind": "client", "name": "HeaderClient", "namespace": "Client.AlternateApiVersion.Service.Header", "methods": [ { - "$id": "8", + "$id": "5", "kind": "basic", "name": "headerApiVersion", "accessibility": "public", @@ -99,19 +59,19 @@ ], "doc": "Header api version parameter.", "operation": { - "$id": "9", + "$id": "6", "name": "headerApiVersion", "resourceName": "Header", "doc": "Header api version parameter.", "accessibility": "public", "parameters": [ { - "$id": "10", + "$id": "7", "kind": "header", "name": "version", "serializedName": "x-ms-version", "type": { - "$id": "11", + "$id": "8", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -120,7 +80,7 @@ "isApiVersion": true, "defaultValue": { "type": { - "$id": "12", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -163,13 +123,13 @@ ], "parameters": [ { - "$id": "13", + "$id": "10", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "14", + "$id": "11", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -180,7 +140,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "15", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/tspCodeModel.json index 82fead11b7ce..a34fc1f01076 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/tspCodeModel.json @@ -26,47 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "ApiVersions", - "isGeneratedName": false, - "namespace": "Client.AlternateApiVersion.Service.Path", - "doc": "Supported api versions.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v2025_01_01", - "value": "2025-01-01", - "doc": "Api version 2025-01-01.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Client.AlternateApiVersion.Service.Path.ApiVersions", - "apiVersions": [ - "2025-01-01" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "Api version 2025-01-01.", "decorators": [] @@ -84,13 +44,13 @@ "models": [], "clients": [ { - "$id": "7", + "$id": "4", "kind": "client", "name": "PathClient", "namespace": "Client.AlternateApiVersion.Service.Path", "methods": [ { - "$id": "8", + "$id": "5", "kind": "basic", "name": "pathApiVersion", "accessibility": "public", @@ -99,19 +59,19 @@ ], "doc": "Path api version parameter.", "operation": { - "$id": "9", + "$id": "6", "name": "pathApiVersion", "resourceName": "Path", "doc": "Path api version parameter.", "accessibility": "public", "parameters": [ { - "$id": "10", + "$id": "7", "kind": "path", "name": "version", "serializedName": "version", "type": { - "$id": "11", + "$id": "8", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -124,7 +84,7 @@ "skipUrlEncoding": false, "defaultValue": { "type": { - "$id": "12", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -166,13 +126,13 @@ ], "parameters": [ { - "$id": "13", + "$id": "10", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "14", + "$id": "11", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -183,7 +143,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "15", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/tspCodeModel.json index 733a5c8f878a..62ba7720f453 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/tspCodeModel.json @@ -26,47 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "ApiVersions", - "isGeneratedName": false, - "namespace": "Client.AlternateApiVersion.Service.Query", - "doc": "Supported api versions.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v2025_01_01", - "value": "2025-01-01", - "doc": "Api version 2025-01-01.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Client.AlternateApiVersion.Service.Query.ApiVersions", - "apiVersions": [ - "2025-01-01" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "Api version 2025-01-01.", "decorators": [] @@ -84,13 +44,13 @@ "models": [], "clients": [ { - "$id": "7", + "$id": "4", "kind": "client", "name": "QueryClient", "namespace": "Client.AlternateApiVersion.Service.Query", "methods": [ { - "$id": "8", + "$id": "5", "kind": "basic", "name": "queryApiVersion", "accessibility": "public", @@ -99,19 +59,19 @@ ], "doc": "Query api version parameter.", "operation": { - "$id": "9", + "$id": "6", "name": "queryApiVersion", "resourceName": "Query", "doc": "Query api version parameter.", "accessibility": "public", "parameters": [ { - "$id": "10", + "$id": "7", "kind": "query", "name": "version", "serializedName": "version", "type": { - "$id": "11", + "$id": "8", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -121,7 +81,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "12", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -163,13 +123,13 @@ ], "parameters": [ { - "$id": "13", + "$id": "10", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "14", + "$id": "11", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -180,7 +140,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "15", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/tspCodeModel.json index 526a84bdfce2..33817da088c6 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/tspCodeModel.json @@ -26,47 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "_Specs_.Azure.Core.Basic", - "doc": "The version of the API.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v2022_12_01_preview", - "value": "2022-12-01-preview", - "doc": "The version 2022-12-01-preview.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.Versions", - "apiVersions": [ - "2022-12-01-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "The version 2022-12-01-preview.", "decorators": [] @@ -82,13 +42,13 @@ ], "constants": [ { - "$id": "7", + "$id": "4", "kind": "constant", "name": "CreateOrUpdateRequestContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -98,13 +58,13 @@ "decorators": [] }, { - "$id": "9", + "$id": "6", "kind": "constant", "name": "createOrUpdateContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "10", + "$id": "7", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -114,13 +74,13 @@ "decorators": [] }, { - "$id": "11", + "$id": "8", "kind": "constant", "name": "CreateOrUpdateRequestContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "12", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -130,13 +90,13 @@ "decorators": [] }, { - "$id": "13", + "$id": "10", "kind": "constant", "name": "createOrReplaceContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "14", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -146,13 +106,13 @@ "decorators": [] }, { - "$id": "15", + "$id": "12", "kind": "constant", "name": "createOrReplaceContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "16", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -162,13 +122,13 @@ "decorators": [] }, { - "$id": "17", + "$id": "14", "kind": "constant", "name": "getContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "18", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -178,13 +138,13 @@ "decorators": [] }, { - "$id": "19", + "$id": "16", "kind": "constant", "name": "listContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "20", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -194,13 +154,13 @@ "decorators": [] }, { - "$id": "21", + "$id": "18", "kind": "constant", "name": "exportContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "22", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -210,13 +170,13 @@ "decorators": [] }, { - "$id": "23", + "$id": "20", "kind": "constant", "name": "exportAllUsersContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "24", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -228,7 +188,7 @@ ], "models": [ { - "$id": "25", + "$id": "22", "kind": "model", "name": "User", "namespace": "_Specs_.Azure.Core.Basic", @@ -238,13 +198,13 @@ "decorators": [], "properties": [ { - "$id": "26", + "$id": "23", "kind": "property", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "27", + "$id": "24", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -264,13 +224,13 @@ "isHttpMetadata": false }, { - "$id": "28", + "$id": "25", "kind": "property", "name": "name", "serializedName": "name", "doc": "The user's name.", "type": { - "$id": "29", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -290,17 +250,17 @@ "isHttpMetadata": false }, { - "$id": "30", + "$id": "27", "kind": "property", "name": "orders", "serializedName": "orders", "doc": "The user's order list", "type": { - "$id": "31", + "$id": "28", "kind": "array", "name": "ArrayUserOrder", "valueType": { - "$id": "32", + "$id": "29", "kind": "model", "name": "UserOrder", "namespace": "_Specs_.Azure.Core.Basic", @@ -310,13 +270,13 @@ "decorators": [], "properties": [ { - "$id": "33", + "$id": "30", "kind": "property", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "34", + "$id": "31", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -336,13 +296,13 @@ "isHttpMetadata": false }, { - "$id": "35", + "$id": "32", "kind": "property", "name": "userId", "serializedName": "userId", "doc": "The user's id.", "type": { - "$id": "36", + "$id": "33", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -362,13 +322,13 @@ "isHttpMetadata": false }, { - "$id": "37", + "$id": "34", "kind": "property", "name": "detail", "serializedName": "detail", "doc": "The user's order detail", "type": { - "$id": "38", + "$id": "35", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -406,18 +366,18 @@ "isHttpMetadata": false }, { - "$id": "39", + "$id": "36", "kind": "property", "name": "etag", "serializedName": "etag", "doc": "The entity tag for this resource.", "type": { - "$id": "40", + "$id": "37", "kind": "string", "name": "eTag", "crossLanguageDefinitionId": "Azure.Core.eTag", "baseType": { - "$id": "41", + "$id": "38", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -441,10 +401,10 @@ ] }, { - "$ref": "32" + "$ref": "29" }, { - "$id": "42", + "$id": "39", "kind": "model", "name": "ErrorResponse", "namespace": "Azure.Core.Foundations", @@ -454,13 +414,13 @@ "decorators": [], "properties": [ { - "$id": "43", + "$id": "40", "kind": "property", "name": "error", "serializedName": "error", "doc": "The error object.", "type": { - "$id": "44", + "$id": "41", "kind": "model", "name": "Error", "namespace": "Azure.Core.Foundations", @@ -470,13 +430,13 @@ "decorators": [], "properties": [ { - "$id": "45", + "$id": "42", "kind": "property", "name": "code", "serializedName": "code", "doc": "One of a server-defined set of error codes.", "type": { - "$id": "46", + "$id": "43", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -496,13 +456,13 @@ "isHttpMetadata": false }, { - "$id": "47", + "$id": "44", "kind": "property", "name": "message", "serializedName": "message", "doc": "A human-readable representation of the error.", "type": { - "$id": "48", + "$id": "45", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -522,13 +482,13 @@ "isHttpMetadata": false }, { - "$id": "49", + "$id": "46", "kind": "property", "name": "target", "serializedName": "target", "doc": "The target of the error.", "type": { - "$id": "50", + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -548,17 +508,17 @@ "isHttpMetadata": false }, { - "$id": "51", + "$id": "48", "kind": "property", "name": "details", "serializedName": "details", "doc": "An array of details about specific errors that led to this reported error.", "type": { - "$id": "52", + "$id": "49", "kind": "array", "name": "ArrayError", "valueType": { - "$ref": "44" + "$ref": "41" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -577,13 +537,13 @@ "isHttpMetadata": false }, { - "$id": "53", + "$id": "50", "kind": "property", "name": "innererror", "serializedName": "innererror", "doc": "An object containing more specific information than the current object about the error.", "type": { - "$id": "54", + "$id": "51", "kind": "model", "name": "InnerError", "namespace": "Azure.Core.Foundations", @@ -593,13 +553,13 @@ "decorators": [], "properties": [ { - "$id": "55", + "$id": "52", "kind": "property", "name": "code", "serializedName": "code", "doc": "One of a server-defined set of error codes.", "type": { - "$id": "56", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -619,13 +579,13 @@ "isHttpMetadata": false }, { - "$id": "57", + "$id": "54", "kind": "property", "name": "innererror", "serializedName": "innererror", "doc": "Inner error.", "type": { - "$ref": "54" + "$ref": "51" }, "optional": true, "readOnly": false, @@ -671,13 +631,13 @@ "isHttpMetadata": false }, { - "$id": "58", + "$id": "55", "kind": "property", "name": "errorCode", "serializedName": "errorCode", "doc": "String error code indicating what went wrong.", "type": { - "$id": "59", + "$id": "56", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -699,13 +659,13 @@ ] }, { - "$ref": "44" + "$ref": "41" }, { - "$ref": "54" + "$ref": "51" }, { - "$id": "60", + "$id": "57", "kind": "model", "name": "PagedUser", "namespace": "Azure.Core.Foundations", @@ -715,17 +675,17 @@ "decorators": [], "properties": [ { - "$id": "61", + "$id": "58", "kind": "property", "name": "value", "serializedName": "value", "doc": "The User items on this page", "type": { - "$id": "62", + "$id": "59", "kind": "array", "name": "ArrayUser", "valueType": { - "$ref": "25" + "$ref": "22" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -744,18 +704,18 @@ "isHttpMetadata": false }, { - "$id": "63", + "$id": "60", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "64", + "$id": "61", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "65", + "$id": "62", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -779,7 +739,7 @@ ] }, { - "$id": "66", + "$id": "63", "kind": "model", "name": "UserList", "namespace": "_Specs_.Azure.Core.Basic", @@ -788,12 +748,12 @@ "decorators": [], "properties": [ { - "$id": "67", + "$id": "64", "kind": "property", "name": "users", "serializedName": "users", "type": { - "$ref": "62" + "$ref": "59" }, "optional": false, "readOnly": false, @@ -813,14 +773,14 @@ ], "clients": [ { - "$id": "68", + "$id": "65", "kind": "client", "name": "BasicClient", "namespace": "_Specs_.Azure.Core.Basic", "doc": "Illustrates bodies templated with Azure Core", "methods": [ { - "$id": "69", + "$id": "66", "kind": "basic", "name": "createOrUpdate", "accessibility": "public", @@ -830,7 +790,7 @@ "doc": "Creates or updates a User", "summary": "Adds a user or updates a user's fields.", "operation": { - "$id": "70", + "$id": "67", "name": "createOrUpdate", "resourceName": "User", "summary": "Adds a user or updates a user's fields.", @@ -838,13 +798,13 @@ "accessibility": "public", "parameters": [ { - "$id": "71", + "$id": "68", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "72", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -854,7 +814,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "73", + "$id": "70", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -868,13 +828,13 @@ "readOnly": false }, { - "$id": "74", + "$id": "71", "kind": "path", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "75", + "$id": "72", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -892,13 +852,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.createOrUpdate.id" }, { - "$id": "76", + "$id": "73", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "This request has a JSON Merge Patch body.", "type": { - "$ref": "7" + "$ref": "4" }, "isApiVersion": false, "optional": false, @@ -909,12 +869,12 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.createOrUpdate.contentType" }, { - "$id": "77", + "$id": "74", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "9" + "$ref": "6" }, "isApiVersion": false, "optional": false, @@ -925,13 +885,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.createOrUpdate.accept" }, { - "$id": "78", + "$id": "75", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "The resource instance.", "type": { - "$ref": "25" + "$ref": "22" }, "isApiVersion": false, "contentTypes": [ @@ -951,7 +911,7 @@ 201 ], "bodyType": { - "$ref": "25" + "$ref": "22" }, "headers": [], "isErrorResponse": false, @@ -964,7 +924,7 @@ 200 ], "bodyType": { - "$ref": "25" + "$ref": "22" }, "headers": [], "isErrorResponse": false, @@ -987,13 +947,13 @@ }, "parameters": [ { - "$id": "79", + "$id": "76", "kind": "method", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "80", + "$id": "77", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1009,13 +969,13 @@ "decorators": [] }, { - "$id": "81", + "$id": "78", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "This request has a JSON Merge Patch body.", "type": { - "$ref": "11" + "$ref": "8" }, "location": "Header", "isApiVersion": false, @@ -1027,13 +987,13 @@ "decorators": [] }, { - "$id": "82", + "$id": "79", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "The resource instance.", "type": { - "$ref": "25" + "$ref": "22" }, "location": "Body", "isApiVersion": false, @@ -1045,12 +1005,12 @@ "decorators": [] }, { - "$id": "83", + "$id": "80", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "9" + "$ref": "6" }, "location": "Header", "isApiVersion": false, @@ -1064,7 +1024,7 @@ ], "response": { "type": { - "$ref": "25" + "$ref": "22" } }, "isOverride": false, @@ -1073,7 +1033,7 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.createOrUpdate" }, { - "$id": "84", + "$id": "81", "kind": "basic", "name": "createOrReplace", "accessibility": "public", @@ -1083,7 +1043,7 @@ "doc": "Creates or replaces a User", "summary": "Adds a user or replaces a user's fields.", "operation": { - "$id": "85", + "$id": "82", "name": "createOrReplace", "resourceName": "User", "summary": "Adds a user or replaces a user's fields.", @@ -1091,13 +1051,13 @@ "accessibility": "public", "parameters": [ { - "$id": "86", + "$id": "83", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "87", + "$id": "84", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1107,7 +1067,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "88", + "$id": "85", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1121,13 +1081,13 @@ "readOnly": false }, { - "$id": "89", + "$id": "86", "kind": "path", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "90", + "$id": "87", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1145,13 +1105,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.createOrReplace.id" }, { - "$id": "91", + "$id": "88", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "13" + "$ref": "10" }, "isApiVersion": false, "optional": false, @@ -1162,12 +1122,12 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.createOrReplace.contentType" }, { - "$id": "92", + "$id": "89", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "12" }, "isApiVersion": false, "optional": false, @@ -1178,13 +1138,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.createOrReplace.accept" }, { - "$id": "93", + "$id": "90", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "The resource instance.", "type": { - "$ref": "25" + "$ref": "22" }, "isApiVersion": false, "contentTypes": [ @@ -1204,7 +1164,7 @@ 201 ], "bodyType": { - "$ref": "25" + "$ref": "22" }, "headers": [], "isErrorResponse": false, @@ -1217,7 +1177,7 @@ 200 ], "bodyType": { - "$ref": "25" + "$ref": "22" }, "headers": [], "isErrorResponse": false, @@ -1240,13 +1200,13 @@ }, "parameters": [ { - "$id": "94", + "$id": "91", "kind": "method", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "95", + "$id": "92", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1262,13 +1222,13 @@ "decorators": [] }, { - "$id": "96", + "$id": "93", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "The resource instance.", "type": { - "$ref": "25" + "$ref": "22" }, "location": "Body", "isApiVersion": false, @@ -1280,13 +1240,13 @@ "decorators": [] }, { - "$id": "97", + "$id": "94", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "13" + "$ref": "10" }, "location": "Header", "isApiVersion": false, @@ -1298,12 +1258,12 @@ "decorators": [] }, { - "$id": "98", + "$id": "95", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "12" }, "location": "Header", "isApiVersion": false, @@ -1317,7 +1277,7 @@ ], "response": { "type": { - "$ref": "25" + "$ref": "22" } }, "isOverride": false, @@ -1326,7 +1286,7 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.createOrReplace" }, { - "$id": "99", + "$id": "96", "kind": "basic", "name": "get", "accessibility": "public", @@ -1336,7 +1296,7 @@ "doc": "Gets a User", "summary": "Gets a user.", "operation": { - "$id": "100", + "$id": "97", "name": "get", "resourceName": "User", "summary": "Gets a user.", @@ -1344,13 +1304,13 @@ "accessibility": "public", "parameters": [ { - "$id": "101", + "$id": "98", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "102", + "$id": "99", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1360,7 +1320,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "103", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1374,13 +1334,13 @@ "readOnly": false }, { - "$id": "104", + "$id": "101", "kind": "path", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "105", + "$id": "102", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1398,12 +1358,12 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.get.id" }, { - "$id": "106", + "$id": "103", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "17" + "$ref": "14" }, "isApiVersion": false, "optional": false, @@ -1420,7 +1380,7 @@ 200 ], "bodyType": { - "$ref": "25" + "$ref": "22" }, "headers": [], "isErrorResponse": false, @@ -1440,13 +1400,13 @@ }, "parameters": [ { - "$id": "107", + "$id": "104", "kind": "method", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "108", + "$id": "105", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1462,12 +1422,12 @@ "decorators": [] }, { - "$id": "109", + "$id": "106", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "17" + "$ref": "14" }, "location": "Header", "isApiVersion": false, @@ -1481,7 +1441,7 @@ ], "response": { "type": { - "$ref": "25" + "$ref": "22" } }, "isOverride": false, @@ -1490,7 +1450,7 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.get" }, { - "$id": "110", + "$id": "107", "kind": "paging", "name": "list", "accessibility": "public", @@ -1500,7 +1460,7 @@ "doc": "Lists all Users", "summary": "Lists all users.", "operation": { - "$id": "111", + "$id": "108", "name": "list", "resourceName": "User", "summary": "Lists all users.", @@ -1508,13 +1468,13 @@ "accessibility": "public", "parameters": [ { - "$id": "112", + "$id": "109", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "113", + "$id": "110", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1524,7 +1484,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "114", + "$id": "111", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1538,13 +1498,13 @@ "readOnly": false }, { - "$id": "115", + "$id": "112", "kind": "query", "name": "top", "serializedName": "top", "doc": "The number of result items to return.", "type": { - "$id": "116", + "$id": "113", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1559,13 +1519,13 @@ "readOnly": false }, { - "$id": "117", + "$id": "114", "kind": "query", "name": "skip", "serializedName": "skip", "doc": "The number of result items to skip.", "type": { - "$id": "118", + "$id": "115", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1580,13 +1540,13 @@ "readOnly": false }, { - "$id": "119", + "$id": "116", "kind": "query", "name": "maxpagesize", "serializedName": "maxpagesize", "doc": "The maximum number of result items per page.", "type": { - "$id": "120", + "$id": "117", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1601,17 +1561,17 @@ "readOnly": false }, { - "$id": "121", + "$id": "118", "kind": "query", "name": "orderby", "serializedName": "orderby", "doc": "Expressions that specify the order of returned results.", "type": { - "$id": "122", + "$id": "119", "kind": "array", "name": "Array", "valueType": { - "$id": "123", + "$id": "120", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1629,13 +1589,13 @@ "readOnly": false }, { - "$id": "124", + "$id": "121", "kind": "query", "name": "filter", "serializedName": "filter", "doc": "Filter the result list using the given expression.", "type": { - "$id": "125", + "$id": "122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1650,13 +1610,13 @@ "readOnly": false }, { - "$id": "126", + "$id": "123", "kind": "query", "name": "select", "serializedName": "select", "doc": "Select the specified fields to be included in the response.", "type": { - "$ref": "122" + "$ref": "119" }, "isApiVersion": false, "explode": true, @@ -1667,13 +1627,13 @@ "readOnly": false }, { - "$id": "127", + "$id": "124", "kind": "query", "name": "expand", "serializedName": "expand", "doc": "Expand the indicated resources into the response.", "type": { - "$ref": "122" + "$ref": "119" }, "isApiVersion": false, "explode": true, @@ -1684,12 +1644,12 @@ "readOnly": false }, { - "$id": "128", + "$id": "125", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "16" }, "isApiVersion": false, "optional": false, @@ -1706,7 +1666,7 @@ 200 ], "bodyType": { - "$ref": "60" + "$ref": "57" }, "headers": [], "isErrorResponse": false, @@ -1726,13 +1686,13 @@ }, "parameters": [ { - "$id": "129", + "$id": "126", "kind": "method", "name": "top", "serializedName": "top", "doc": "The number of result items to return.", "type": { - "$id": "130", + "$id": "127", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1748,13 +1708,13 @@ "decorators": [] }, { - "$id": "131", + "$id": "128", "kind": "method", "name": "skip", "serializedName": "skip", "doc": "The number of result items to skip.", "type": { - "$id": "132", + "$id": "129", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1770,13 +1730,13 @@ "decorators": [] }, { - "$id": "133", + "$id": "130", "kind": "method", "name": "maxpagesize", "serializedName": "maxpagesize", "doc": "The maximum number of result items per page.", "type": { - "$id": "134", + "$id": "131", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1792,13 +1752,13 @@ "decorators": [] }, { - "$id": "135", + "$id": "132", "kind": "method", "name": "orderby", "serializedName": "orderby", "doc": "Expressions that specify the order of returned results.", "type": { - "$ref": "122" + "$ref": "119" }, "location": "Query", "isApiVersion": false, @@ -1810,13 +1770,13 @@ "decorators": [] }, { - "$id": "136", + "$id": "133", "kind": "method", "name": "filter", "serializedName": "filter", "doc": "Filter the result list using the given expression.", "type": { - "$id": "137", + "$id": "134", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1832,13 +1792,13 @@ "decorators": [] }, { - "$id": "138", + "$id": "135", "kind": "method", "name": "select", "serializedName": "select", "doc": "Select the specified fields to be included in the response.", "type": { - "$ref": "122" + "$ref": "119" }, "location": "Query", "isApiVersion": false, @@ -1850,13 +1810,13 @@ "decorators": [] }, { - "$id": "139", + "$id": "136", "kind": "method", "name": "expand", "serializedName": "expand", "doc": "Expand the indicated resources into the response.", "type": { - "$ref": "122" + "$ref": "119" }, "location": "Query", "isApiVersion": false, @@ -1868,12 +1828,12 @@ "decorators": [] }, { - "$id": "140", + "$id": "137", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "16" }, "location": "Header", "isApiVersion": false, @@ -1887,7 +1847,7 @@ ], "response": { "type": { - "$ref": "62" + "$ref": "59" }, "resultSegments": [ "value" @@ -1910,7 +1870,7 @@ } }, { - "$id": "141", + "$id": "138", "kind": "basic", "name": "delete", "accessibility": "public", @@ -1920,7 +1880,7 @@ "doc": "Deletes a User", "summary": "Deletes a user.", "operation": { - "$id": "142", + "$id": "139", "name": "delete", "resourceName": "User", "summary": "Deletes a user.", @@ -1928,13 +1888,13 @@ "accessibility": "public", "parameters": [ { - "$id": "143", + "$id": "140", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "144", + "$id": "141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1944,7 +1904,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "145", + "$id": "142", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1958,13 +1918,13 @@ "readOnly": false }, { - "$id": "146", + "$id": "143", "kind": "path", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "147", + "$id": "144", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2002,13 +1962,13 @@ }, "parameters": [ { - "$id": "148", + "$id": "145", "kind": "method", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "149", + "$id": "146", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2031,7 +1991,7 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.delete" }, { - "$id": "150", + "$id": "147", "kind": "basic", "name": "export", "accessibility": "public", @@ -2041,7 +2001,7 @@ "doc": "Exports a User", "summary": "Exports a user.", "operation": { - "$id": "151", + "$id": "148", "name": "export", "resourceName": "Basic", "summary": "Exports a user.", @@ -2049,13 +2009,13 @@ "accessibility": "public", "parameters": [ { - "$id": "152", + "$id": "149", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "153", + "$id": "150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2065,7 +2025,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "154", + "$id": "151", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2079,13 +2039,13 @@ "readOnly": false }, { - "$id": "155", + "$id": "152", "kind": "path", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "156", + "$id": "153", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2103,13 +2063,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.export.id" }, { - "$id": "157", + "$id": "154", "kind": "query", "name": "format", "serializedName": "format", "doc": "The format of the data.", "type": { - "$id": "158", + "$id": "155", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2124,12 +2084,12 @@ "readOnly": false }, { - "$id": "159", + "$id": "156", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "21" + "$ref": "18" }, "isApiVersion": false, "optional": false, @@ -2146,7 +2106,7 @@ 200 ], "bodyType": { - "$ref": "25" + "$ref": "22" }, "headers": [], "isErrorResponse": false, @@ -2166,13 +2126,13 @@ }, "parameters": [ { - "$id": "160", + "$id": "157", "kind": "method", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "161", + "$id": "158", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2188,13 +2148,13 @@ "decorators": [] }, { - "$id": "162", + "$id": "159", "kind": "method", "name": "format", "serializedName": "format", "doc": "The format of the data.", "type": { - "$id": "163", + "$id": "160", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2210,12 +2170,12 @@ "decorators": [] }, { - "$id": "164", + "$id": "161", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "21" + "$ref": "18" }, "location": "Header", "isApiVersion": false, @@ -2229,7 +2189,7 @@ ], "response": { "type": { - "$ref": "25" + "$ref": "22" } }, "isOverride": false, @@ -2238,7 +2198,7 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.export" }, { - "$id": "165", + "$id": "162", "kind": "basic", "name": "exportAllUsers", "accessibility": "public", @@ -2248,7 +2208,7 @@ "doc": "Exports all users", "summary": "Exports all users.", "operation": { - "$id": "166", + "$id": "163", "name": "exportAllUsers", "resourceName": "Basic", "summary": "Exports all users.", @@ -2256,13 +2216,13 @@ "accessibility": "public", "parameters": [ { - "$id": "167", + "$id": "164", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "168", + "$id": "165", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2272,7 +2232,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "169", + "$id": "166", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2286,13 +2246,13 @@ "readOnly": false }, { - "$id": "170", + "$id": "167", "kind": "query", "name": "format", "serializedName": "format", "doc": "The format of the data.", "type": { - "$id": "171", + "$id": "168", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2307,12 +2267,12 @@ "readOnly": false }, { - "$id": "172", + "$id": "169", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "23" + "$ref": "20" }, "isApiVersion": false, "optional": false, @@ -2329,7 +2289,7 @@ 200 ], "bodyType": { - "$ref": "66" + "$ref": "63" }, "headers": [], "isErrorResponse": false, @@ -2349,13 +2309,13 @@ }, "parameters": [ { - "$id": "173", + "$id": "170", "kind": "method", "name": "format", "serializedName": "format", "doc": "The format of the data.", "type": { - "$id": "174", + "$id": "171", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2371,12 +2331,12 @@ "decorators": [] }, { - "$id": "175", + "$id": "172", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "23" + "$ref": "20" }, "location": "Header", "isApiVersion": false, @@ -2390,7 +2350,7 @@ ], "response": { "type": { - "$ref": "66" + "$ref": "63" } }, "isOverride": false, @@ -2401,13 +2361,13 @@ ], "parameters": [ { - "$id": "176", + "$id": "173", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "177", + "$id": "174", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2418,7 +2378,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "178", + "$id": "175", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/tspCodeModel.json index ac4b101c311b..42dbc027ff28 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/tspCodeModel.json @@ -26,110 +26,13 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "OperationState", - "isGeneratedName": false, - "namespace": "Azure.Core.Foundations", - "doc": "Enum describing allowed operation states.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "NotStarted", - "doc": "The operation has not started.", - "value": "NotStarted", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "Running", - "doc": "The operation is in progress.", - "value": "Running", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "8", - "kind": "enumvalue", - "decorators": [], - "name": "Succeeded", - "doc": "The operation has completed successfully.", - "value": "Succeeded", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "9", - "kind": "enumvalue", - "decorators": [], - "name": "Failed", - "doc": "The operation has failed.", - "value": "Failed", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "10", - "kind": "enumvalue", - "decorators": [], - "name": "Canceled", - "doc": "The operation has been canceled by the user.", - "value": "Canceled", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Json,LroInitial,LroPolling,LroFinalEnvelope", - "access": "public", - "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationState", - "apiVersions": [ - "1.0-preview.1", - "1.0-preview.2" - ], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "1" }, "doc": "The operation has not started.", "decorators": [] }, { - "$id": "11", + "$id": "4", "kind": "enumvalue", "name": "Running", "value": "Running", @@ -137,13 +40,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "The operation is in progress.", "decorators": [] }, { - "$id": "12", + "$id": "5", "kind": "enumvalue", "name": "Succeeded", "value": "Succeeded", @@ -151,13 +54,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "The operation has completed successfully.", "decorators": [] }, { - "$id": "13", + "$id": "6", "kind": "enumvalue", "name": "Failed", "value": "Failed", @@ -165,13 +68,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "The operation has failed.", "decorators": [] }, { - "$id": "14", + "$id": "7", "kind": "enumvalue", "name": "Canceled", "value": "Canceled", @@ -179,7 +82,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "The operation has been canceled by the user.", "decorators": [] @@ -193,12 +96,12 @@ "decorators": [] }, { - "$id": "15", + "$id": "8", "kind": "enum", "name": "Versions", "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc.Versions", "valueType": { - "$id": "16", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -206,55 +109,15 @@ }, "values": [ { - "$id": "17", + "$id": "10", "kind": "enumvalue", "name": "v2022_12_01_preview", "value": "2022-12-01-preview", "valueType": { - "$ref": "16" + "$ref": "9" }, "enumType": { - "$id": "18", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "_Specs_.Azure.Core.Lro.Rpc", - "doc": "The API version.", - "valueType": { - "$id": "19", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "20", - "kind": "enumvalue", - "decorators": [], - "name": "v2022_12_01_preview", - "value": "2022-12-01-preview", - "doc": "The 2022-12-01-preview version.", - "enumType": { - "$ref": "18" - }, - "valueType": { - "$ref": "19" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc.Versions", - "apiVersions": [ - "2022-12-01-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "8" }, "doc": "The 2022-12-01-preview version.", "decorators": [] @@ -270,13 +133,13 @@ ], "constants": [ { - "$id": "21", + "$id": "11", "kind": "constant", "name": "longRunningRpcContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "22", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -286,13 +149,13 @@ "decorators": [] }, { - "$id": "23", + "$id": "13", "kind": "constant", "name": "longRunningRpcContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "24", + "$id": "14", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -302,13 +165,13 @@ "decorators": [] }, { - "$id": "25", + "$id": "15", "kind": "constant", "name": "longRunningRpcContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "26", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -318,13 +181,13 @@ "decorators": [] }, { - "$id": "27", + "$id": "17", "kind": "constant", "name": "longRunningRpcContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "28", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -336,7 +199,7 @@ ], "models": [ { - "$id": "29", + "$id": "19", "kind": "model", "name": "GenerationOptions", "namespace": "_Specs_.Azure.Core.Lro.Rpc", @@ -346,13 +209,13 @@ "decorators": [], "properties": [ { - "$id": "30", + "$id": "20", "kind": "property", "name": "prompt", "serializedName": "prompt", "doc": "Prompt.", "type": { - "$id": "31", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -374,7 +237,7 @@ ] }, { - "$id": "32", + "$id": "22", "kind": "model", "name": "ResourceOperationStatusGenerationResponseGenerationResultError", "namespace": "Azure.Core", @@ -384,13 +247,13 @@ "decorators": [], "properties": [ { - "$id": "33", + "$id": "23", "kind": "property", "name": "id", "serializedName": "id", "doc": "The unique ID of the operation.", "type": { - "$id": "34", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -410,7 +273,7 @@ "isHttpMetadata": false }, { - "$id": "35", + "$id": "25", "kind": "property", "name": "status", "serializedName": "status", @@ -432,13 +295,13 @@ "isHttpMetadata": false }, { - "$id": "36", + "$id": "26", "kind": "property", "name": "error", "serializedName": "error", "doc": "Error object that describes the error when status is \"Failed\".", "type": { - "$id": "37", + "$id": "27", "kind": "model", "name": "Error", "namespace": "Azure.Core.Foundations", @@ -448,13 +311,13 @@ "decorators": [], "properties": [ { - "$id": "38", + "$id": "28", "kind": "property", "name": "code", "serializedName": "code", "doc": "One of a server-defined set of error codes.", "type": { - "$id": "39", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -474,13 +337,13 @@ "isHttpMetadata": false }, { - "$id": "40", + "$id": "30", "kind": "property", "name": "message", "serializedName": "message", "doc": "A human-readable representation of the error.", "type": { - "$id": "41", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -500,13 +363,13 @@ "isHttpMetadata": false }, { - "$id": "42", + "$id": "32", "kind": "property", "name": "target", "serializedName": "target", "doc": "The target of the error.", "type": { - "$id": "43", + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -526,17 +389,17 @@ "isHttpMetadata": false }, { - "$id": "44", + "$id": "34", "kind": "property", "name": "details", "serializedName": "details", "doc": "An array of details about specific errors that led to this reported error.", "type": { - "$id": "45", + "$id": "35", "kind": "array", "name": "ArrayError", "valueType": { - "$ref": "37" + "$ref": "27" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -555,13 +418,13 @@ "isHttpMetadata": false }, { - "$id": "46", + "$id": "36", "kind": "property", "name": "innererror", "serializedName": "innererror", "doc": "An object containing more specific information than the current object about the error.", "type": { - "$id": "47", + "$id": "37", "kind": "model", "name": "InnerError", "namespace": "Azure.Core.Foundations", @@ -571,13 +434,13 @@ "decorators": [], "properties": [ { - "$id": "48", + "$id": "38", "kind": "property", "name": "code", "serializedName": "code", "doc": "One of a server-defined set of error codes.", "type": { - "$id": "49", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -597,13 +460,13 @@ "isHttpMetadata": false }, { - "$id": "50", + "$id": "40", "kind": "property", "name": "innererror", "serializedName": "innererror", "doc": "Inner error.", "type": { - "$ref": "47" + "$ref": "37" }, "optional": true, "readOnly": false, @@ -649,13 +512,13 @@ "isHttpMetadata": false }, { - "$id": "51", + "$id": "41", "kind": "property", "name": "result", "serializedName": "result", "doc": "The result of the operation.", "type": { - "$id": "52", + "$id": "42", "kind": "model", "name": "GenerationResult", "namespace": "_Specs_.Azure.Core.Lro.Rpc", @@ -665,13 +528,13 @@ "decorators": [], "properties": [ { - "$id": "53", + "$id": "43", "kind": "property", "name": "data", "serializedName": "data", "doc": "The data.", "type": { - "$id": "54", + "$id": "44", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -708,16 +571,16 @@ ] }, { - "$ref": "37" + "$ref": "27" }, { - "$ref": "47" + "$ref": "37" }, { - "$ref": "52" + "$ref": "42" }, { - "$id": "55", + "$id": "45", "kind": "model", "name": "ErrorResponse", "namespace": "Azure.Core.Foundations", @@ -727,13 +590,13 @@ "decorators": [], "properties": [ { - "$id": "56", + "$id": "46", "kind": "property", "name": "error", "serializedName": "error", "doc": "The error object.", "type": { - "$ref": "37" + "$ref": "27" }, "optional": false, "readOnly": false, @@ -749,13 +612,13 @@ "isHttpMetadata": false }, { - "$id": "57", + "$id": "47", "kind": "property", "name": "errorCode", "serializedName": "errorCode", "doc": "String error code indicating what went wrong.", "type": { - "$id": "58", + "$id": "48", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -777,7 +640,7 @@ ] }, { - "$id": "59", + "$id": "49", "kind": "model", "name": "OperationStatusGenerationResultError", "namespace": "Azure.Core.Foundations", @@ -787,13 +650,13 @@ "decorators": [], "properties": [ { - "$id": "60", + "$id": "50", "kind": "property", "name": "id", "serializedName": "id", "doc": "The unique ID of the operation.", "type": { - "$id": "61", + "$id": "51", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -813,7 +676,7 @@ "isHttpMetadata": false }, { - "$id": "62", + "$id": "52", "kind": "property", "name": "status", "serializedName": "status", @@ -835,13 +698,13 @@ "isHttpMetadata": false }, { - "$id": "63", + "$id": "53", "kind": "property", "name": "error", "serializedName": "error", "doc": "Error object that describes the error when status is \"Failed\".", "type": { - "$ref": "37" + "$ref": "27" }, "optional": true, "readOnly": false, @@ -857,13 +720,13 @@ "isHttpMetadata": false }, { - "$id": "64", + "$id": "54", "kind": "property", "name": "result", "serializedName": "result", "doc": "The result of the operation.", "type": { - "$ref": "52" + "$ref": "42" }, "optional": true, "readOnly": false, @@ -883,14 +746,14 @@ ], "clients": [ { - "$id": "65", + "$id": "55", "kind": "client", "name": "RpcClient", "namespace": "_Specs_.Azure.Core.Lro.Rpc", "doc": "Illustrates bodies templated with Azure Core with long-running RPC operation", "methods": [ { - "$id": "66", + "$id": "56", "kind": "lro", "name": "longRunningRpc", "accessibility": "public", @@ -900,7 +763,7 @@ "doc": "Generate data.", "summary": "Generate data.", "operation": { - "$id": "67", + "$id": "57", "name": "longRunningRpc", "resourceName": "Rpc", "summary": "Generate data.", @@ -908,13 +771,13 @@ "accessibility": "public", "parameters": [ { - "$id": "68", + "$id": "58", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "69", + "$id": "59", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -924,7 +787,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "70", + "$id": "60", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -938,13 +801,13 @@ "readOnly": false }, { - "$id": "71", + "$id": "61", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "21" + "$ref": "11" }, "isApiVersion": false, "optional": false, @@ -955,12 +818,12 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc.longRunningRpc.contentType" }, { - "$id": "72", + "$id": "62", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "23" + "$ref": "13" }, "isApiVersion": false, "optional": false, @@ -971,13 +834,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc.longRunningRpc.accept" }, { - "$id": "73", + "$id": "63", "kind": "body", "name": "body", "serializedName": "body", "doc": "The body parameter.", "type": { - "$ref": "29" + "$ref": "19" }, "isApiVersion": false, "contentTypes": [ @@ -997,7 +860,7 @@ 202 ], "bodyType": { - "$ref": "32" + "$ref": "22" }, "headers": [ { @@ -1005,12 +868,12 @@ "nameInResponse": "Operation-Location", "doc": "The location for monitoring the operation state.", "type": { - "$id": "74", + "$id": "64", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "75", + "$id": "65", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -1040,13 +903,13 @@ }, "parameters": [ { - "$id": "76", + "$id": "66", "kind": "method", "name": "body", "serializedName": "body", "doc": "The body parameter.", "type": { - "$ref": "29" + "$ref": "19" }, "location": "Body", "isApiVersion": false, @@ -1058,13 +921,13 @@ "decorators": [] }, { - "$id": "77", + "$id": "67", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "25" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -1076,12 +939,12 @@ "decorators": [] }, { - "$id": "78", + "$id": "68", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "27" + "$ref": "17" }, "location": "Header", "isApiVersion": false, @@ -1095,7 +958,7 @@ ], "response": { "type": { - "$ref": "52" + "$ref": "42" }, "resultSegments": [ "result" @@ -1112,7 +975,7 @@ 200 ], "bodyType": { - "$ref": "59" + "$ref": "49" } }, "resultPath": "result" @@ -1121,13 +984,13 @@ ], "parameters": [ { - "$id": "79", + "$id": "69", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "80", + "$id": "70", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1138,7 +1001,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "81", + "$id": "71", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/tspCodeModel.json index 37731daab4a9..ef77798f29bd 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/tspCodeModel.json @@ -26,110 +26,13 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "OperationState", - "isGeneratedName": false, - "namespace": "Azure.Core.Foundations", - "doc": "Enum describing allowed operation states.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "NotStarted", - "doc": "The operation has not started.", - "value": "NotStarted", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "Running", - "doc": "The operation is in progress.", - "value": "Running", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "8", - "kind": "enumvalue", - "decorators": [], - "name": "Succeeded", - "doc": "The operation has completed successfully.", - "value": "Succeeded", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "9", - "kind": "enumvalue", - "decorators": [], - "name": "Failed", - "doc": "The operation has failed.", - "value": "Failed", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "10", - "kind": "enumvalue", - "decorators": [], - "name": "Canceled", - "doc": "The operation has been canceled by the user.", - "value": "Canceled", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Json,LroInitial,LroPolling,LroFinalEnvelope", - "access": "public", - "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationState", - "apiVersions": [ - "1.0-preview.1", - "1.0-preview.2" - ], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "1" }, "doc": "The operation has not started.", "decorators": [] }, { - "$id": "11", + "$id": "4", "kind": "enumvalue", "name": "Running", "value": "Running", @@ -137,13 +40,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "The operation is in progress.", "decorators": [] }, { - "$id": "12", + "$id": "5", "kind": "enumvalue", "name": "Succeeded", "value": "Succeeded", @@ -151,13 +54,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "The operation has completed successfully.", "decorators": [] }, { - "$id": "13", + "$id": "6", "kind": "enumvalue", "name": "Failed", "value": "Failed", @@ -165,13 +68,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "The operation has failed.", "decorators": [] }, { - "$id": "14", + "$id": "7", "kind": "enumvalue", "name": "Canceled", "value": "Canceled", @@ -179,7 +82,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "The operation has been canceled by the user.", "decorators": [] @@ -193,12 +96,12 @@ "decorators": [] }, { - "$id": "15", + "$id": "8", "kind": "enum", "name": "Versions", "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.Versions", "valueType": { - "$id": "16", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -206,55 +109,15 @@ }, "values": [ { - "$id": "17", + "$id": "10", "kind": "enumvalue", "name": "v2022_12_01_preview", "value": "2022-12-01-preview", "valueType": { - "$ref": "16" + "$ref": "9" }, "enumType": { - "$id": "18", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "_Specs_.Azure.Core.Lro.Standard", - "doc": "The API version.", - "valueType": { - "$id": "19", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "20", - "kind": "enumvalue", - "decorators": [], - "name": "v2022_12_01_preview", - "value": "2022-12-01-preview", - "doc": "The 2022-12-01-preview version.", - "enumType": { - "$ref": "18" - }, - "valueType": { - "$ref": "19" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.Versions", - "apiVersions": [ - "2022-12-01-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "8" }, "doc": "The 2022-12-01-preview version.", "decorators": [] @@ -270,13 +133,13 @@ ], "constants": [ { - "$id": "21", + "$id": "11", "kind": "constant", "name": "createOrReplaceContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "22", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -286,13 +149,13 @@ "decorators": [] }, { - "$id": "23", + "$id": "13", "kind": "constant", "name": "createOrReplaceContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "24", + "$id": "14", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -302,13 +165,13 @@ "decorators": [] }, { - "$id": "25", + "$id": "15", "kind": "constant", "name": "createOrReplaceContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "26", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -318,13 +181,13 @@ "decorators": [] }, { - "$id": "27", + "$id": "17", "kind": "constant", "name": "createOrReplaceContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "28", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -334,13 +197,13 @@ "decorators": [] }, { - "$id": "29", + "$id": "19", "kind": "constant", "name": "deleteContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "30", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -350,13 +213,13 @@ "decorators": [] }, { - "$id": "31", + "$id": "21", "kind": "constant", "name": "deleteContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "32", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -366,13 +229,13 @@ "decorators": [] }, { - "$id": "33", + "$id": "23", "kind": "constant", "name": "exportContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "34", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -382,13 +245,13 @@ "decorators": [] }, { - "$id": "35", + "$id": "25", "kind": "constant", "name": "exportContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "36", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -400,7 +263,7 @@ ], "models": [ { - "$id": "37", + "$id": "27", "kind": "model", "name": "User", "namespace": "_Specs_.Azure.Core.Lro.Standard", @@ -410,13 +273,13 @@ "decorators": [], "properties": [ { - "$id": "38", + "$id": "28", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of user.", "type": { - "$id": "39", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -436,13 +299,13 @@ "isHttpMetadata": false }, { - "$id": "40", + "$id": "30", "kind": "property", "name": "role", "serializedName": "role", "doc": "The role of user", "type": { - "$id": "41", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -464,7 +327,7 @@ ] }, { - "$id": "42", + "$id": "32", "kind": "model", "name": "ErrorResponse", "namespace": "Azure.Core.Foundations", @@ -474,13 +337,13 @@ "decorators": [], "properties": [ { - "$id": "43", + "$id": "33", "kind": "property", "name": "error", "serializedName": "error", "doc": "The error object.", "type": { - "$id": "44", + "$id": "34", "kind": "model", "name": "Error", "namespace": "Azure.Core.Foundations", @@ -490,13 +353,13 @@ "decorators": [], "properties": [ { - "$id": "45", + "$id": "35", "kind": "property", "name": "code", "serializedName": "code", "doc": "One of a server-defined set of error codes.", "type": { - "$id": "46", + "$id": "36", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -516,13 +379,13 @@ "isHttpMetadata": false }, { - "$id": "47", + "$id": "37", "kind": "property", "name": "message", "serializedName": "message", "doc": "A human-readable representation of the error.", "type": { - "$id": "48", + "$id": "38", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -542,13 +405,13 @@ "isHttpMetadata": false }, { - "$id": "49", + "$id": "39", "kind": "property", "name": "target", "serializedName": "target", "doc": "The target of the error.", "type": { - "$id": "50", + "$id": "40", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -568,17 +431,17 @@ "isHttpMetadata": false }, { - "$id": "51", + "$id": "41", "kind": "property", "name": "details", "serializedName": "details", "doc": "An array of details about specific errors that led to this reported error.", "type": { - "$id": "52", + "$id": "42", "kind": "array", "name": "ArrayError", "valueType": { - "$ref": "44" + "$ref": "34" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -597,13 +460,13 @@ "isHttpMetadata": false }, { - "$id": "53", + "$id": "43", "kind": "property", "name": "innererror", "serializedName": "innererror", "doc": "An object containing more specific information than the current object about the error.", "type": { - "$id": "54", + "$id": "44", "kind": "model", "name": "InnerError", "namespace": "Azure.Core.Foundations", @@ -613,13 +476,13 @@ "decorators": [], "properties": [ { - "$id": "55", + "$id": "45", "kind": "property", "name": "code", "serializedName": "code", "doc": "One of a server-defined set of error codes.", "type": { - "$id": "56", + "$id": "46", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -639,13 +502,13 @@ "isHttpMetadata": false }, { - "$id": "57", + "$id": "47", "kind": "property", "name": "innererror", "serializedName": "innererror", "doc": "Inner error.", "type": { - "$ref": "54" + "$ref": "44" }, "optional": true, "readOnly": false, @@ -691,13 +554,13 @@ "isHttpMetadata": false }, { - "$id": "58", + "$id": "48", "kind": "property", "name": "errorCode", "serializedName": "errorCode", "doc": "String error code indicating what went wrong.", "type": { - "$id": "59", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -719,13 +582,13 @@ ] }, { - "$ref": "44" + "$ref": "34" }, { - "$ref": "54" + "$ref": "44" }, { - "$id": "60", + "$id": "50", "kind": "model", "name": "OperationStatusError", "namespace": "Azure.Core.Foundations", @@ -735,13 +598,13 @@ "decorators": [], "properties": [ { - "$id": "61", + "$id": "51", "kind": "property", "name": "id", "serializedName": "id", "doc": "The unique ID of the operation.", "type": { - "$id": "62", + "$id": "52", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -761,7 +624,7 @@ "isHttpMetadata": false }, { - "$id": "63", + "$id": "53", "kind": "property", "name": "status", "serializedName": "status", @@ -783,13 +646,13 @@ "isHttpMetadata": false }, { - "$id": "64", + "$id": "54", "kind": "property", "name": "error", "serializedName": "error", "doc": "Error object that describes the error when status is \"Failed\".", "type": { - "$ref": "44" + "$ref": "34" }, "optional": true, "readOnly": false, @@ -807,7 +670,7 @@ ] }, { - "$id": "65", + "$id": "55", "kind": "model", "name": "ResourceOperationStatusUserExportedUserError", "namespace": "Azure.Core", @@ -817,13 +680,13 @@ "decorators": [], "properties": [ { - "$id": "66", + "$id": "56", "kind": "property", "name": "id", "serializedName": "id", "doc": "The unique ID of the operation.", "type": { - "$id": "67", + "$id": "57", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -843,7 +706,7 @@ "isHttpMetadata": false }, { - "$id": "68", + "$id": "58", "kind": "property", "name": "status", "serializedName": "status", @@ -865,13 +728,13 @@ "isHttpMetadata": false }, { - "$id": "69", + "$id": "59", "kind": "property", "name": "error", "serializedName": "error", "doc": "Error object that describes the error when status is \"Failed\".", "type": { - "$ref": "44" + "$ref": "34" }, "optional": true, "readOnly": false, @@ -887,13 +750,13 @@ "isHttpMetadata": false }, { - "$id": "70", + "$id": "60", "kind": "property", "name": "result", "serializedName": "result", "doc": "The result of the operation.", "type": { - "$id": "71", + "$id": "61", "kind": "model", "name": "ExportedUser", "namespace": "_Specs_.Azure.Core.Lro.Standard", @@ -903,13 +766,13 @@ "decorators": [], "properties": [ { - "$id": "72", + "$id": "62", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of user.", "type": { - "$id": "73", + "$id": "63", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -929,13 +792,13 @@ "isHttpMetadata": false }, { - "$id": "74", + "$id": "64", "kind": "property", "name": "resourceUri", "serializedName": "resourceUri", "doc": "The exported URI.", "type": { - "$id": "75", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -972,10 +835,10 @@ ] }, { - "$ref": "71" + "$ref": "61" }, { - "$id": "76", + "$id": "66", "kind": "model", "name": "OperationStatusExportedUserError", "namespace": "Azure.Core.Foundations", @@ -985,13 +848,13 @@ "decorators": [], "properties": [ { - "$id": "77", + "$id": "67", "kind": "property", "name": "id", "serializedName": "id", "doc": "The unique ID of the operation.", "type": { - "$id": "78", + "$id": "68", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1011,7 +874,7 @@ "isHttpMetadata": false }, { - "$id": "79", + "$id": "69", "kind": "property", "name": "status", "serializedName": "status", @@ -1033,13 +896,13 @@ "isHttpMetadata": false }, { - "$id": "80", + "$id": "70", "kind": "property", "name": "error", "serializedName": "error", "doc": "Error object that describes the error when status is \"Failed\".", "type": { - "$ref": "44" + "$ref": "34" }, "optional": true, "readOnly": false, @@ -1055,13 +918,13 @@ "isHttpMetadata": false }, { - "$id": "81", + "$id": "71", "kind": "property", "name": "result", "serializedName": "result", "doc": "The result of the operation.", "type": { - "$ref": "71" + "$ref": "61" }, "optional": true, "readOnly": false, @@ -1081,14 +944,14 @@ ], "clients": [ { - "$id": "82", + "$id": "72", "kind": "client", "name": "StandardClient", "namespace": "_Specs_.Azure.Core.Lro.Standard", "doc": "Illustrates bodies templated with Azure Core with long-running operation", "methods": [ { - "$id": "83", + "$id": "73", "kind": "lro", "name": "createOrReplace", "accessibility": "public", @@ -1098,7 +961,7 @@ "doc": "Creates or replaces a User", "summary": "Adds a user or replaces a user's fields.", "operation": { - "$id": "84", + "$id": "74", "name": "createOrReplace", "resourceName": "User", "summary": "Adds a user or replaces a user's fields.", @@ -1106,13 +969,13 @@ "accessibility": "public", "parameters": [ { - "$id": "85", + "$id": "75", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "86", + "$id": "76", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1122,7 +985,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "87", + "$id": "77", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1136,13 +999,13 @@ "readOnly": false }, { - "$id": "88", + "$id": "78", "kind": "path", "name": "name", "serializedName": "name", "doc": "The name of user.", "type": { - "$id": "89", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1160,13 +1023,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.createOrReplace.name" }, { - "$id": "90", + "$id": "80", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "21" + "$ref": "11" }, "isApiVersion": false, "optional": false, @@ -1177,12 +1040,12 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.createOrReplace.contentType" }, { - "$id": "91", + "$id": "81", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "23" + "$ref": "13" }, "isApiVersion": false, "optional": false, @@ -1193,13 +1056,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.createOrReplace.accept" }, { - "$id": "92", + "$id": "82", "kind": "body", "name": "resource", "serializedName": "resource", "doc": "The resource instance.", "type": { - "$ref": "37" + "$ref": "27" }, "isApiVersion": false, "contentTypes": [ @@ -1219,7 +1082,7 @@ 201 ], "bodyType": { - "$ref": "37" + "$ref": "27" }, "headers": [ { @@ -1227,12 +1090,12 @@ "nameInResponse": "Operation-Location", "doc": "The location for monitoring the operation state.", "type": { - "$id": "93", + "$id": "83", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "94", + "$id": "84", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -1252,7 +1115,7 @@ 200 ], "bodyType": { - "$ref": "37" + "$ref": "27" }, "headers": [ { @@ -1260,12 +1123,12 @@ "nameInResponse": "Operation-Location", "doc": "The location for monitoring the operation state.", "type": { - "$id": "95", + "$id": "85", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "96", + "$id": "86", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -1295,13 +1158,13 @@ }, "parameters": [ { - "$id": "97", + "$id": "87", "kind": "method", "name": "name", "serializedName": "name", "doc": "The name of user.", "type": { - "$id": "98", + "$id": "88", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1317,13 +1180,13 @@ "decorators": [] }, { - "$id": "99", + "$id": "89", "kind": "method", "name": "resource", "serializedName": "resource", "doc": "The resource instance.", "type": { - "$ref": "37" + "$ref": "27" }, "location": "Body", "isApiVersion": false, @@ -1335,13 +1198,13 @@ "decorators": [] }, { - "$id": "100", + "$id": "90", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "25" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -1353,12 +1216,12 @@ "decorators": [] }, { - "$id": "101", + "$id": "91", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "27" + "$ref": "17" }, "location": "Header", "isApiVersion": false, @@ -1372,7 +1235,7 @@ ], "response": { "type": { - "$ref": "37" + "$ref": "27" } }, "isOverride": false, @@ -1386,13 +1249,13 @@ 200 ], "bodyType": { - "$ref": "37" + "$ref": "27" } } } }, { - "$id": "102", + "$id": "92", "kind": "lro", "name": "delete", "accessibility": "public", @@ -1402,7 +1265,7 @@ "doc": "Deletes a User", "summary": "Deletes a user.", "operation": { - "$id": "103", + "$id": "93", "name": "delete", "resourceName": "User", "summary": "Deletes a user.", @@ -1410,13 +1273,13 @@ "accessibility": "public", "parameters": [ { - "$id": "104", + "$id": "94", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "105", + "$id": "95", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1426,7 +1289,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "106", + "$id": "96", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1440,13 +1303,13 @@ "readOnly": false }, { - "$id": "107", + "$id": "97", "kind": "path", "name": "name", "serializedName": "name", "doc": "The name of user.", "type": { - "$id": "108", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1464,12 +1327,12 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.delete.name" }, { - "$id": "109", + "$id": "99", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "29" + "$ref": "19" }, "isApiVersion": false, "optional": false, @@ -1486,7 +1349,7 @@ 202 ], "bodyType": { - "$ref": "60" + "$ref": "50" }, "headers": [ { @@ -1494,12 +1357,12 @@ "nameInResponse": "Operation-Location", "doc": "The location for monitoring the operation state.", "type": { - "$id": "110", + "$id": "100", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "111", + "$id": "101", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -1526,13 +1389,13 @@ }, "parameters": [ { - "$id": "112", + "$id": "102", "kind": "method", "name": "name", "serializedName": "name", "doc": "The name of user.", "type": { - "$id": "113", + "$id": "103", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1548,12 +1411,12 @@ "decorators": [] }, { - "$id": "114", + "$id": "104", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "31" + "$ref": "21" }, "location": "Header", "isApiVersion": false, @@ -1580,7 +1443,7 @@ } }, { - "$id": "115", + "$id": "105", "kind": "lro", "name": "export", "accessibility": "public", @@ -1590,7 +1453,7 @@ "doc": "Exports a User", "summary": "Exports a user.", "operation": { - "$id": "116", + "$id": "106", "name": "export", "resourceName": "Standard", "summary": "Exports a user.", @@ -1598,13 +1461,13 @@ "accessibility": "public", "parameters": [ { - "$id": "117", + "$id": "107", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "118", + "$id": "108", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1614,7 +1477,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "119", + "$id": "109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1628,13 +1491,13 @@ "readOnly": false }, { - "$id": "120", + "$id": "110", "kind": "path", "name": "name", "serializedName": "name", "doc": "The name of user.", "type": { - "$id": "121", + "$id": "111", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1652,13 +1515,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.export.name" }, { - "$id": "122", + "$id": "112", "kind": "query", "name": "format", "serializedName": "format", "doc": "The format of the data.", "type": { - "$id": "123", + "$id": "113", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1673,12 +1536,12 @@ "readOnly": false }, { - "$id": "124", + "$id": "114", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "33" + "$ref": "23" }, "isApiVersion": false, "optional": false, @@ -1695,7 +1558,7 @@ 202 ], "bodyType": { - "$ref": "65" + "$ref": "55" }, "headers": [ { @@ -1703,12 +1566,12 @@ "nameInResponse": "Operation-Location", "doc": "The location for monitoring the operation state.", "type": { - "$id": "125", + "$id": "115", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "126", + "$id": "116", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -1735,13 +1598,13 @@ }, "parameters": [ { - "$id": "127", + "$id": "117", "kind": "method", "name": "name", "serializedName": "name", "doc": "The name of user.", "type": { - "$id": "128", + "$id": "118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1757,13 +1620,13 @@ "decorators": [] }, { - "$id": "129", + "$id": "119", "kind": "method", "name": "format", "serializedName": "format", "doc": "The format of the data.", "type": { - "$id": "130", + "$id": "120", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1779,12 +1642,12 @@ "decorators": [] }, { - "$id": "131", + "$id": "121", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "35" + "$ref": "25" }, "location": "Header", "isApiVersion": false, @@ -1798,7 +1661,7 @@ ], "response": { "type": { - "$ref": "71" + "$ref": "61" }, "resultSegments": [ "result" @@ -1815,7 +1678,7 @@ 200 ], "bodyType": { - "$ref": "76" + "$ref": "66" } }, "resultPath": "result" @@ -1824,13 +1687,13 @@ ], "parameters": [ { - "$id": "132", + "$id": "122", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "133", + "$id": "123", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1841,7 +1704,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "134", + "$id": "124", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/tspCodeModel.json index 5df2258d5473..9f80b89f268a 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/tspCodeModel.json @@ -26,47 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "_Specs_.Azure.Core.Model", - "doc": "The version of the API.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v2022_12_01_preview", - "value": "2022-12-01-preview", - "doc": "The version 2022-12-01-preview.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "_Specs_.Azure.Core.Model.Versions", - "apiVersions": [ - "2022-12-01-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "The version 2022-12-01-preview.", "decorators": [] @@ -82,13 +42,13 @@ ], "constants": [ { - "$id": "7", + "$id": "4", "kind": "constant", "name": "getContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -98,13 +58,13 @@ "decorators": [] }, { - "$id": "9", + "$id": "6", "kind": "constant", "name": "putContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "10", + "$id": "7", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -114,13 +74,13 @@ "decorators": [] }, { - "$id": "11", + "$id": "8", "kind": "constant", "name": "postContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "12", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -130,13 +90,13 @@ "decorators": [] }, { - "$id": "13", + "$id": "10", "kind": "constant", "name": "postContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "14", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -148,7 +108,7 @@ ], "models": [ { - "$id": "15", + "$id": "12", "kind": "model", "name": "AzureEmbeddingModel", "namespace": "_Specs_.Azure.Core.Model", @@ -157,16 +117,16 @@ "decorators": [], "properties": [ { - "$id": "16", + "$id": "13", "kind": "property", "name": "embedding", "serializedName": "embedding", "type": { - "$id": "17", + "$id": "14", "kind": "array", "name": "EmbeddingVector", "valueType": { - "$id": "18", + "$id": "15", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -193,20 +153,20 @@ ], "clients": [ { - "$id": "19", + "$id": "16", "kind": "client", "name": "ModelClient", "namespace": "_Specs_.Azure.Core.Model", "methods": [], "parameters": [ { - "$id": "20", + "$id": "17", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "21", + "$id": "18", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -217,7 +177,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "22", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -237,13 +197,13 @@ ], "children": [ { - "$id": "23", + "$id": "20", "kind": "client", "name": "AzureCoreEmbeddingVector", "namespace": "_Specs_.Azure.Core.Model", "methods": [ { - "$id": "24", + "$id": "21", "kind": "basic", "name": "get", "accessibility": "public", @@ -252,19 +212,19 @@ ], "doc": "get an embedding vector", "operation": { - "$id": "25", + "$id": "22", "name": "get", "resourceName": "AzureCoreEmbeddingVector", "doc": "get an embedding vector", "accessibility": "public", "parameters": [ { - "$id": "26", + "$id": "23", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "7" + "$ref": "4" }, "isApiVersion": false, "optional": false, @@ -281,7 +241,7 @@ 200 ], "bodyType": { - "$ref": "17" + "$ref": "14" }, "headers": [], "isErrorResponse": false, @@ -301,12 +261,12 @@ }, "parameters": [ { - "$id": "27", + "$id": "24", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "7" + "$ref": "4" }, "location": "Header", "isApiVersion": false, @@ -320,7 +280,7 @@ ], "response": { "type": { - "$ref": "17" + "$ref": "14" } }, "isOverride": false, @@ -329,7 +289,7 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Model.AzureCoreEmbeddingVector.get" }, { - "$id": "28", + "$id": "25", "kind": "basic", "name": "put", "accessibility": "public", @@ -338,20 +298,20 @@ ], "doc": "put an embedding vector", "operation": { - "$id": "29", + "$id": "26", "name": "put", "resourceName": "AzureCoreEmbeddingVector", "doc": "put an embedding vector", "accessibility": "public", "parameters": [ { - "$id": "30", + "$id": "27", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "9" + "$ref": "6" }, "isApiVersion": false, "optional": false, @@ -362,13 +322,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Model.AzureCoreEmbeddingVector.put.contentType" }, { - "$id": "31", + "$id": "28", "kind": "body", "name": "body", "serializedName": "body", "doc": "_", "type": { - "$ref": "17" + "$ref": "14" }, "isApiVersion": false, "contentTypes": [ @@ -405,13 +365,13 @@ }, "parameters": [ { - "$id": "32", + "$id": "29", "kind": "method", "name": "body", "serializedName": "body", "doc": "_", "type": { - "$ref": "17" + "$ref": "14" }, "location": "Body", "isApiVersion": false, @@ -423,13 +383,13 @@ "decorators": [] }, { - "$id": "33", + "$id": "30", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "9" + "$ref": "6" }, "location": "Header", "isApiVersion": false, @@ -448,7 +408,7 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Model.AzureCoreEmbeddingVector.put" }, { - "$id": "34", + "$id": "31", "kind": "basic", "name": "post", "accessibility": "public", @@ -457,20 +417,20 @@ ], "doc": "post a model which has an embeddingVector property", "operation": { - "$id": "35", + "$id": "32", "name": "post", "resourceName": "AzureCoreEmbeddingVector", "doc": "post a model which has an embeddingVector property", "accessibility": "public", "parameters": [ { - "$id": "36", + "$id": "33", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "11" + "$ref": "8" }, "isApiVersion": false, "optional": false, @@ -481,12 +441,12 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Model.AzureCoreEmbeddingVector.post.contentType" }, { - "$id": "37", + "$id": "34", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "13" + "$ref": "10" }, "isApiVersion": false, "optional": false, @@ -497,13 +457,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Model.AzureCoreEmbeddingVector.post.accept" }, { - "$id": "38", + "$id": "35", "kind": "body", "name": "body", "serializedName": "body", "doc": "_", "type": { - "$ref": "15" + "$ref": "12" }, "isApiVersion": false, "contentTypes": [ @@ -523,7 +483,7 @@ 200 ], "bodyType": { - "$ref": "15" + "$ref": "12" }, "headers": [], "isErrorResponse": false, @@ -546,13 +506,13 @@ }, "parameters": [ { - "$id": "39", + "$id": "36", "kind": "method", "name": "body", "serializedName": "body", "doc": "_", "type": { - "$ref": "15" + "$ref": "12" }, "location": "Body", "isApiVersion": false, @@ -564,13 +524,13 @@ "decorators": [] }, { - "$id": "40", + "$id": "37", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "11" + "$ref": "8" }, "location": "Header", "isApiVersion": false, @@ -582,12 +542,12 @@ "decorators": [] }, { - "$id": "41", + "$id": "38", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "13" + "$ref": "10" }, "location": "Header", "isApiVersion": false, @@ -601,7 +561,7 @@ ], "response": { "type": { - "$ref": "15" + "$ref": "12" } }, "isOverride": false, @@ -612,13 +572,13 @@ ], "parameters": [ { - "$id": "42", + "$id": "39", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "43", + "$id": "40", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -629,7 +589,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "44", + "$id": "41", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -648,7 +608,7 @@ "2022-12-01-preview" ], "parent": { - "$ref": "19" + "$ref": "16" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/tspCodeModel.json index 9a6367233ace..4bc81b89c1b0 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/tspCodeModel.json @@ -26,67 +26,13 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "ListItemInputExtensibleEnum", - "isGeneratedName": false, - "namespace": "_Specs_.Azure.Core.Page", - "doc": "An extensible enum input parameter.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "First", - "value": "First", - "doc": "The first enum value.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "Second", - "value": "Second", - "doc": "The second enum value.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input", - "access": "public", - "crossLanguageDefinitionId": "_Specs_.Azure.Core.Page.ListItemInputExtensibleEnum", - "apiVersions": [ - "2022-12-01-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "The first enum value.", "decorators": [] }, { - "$id": "8", + "$id": "4", "kind": "enumvalue", "name": "Second", "value": "Second", @@ -94,7 +40,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "The second enum value.", "decorators": [] @@ -108,12 +54,12 @@ "decorators": [] }, { - "$id": "9", + "$id": "5", "kind": "enum", "name": "Versions", "crossLanguageDefinitionId": "_Specs_.Azure.Core.Page.Versions", "valueType": { - "$id": "10", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -121,55 +67,15 @@ }, "values": [ { - "$id": "11", + "$id": "7", "kind": "enumvalue", "name": "v2022_12_01_preview", "value": "2022-12-01-preview", "valueType": { - "$ref": "10" + "$ref": "6" }, "enumType": { - "$id": "12", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "_Specs_.Azure.Core.Page", - "doc": "The version of the API.", - "valueType": { - "$id": "13", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "14", - "kind": "enumvalue", - "decorators": [], - "name": "v2022_12_01_preview", - "value": "2022-12-01-preview", - "doc": "The version 2022-12-01-preview.", - "enumType": { - "$ref": "12" - }, - "valueType": { - "$ref": "13" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "_Specs_.Azure.Core.Page.Versions", - "apiVersions": [ - "2022-12-01-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "5" }, "doc": "The version 2022-12-01-preview.", "decorators": [] @@ -185,13 +91,13 @@ ], "constants": [ { - "$id": "15", + "$id": "8", "kind": "constant", "name": "listWithPageContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "16", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -201,13 +107,13 @@ "decorators": [] }, { - "$id": "17", + "$id": "10", "kind": "constant", "name": "listWithParametersContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "18", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -217,13 +123,13 @@ "decorators": [] }, { - "$id": "19", + "$id": "12", "kind": "constant", "name": "listWithParametersContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "20", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -233,13 +139,13 @@ "decorators": [] }, { - "$id": "21", + "$id": "14", "kind": "constant", "name": "listWithCustomPageModelContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "22", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -249,13 +155,13 @@ "decorators": [] }, { - "$id": "23", + "$id": "16", "kind": "constant", "name": "withParameterizedNextLinkContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "24", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -265,13 +171,13 @@ "decorators": [] }, { - "$id": "25", + "$id": "18", "kind": "constant", "name": "listFirstItemContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "26", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -281,13 +187,13 @@ "decorators": [] }, { - "$id": "27", + "$id": "20", "kind": "constant", "name": "listSecondItemContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "28", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -299,7 +205,7 @@ ], "models": [ { - "$id": "29", + "$id": "22", "kind": "model", "name": "PagedUser", "namespace": "Azure.Core", @@ -309,17 +215,17 @@ "decorators": [], "properties": [ { - "$id": "30", + "$id": "23", "kind": "property", "name": "value", "serializedName": "value", "doc": "The User items on this page", "type": { - "$id": "31", + "$id": "24", "kind": "array", "name": "ArrayUser", "valueType": { - "$id": "32", + "$id": "25", "kind": "model", "name": "User", "namespace": "_Specs_.Azure.Core.Page", @@ -329,13 +235,13 @@ "decorators": [], "properties": [ { - "$id": "33", + "$id": "26", "kind": "property", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "34", + "$id": "27", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -355,13 +261,13 @@ "isHttpMetadata": false }, { - "$id": "35", + "$id": "28", "kind": "property", "name": "name", "serializedName": "name", "doc": "The user's name.", "type": { - "$id": "36", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -381,17 +287,17 @@ "isHttpMetadata": false }, { - "$id": "37", + "$id": "30", "kind": "property", "name": "orders", "serializedName": "orders", "doc": "The user's order list", "type": { - "$id": "38", + "$id": "31", "kind": "array", "name": "ArrayUserOrder", "valueType": { - "$id": "39", + "$id": "32", "kind": "model", "name": "UserOrder", "namespace": "_Specs_.Azure.Core.Page", @@ -401,13 +307,13 @@ "decorators": [], "properties": [ { - "$id": "40", + "$id": "33", "kind": "property", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "41", + "$id": "34", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -427,13 +333,13 @@ "isHttpMetadata": false }, { - "$id": "42", + "$id": "35", "kind": "property", "name": "userId", "serializedName": "userId", "doc": "The user's id.", "type": { - "$id": "43", + "$id": "36", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -453,13 +359,13 @@ "isHttpMetadata": false }, { - "$id": "44", + "$id": "37", "kind": "property", "name": "detail", "serializedName": "detail", "doc": "The user's order detail", "type": { - "$id": "45", + "$id": "38", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -497,18 +403,18 @@ "isHttpMetadata": false }, { - "$id": "46", + "$id": "39", "kind": "property", "name": "etag", "serializedName": "etag", "doc": "The entity tag for this resource.", "type": { - "$id": "47", + "$id": "40", "kind": "string", "name": "eTag", "crossLanguageDefinitionId": "Azure.Core.eTag", "baseType": { - "$id": "48", + "$id": "41", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -548,18 +454,18 @@ "isHttpMetadata": false }, { - "$id": "49", + "$id": "42", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "50", + "$id": "43", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "51", + "$id": "44", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -583,13 +489,13 @@ ] }, { - "$ref": "32" + "$ref": "25" }, { - "$ref": "39" + "$ref": "32" }, { - "$id": "52", + "$id": "45", "kind": "model", "name": "ErrorResponse", "namespace": "Azure.Core.Foundations", @@ -599,13 +505,13 @@ "decorators": [], "properties": [ { - "$id": "53", + "$id": "46", "kind": "property", "name": "error", "serializedName": "error", "doc": "The error object.", "type": { - "$id": "54", + "$id": "47", "kind": "model", "name": "Error", "namespace": "Azure.Core.Foundations", @@ -615,13 +521,13 @@ "decorators": [], "properties": [ { - "$id": "55", + "$id": "48", "kind": "property", "name": "code", "serializedName": "code", "doc": "One of a server-defined set of error codes.", "type": { - "$id": "56", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -641,13 +547,13 @@ "isHttpMetadata": false }, { - "$id": "57", + "$id": "50", "kind": "property", "name": "message", "serializedName": "message", "doc": "A human-readable representation of the error.", "type": { - "$id": "58", + "$id": "51", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -667,13 +573,13 @@ "isHttpMetadata": false }, { - "$id": "59", + "$id": "52", "kind": "property", "name": "target", "serializedName": "target", "doc": "The target of the error.", "type": { - "$id": "60", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -693,17 +599,17 @@ "isHttpMetadata": false }, { - "$id": "61", + "$id": "54", "kind": "property", "name": "details", "serializedName": "details", "doc": "An array of details about specific errors that led to this reported error.", "type": { - "$id": "62", + "$id": "55", "kind": "array", "name": "ArrayError", "valueType": { - "$ref": "54" + "$ref": "47" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -722,13 +628,13 @@ "isHttpMetadata": false }, { - "$id": "63", + "$id": "56", "kind": "property", "name": "innererror", "serializedName": "innererror", "doc": "An object containing more specific information than the current object about the error.", "type": { - "$id": "64", + "$id": "57", "kind": "model", "name": "InnerError", "namespace": "Azure.Core.Foundations", @@ -738,13 +644,13 @@ "decorators": [], "properties": [ { - "$id": "65", + "$id": "58", "kind": "property", "name": "code", "serializedName": "code", "doc": "One of a server-defined set of error codes.", "type": { - "$id": "66", + "$id": "59", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -764,13 +670,13 @@ "isHttpMetadata": false }, { - "$id": "67", + "$id": "60", "kind": "property", "name": "innererror", "serializedName": "innererror", "doc": "Inner error.", "type": { - "$ref": "64" + "$ref": "57" }, "optional": true, "readOnly": false, @@ -816,13 +722,13 @@ "isHttpMetadata": false }, { - "$id": "68", + "$id": "61", "kind": "property", "name": "errorCode", "serializedName": "errorCode", "doc": "String error code indicating what went wrong.", "type": { - "$id": "69", + "$id": "62", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -844,13 +750,13 @@ ] }, { - "$ref": "54" + "$ref": "47" }, { - "$ref": "64" + "$ref": "57" }, { - "$id": "70", + "$id": "63", "kind": "model", "name": "ListItemInputBody", "namespace": "_Specs_.Azure.Core.Page", @@ -860,13 +766,13 @@ "decorators": [], "properties": [ { - "$id": "71", + "$id": "64", "kind": "property", "name": "inputName", "serializedName": "inputName", "doc": "The name of the input.", "type": { - "$id": "72", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -888,7 +794,7 @@ ] }, { - "$id": "73", + "$id": "66", "kind": "model", "name": "UserListResults", "namespace": "_Specs_.Azure.Core.Page", @@ -897,13 +803,13 @@ "decorators": [], "properties": [ { - "$id": "74", + "$id": "67", "kind": "property", "name": "items", "serializedName": "items", "doc": "List of items.", "type": { - "$ref": "31" + "$ref": "24" }, "optional": false, "readOnly": false, @@ -919,13 +825,13 @@ "isHttpMetadata": false }, { - "$id": "75", + "$id": "68", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "Link to fetch more items.", "type": { - "$id": "76", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -947,7 +853,7 @@ ] }, { - "$id": "77", + "$id": "70", "kind": "model", "name": "ParameterizedNextLinkPagingResult", "namespace": "_Specs_.Azure.Core.Page", @@ -956,12 +862,12 @@ "decorators": [], "properties": [ { - "$id": "78", + "$id": "71", "kind": "property", "name": "values", "serializedName": "values", "type": { - "$ref": "31" + "$ref": "24" }, "optional": false, "readOnly": false, @@ -977,17 +883,17 @@ "isHttpMetadata": false }, { - "$id": "79", + "$id": "72", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "type": { - "$id": "80", + "$id": "73", "kind": "url", "name": "parameterizedNextLink", "crossLanguageDefinitionId": "Azure.Core.Legacy.parameterizedNextLink", "baseType": { - "$id": "81", + "$id": "74", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -1011,7 +917,7 @@ ] }, { - "$id": "82", + "$id": "75", "kind": "model", "name": "PagedFirstItem", "namespace": "Azure.Core", @@ -1021,17 +927,17 @@ "decorators": [], "properties": [ { - "$id": "83", + "$id": "76", "kind": "property", "name": "value", "serializedName": "value", "doc": "The FirstItem items on this page", "type": { - "$id": "84", + "$id": "77", "kind": "array", "name": "ArrayFirstItem", "valueType": { - "$id": "85", + "$id": "78", "kind": "model", "name": "FirstItem", "namespace": "_Specs_.Azure.Core.Page", @@ -1041,13 +947,13 @@ "decorators": [], "properties": [ { - "$id": "86", + "$id": "79", "kind": "property", "name": "id", "serializedName": "id", "doc": "The id of the item.", "type": { - "$id": "87", + "$id": "80", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1085,18 +991,18 @@ "isHttpMetadata": false }, { - "$id": "88", + "$id": "81", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "89", + "$id": "82", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "90", + "$id": "83", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -1120,10 +1026,10 @@ ] }, { - "$ref": "85" + "$ref": "78" }, { - "$id": "91", + "$id": "84", "kind": "model", "name": "PagedSecondItem", "namespace": "Azure.Core", @@ -1133,17 +1039,17 @@ "decorators": [], "properties": [ { - "$id": "92", + "$id": "85", "kind": "property", "name": "value", "serializedName": "value", "doc": "The SecondItem items on this page", "type": { - "$id": "93", + "$id": "86", "kind": "array", "name": "ArraySecondItem", "valueType": { - "$id": "94", + "$id": "87", "kind": "model", "name": "SecondItem", "namespace": "_Specs_.Azure.Core.Page", @@ -1153,13 +1059,13 @@ "decorators": [], "properties": [ { - "$id": "95", + "$id": "88", "kind": "property", "name": "name", "serializedName": "name", "doc": "The name of the item.", "type": { - "$id": "96", + "$id": "89", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1197,18 +1103,18 @@ "isHttpMetadata": false }, { - "$id": "97", + "$id": "90", "kind": "property", "name": "nextLink", "serializedName": "nextLink", "doc": "The link to the next page of items", "type": { - "$id": "98", + "$id": "91", "kind": "url", "name": "ResourceLocation", "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", "baseType": { - "$id": "99", + "$id": "92", "kind": "url", "name": "url", "crossLanguageDefinitionId": "TypeSpec.url", @@ -1232,19 +1138,19 @@ ] }, { - "$ref": "94" + "$ref": "87" } ], "clients": [ { - "$id": "100", + "$id": "93", "kind": "client", "name": "PageClient", "namespace": "_Specs_.Azure.Core.Page", "doc": "Illustrates bodies templated with Azure Core with paging support", "methods": [ { - "$id": "101", + "$id": "94", "kind": "paging", "name": "listWithPage", "accessibility": "public", @@ -1253,20 +1159,20 @@ ], "doc": "List with Azure.Core.Page<>.", "operation": { - "$id": "102", + "$id": "95", "name": "listWithPage", "resourceName": "Page", "doc": "List with Azure.Core.Page<>.", "accessibility": "public", "parameters": [ { - "$id": "103", + "$id": "96", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "104", + "$id": "97", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1276,7 +1182,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "105", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1290,12 +1196,12 @@ "readOnly": false }, { - "$id": "106", + "$id": "99", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "8" }, "isApiVersion": false, "optional": false, @@ -1312,7 +1218,7 @@ 200 ], "bodyType": { - "$ref": "29" + "$ref": "22" }, "headers": [], "isErrorResponse": false, @@ -1332,12 +1238,12 @@ }, "parameters": [ { - "$id": "107", + "$id": "100", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "8" }, "location": "Header", "isApiVersion": false, @@ -1351,7 +1257,7 @@ ], "response": { "type": { - "$ref": "31" + "$ref": "24" }, "resultSegments": [ "value" @@ -1374,7 +1280,7 @@ } }, { - "$id": "108", + "$id": "101", "kind": "paging", "name": "listWithParameters", "accessibility": "public", @@ -1383,20 +1289,20 @@ ], "doc": "List with extensible enum parameter Azure.Core.Page<>.", "operation": { - "$id": "109", + "$id": "102", "name": "listWithParameters", "resourceName": "Page", "doc": "List with extensible enum parameter Azure.Core.Page<>.", "accessibility": "public", "parameters": [ { - "$id": "110", + "$id": "103", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "111", + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1406,7 +1312,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "112", + "$id": "105", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1420,7 +1326,7 @@ "readOnly": false }, { - "$id": "113", + "$id": "106", "kind": "query", "name": "another", "serializedName": "another", @@ -1437,13 +1343,13 @@ "readOnly": false }, { - "$id": "114", + "$id": "107", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "17" + "$ref": "10" }, "isApiVersion": false, "optional": false, @@ -1454,12 +1360,12 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Page.listWithParameters.contentType" }, { - "$id": "115", + "$id": "108", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "12" }, "isApiVersion": false, "optional": false, @@ -1470,13 +1376,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Page.listWithParameters.accept" }, { - "$id": "116", + "$id": "109", "kind": "body", "name": "bodyInput", "serializedName": "bodyInput", "doc": "The body of the input.", "type": { - "$ref": "70" + "$ref": "63" }, "isApiVersion": false, "contentTypes": [ @@ -1496,7 +1402,7 @@ 200 ], "bodyType": { - "$ref": "29" + "$ref": "22" }, "headers": [], "isErrorResponse": false, @@ -1519,13 +1425,13 @@ }, "parameters": [ { - "$id": "117", + "$id": "110", "kind": "method", "name": "bodyInput", "serializedName": "bodyInput", "doc": "The body of the input.", "type": { - "$ref": "70" + "$ref": "63" }, "location": "Body", "isApiVersion": false, @@ -1537,7 +1443,7 @@ "decorators": [] }, { - "$id": "118", + "$id": "111", "kind": "method", "name": "another", "serializedName": "another", @@ -1555,13 +1461,13 @@ "decorators": [] }, { - "$id": "119", + "$id": "112", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "17" + "$ref": "10" }, "location": "Header", "isApiVersion": false, @@ -1573,12 +1479,12 @@ "decorators": [] }, { - "$id": "120", + "$id": "113", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "12" }, "location": "Header", "isApiVersion": false, @@ -1592,7 +1498,7 @@ ], "response": { "type": { - "$ref": "31" + "$ref": "24" }, "resultSegments": [ "value" @@ -1615,7 +1521,7 @@ } }, { - "$id": "121", + "$id": "114", "kind": "paging", "name": "listWithCustomPageModel", "accessibility": "public", @@ -1624,20 +1530,20 @@ ], "doc": "List with custom page model.", "operation": { - "$id": "122", + "$id": "115", "name": "listWithCustomPageModel", "resourceName": "Page", "doc": "List with custom page model.", "accessibility": "public", "parameters": [ { - "$id": "123", + "$id": "116", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "124", + "$id": "117", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1647,7 +1553,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "125", + "$id": "118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1661,12 +1567,12 @@ "readOnly": false }, { - "$id": "126", + "$id": "119", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "21" + "$ref": "14" }, "isApiVersion": false, "optional": false, @@ -1683,7 +1589,7 @@ 200 ], "bodyType": { - "$ref": "73" + "$ref": "66" }, "headers": [], "isErrorResponse": false, @@ -1703,12 +1609,12 @@ }, "parameters": [ { - "$id": "127", + "$id": "120", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "21" + "$ref": "14" }, "location": "Header", "isApiVersion": false, @@ -1722,7 +1628,7 @@ ], "response": { "type": { - "$ref": "31" + "$ref": "24" }, "resultSegments": [ "items" @@ -1745,7 +1651,7 @@ } }, { - "$id": "128", + "$id": "121", "kind": "paging", "name": "withParameterizedNextLink", "accessibility": "public", @@ -1754,19 +1660,19 @@ ], "doc": "List with parameterized next link that re-injects parameters.", "operation": { - "$id": "129", + "$id": "122", "name": "withParameterizedNextLink", "resourceName": "Page", "doc": "List with parameterized next link that re-injects parameters.", "accessibility": "public", "parameters": [ { - "$id": "130", + "$id": "123", "kind": "query", "name": "includePending", "serializedName": "includePending", "type": { - "$id": "131", + "$id": "124", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1781,12 +1687,12 @@ "readOnly": false }, { - "$id": "132", + "$id": "125", "kind": "query", "name": "select", "serializedName": "select", "type": { - "$id": "133", + "$id": "126", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1801,12 +1707,12 @@ "readOnly": false }, { - "$id": "134", + "$id": "127", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "23" + "$ref": "16" }, "isApiVersion": false, "optional": false, @@ -1823,7 +1729,7 @@ 200 ], "bodyType": { - "$ref": "77" + "$ref": "70" }, "headers": [], "isErrorResponse": false, @@ -1843,12 +1749,12 @@ }, "parameters": [ { - "$id": "135", + "$id": "128", "kind": "method", "name": "includePending", "serializedName": "includePending", "type": { - "$id": "136", + "$id": "129", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1864,12 +1770,12 @@ "decorators": [] }, { - "$id": "137", + "$id": "130", "kind": "method", "name": "select", "serializedName": "select", "type": { - "$id": "138", + "$id": "131", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1885,12 +1791,12 @@ "decorators": [] }, { - "$id": "139", + "$id": "132", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "23" + "$ref": "16" }, "location": "Header", "isApiVersion": false, @@ -1904,7 +1810,7 @@ ], "response": { "type": { - "$ref": "31" + "$ref": "24" }, "resultSegments": [ "values" @@ -1925,7 +1831,7 @@ "responseLocation": "Body", "reInjectedParameters": [ { - "$ref": "130" + "$ref": "123" } ] } @@ -1934,13 +1840,13 @@ ], "parameters": [ { - "$id": "140", + "$id": "133", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "141", + "$id": "134", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1951,7 +1857,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "142", + "$id": "135", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1971,13 +1877,13 @@ ], "children": [ { - "$id": "143", + "$id": "136", "kind": "client", "name": "TwoModelsAsPageItem", "namespace": "_Specs_.Azure.Core.Page", "methods": [ { - "$id": "144", + "$id": "137", "kind": "paging", "name": "listFirstItem", "accessibility": "public", @@ -1986,20 +1892,20 @@ ], "doc": "Two operations with two different page item types should be successfully generated. Should generate model for FirstItem.", "operation": { - "$id": "145", + "$id": "138", "name": "listFirstItem", "resourceName": "TwoModelsAsPageItem", "doc": "Two operations with two different page item types should be successfully generated. Should generate model for FirstItem.", "accessibility": "public", "parameters": [ { - "$id": "146", + "$id": "139", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "147", + "$id": "140", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2009,7 +1915,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "148", + "$id": "141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2023,12 +1929,12 @@ "readOnly": false }, { - "$id": "149", + "$id": "142", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "25" + "$ref": "18" }, "isApiVersion": false, "optional": false, @@ -2045,7 +1951,7 @@ 200 ], "bodyType": { - "$ref": "82" + "$ref": "75" }, "headers": [], "isErrorResponse": false, @@ -2065,12 +1971,12 @@ }, "parameters": [ { - "$id": "150", + "$id": "143", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "25" + "$ref": "18" }, "location": "Header", "isApiVersion": false, @@ -2084,7 +1990,7 @@ ], "response": { "type": { - "$ref": "84" + "$ref": "77" }, "resultSegments": [ "value" @@ -2107,7 +2013,7 @@ } }, { - "$id": "151", + "$id": "144", "kind": "paging", "name": "listSecondItem", "accessibility": "public", @@ -2116,20 +2022,20 @@ ], "doc": "Two operations with two different page item types should be successfully generated. Should generate model for SecondItem.", "operation": { - "$id": "152", + "$id": "145", "name": "listSecondItem", "resourceName": "TwoModelsAsPageItem", "doc": "Two operations with two different page item types should be successfully generated. Should generate model for SecondItem.", "accessibility": "public", "parameters": [ { - "$id": "153", + "$id": "146", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "154", + "$id": "147", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2139,7 +2045,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "155", + "$id": "148", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2153,12 +2059,12 @@ "readOnly": false }, { - "$id": "156", + "$id": "149", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "27" + "$ref": "20" }, "isApiVersion": false, "optional": false, @@ -2175,7 +2081,7 @@ 200 ], "bodyType": { - "$ref": "91" + "$ref": "84" }, "headers": [], "isErrorResponse": false, @@ -2195,12 +2101,12 @@ }, "parameters": [ { - "$id": "157", + "$id": "150", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "27" + "$ref": "20" }, "location": "Header", "isApiVersion": false, @@ -2214,7 +2120,7 @@ ], "response": { "type": { - "$ref": "93" + "$ref": "86" }, "resultSegments": [ "value" @@ -2239,13 +2145,13 @@ ], "parameters": [ { - "$id": "158", + "$id": "151", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "159", + "$id": "152", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2256,7 +2162,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "160", + "$id": "153", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2275,7 +2181,7 @@ "2022-12-01-preview" ], "parent": { - "$ref": "100" + "$ref": "93" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/tspCodeModel.json index b8f8e5e862c9..812d6fbb14a4 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/tspCodeModel.json @@ -26,47 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "_Specs_.Azure.Core.Scalar", - "doc": "The version of the API.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v2022_12_01_preview", - "value": "2022-12-01-preview", - "doc": "The version 2022-12-01-preview.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "_Specs_.Azure.Core.Scalar.Versions", - "apiVersions": [ - "2022-12-01-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "The version 2022-12-01-preview.", "decorators": [] @@ -82,13 +42,13 @@ ], "constants": [ { - "$id": "7", + "$id": "4", "kind": "constant", "name": "getContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -98,13 +58,13 @@ "decorators": [] }, { - "$id": "9", + "$id": "6", "kind": "constant", "name": "GetResponseContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "10", + "$id": "7", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -114,13 +74,13 @@ "decorators": [] }, { - "$id": "11", + "$id": "8", "kind": "constant", "name": "GetResponseContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "12", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -130,13 +90,13 @@ "decorators": [] }, { - "$id": "13", + "$id": "10", "kind": "constant", "name": "GetResponseContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "14", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -146,13 +106,13 @@ "decorators": [] }, { - "$id": "15", + "$id": "12", "kind": "constant", "name": "GetResponseContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "16", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -162,13 +122,13 @@ "decorators": [] }, { - "$id": "17", + "$id": "14", "kind": "constant", "name": "postContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "18", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -178,13 +138,13 @@ "decorators": [] }, { - "$id": "19", + "$id": "16", "kind": "constant", "name": "GetResponseContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "20", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -196,7 +156,7 @@ ], "models": [ { - "$id": "21", + "$id": "18", "kind": "model", "name": "AzureLocationModel", "namespace": "_Specs_.Azure.Core.Scalar", @@ -205,17 +165,17 @@ "decorators": [], "properties": [ { - "$id": "22", + "$id": "19", "kind": "property", "name": "location", "serializedName": "location", "type": { - "$id": "23", + "$id": "20", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "24", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -241,20 +201,20 @@ ], "clients": [ { - "$id": "25", + "$id": "22", "kind": "client", "name": "ScalarClient", "namespace": "_Specs_.Azure.Core.Scalar", "methods": [], "parameters": [ { - "$id": "26", + "$id": "23", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "27", + "$id": "24", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -265,7 +225,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "28", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -285,13 +245,13 @@ ], "children": [ { - "$id": "29", + "$id": "26", "kind": "client", "name": "AzureLocationScalar", "namespace": "_Specs_.Azure.Core.Scalar", "methods": [ { - "$id": "30", + "$id": "27", "kind": "basic", "name": "get", "accessibility": "public", @@ -300,19 +260,19 @@ ], "doc": "get azureLocation value", "operation": { - "$id": "31", + "$id": "28", "name": "get", "resourceName": "AzureLocationScalar", "doc": "get azureLocation value", "accessibility": "public", "parameters": [ { - "$id": "32", + "$id": "29", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "7" + "$ref": "4" }, "isApiVersion": false, "optional": false, @@ -329,12 +289,12 @@ 200 ], "bodyType": { - "$id": "33", + "$id": "30", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "34", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -347,7 +307,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "9" + "$ref": "6" } } ], @@ -368,12 +328,12 @@ }, "parameters": [ { - "$id": "35", + "$id": "32", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "7" + "$ref": "4" }, "location": "Header", "isApiVersion": false, @@ -387,7 +347,7 @@ ], "response": { "type": { - "$ref": "33" + "$ref": "30" } }, "isOverride": false, @@ -396,7 +356,7 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Scalar.AzureLocationScalar.get" }, { - "$id": "36", + "$id": "33", "kind": "basic", "name": "put", "accessibility": "public", @@ -405,19 +365,19 @@ ], "doc": "put azureLocation value", "operation": { - "$id": "37", + "$id": "34", "name": "put", "resourceName": "AzureLocationScalar", "doc": "put azureLocation value", "accessibility": "public", "parameters": [ { - "$id": "38", + "$id": "35", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "11" + "$ref": "8" }, "isApiVersion": false, "optional": false, @@ -428,18 +388,18 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Scalar.AzureLocationScalar.put.contentType" }, { - "$id": "39", + "$id": "36", "kind": "body", "name": "body", "serializedName": "body", "doc": "_", "type": { - "$id": "40", + "$id": "37", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "41", + "$id": "38", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -482,12 +442,12 @@ }, "parameters": [ { - "$id": "42", + "$id": "39", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "13" + "$ref": "10" }, "location": "Header", "isApiVersion": false, @@ -499,18 +459,18 @@ "decorators": [] }, { - "$id": "43", + "$id": "40", "kind": "method", "name": "body", "serializedName": "body", "doc": "_", "type": { - "$id": "44", + "$id": "41", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "45", + "$id": "42", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -535,7 +495,7 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Scalar.AzureLocationScalar.put" }, { - "$id": "46", + "$id": "43", "kind": "basic", "name": "post", "accessibility": "public", @@ -544,19 +504,19 @@ ], "doc": "post a model which has azureLocation property", "operation": { - "$id": "47", + "$id": "44", "name": "post", "resourceName": "AzureLocationScalar", "doc": "post a model which has azureLocation property", "accessibility": "public", "parameters": [ { - "$id": "48", + "$id": "45", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "15" + "$ref": "12" }, "isApiVersion": false, "optional": false, @@ -567,12 +527,12 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Scalar.AzureLocationScalar.post.contentType" }, { - "$id": "49", + "$id": "46", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "17" + "$ref": "14" }, "isApiVersion": false, "optional": false, @@ -583,13 +543,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Scalar.AzureLocationScalar.post.accept" }, { - "$id": "50", + "$id": "47", "kind": "body", "name": "body", "serializedName": "body", "doc": "_", "type": { - "$ref": "21" + "$ref": "18" }, "isApiVersion": false, "contentTypes": [ @@ -609,7 +569,7 @@ 200 ], "bodyType": { - "$ref": "21" + "$ref": "18" }, "headers": [], "isErrorResponse": false, @@ -632,12 +592,12 @@ }, "parameters": [ { - "$id": "51", + "$id": "48", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "19" + "$ref": "16" }, "location": "Header", "isApiVersion": false, @@ -649,13 +609,13 @@ "decorators": [] }, { - "$id": "52", + "$id": "49", "kind": "method", "name": "body", "serializedName": "body", "doc": "_", "type": { - "$ref": "21" + "$ref": "18" }, "location": "Body", "isApiVersion": false, @@ -667,12 +627,12 @@ "decorators": [] }, { - "$id": "53", + "$id": "50", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "17" + "$ref": "14" }, "location": "Header", "isApiVersion": false, @@ -686,7 +646,7 @@ ], "response": { "type": { - "$ref": "21" + "$ref": "18" } }, "isOverride": false, @@ -695,7 +655,7 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Scalar.AzureLocationScalar.post" }, { - "$id": "54", + "$id": "51", "kind": "basic", "name": "header", "accessibility": "public", @@ -704,25 +664,25 @@ ], "doc": "azureLocation value header", "operation": { - "$id": "55", + "$id": "52", "name": "header", "resourceName": "AzureLocationScalar", "doc": "azureLocation value header", "accessibility": "public", "parameters": [ { - "$id": "56", + "$id": "53", "kind": "header", "name": "region", "serializedName": "region", "doc": "_", "type": { - "$id": "57", + "$id": "54", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "58", + "$id": "55", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -759,18 +719,18 @@ }, "parameters": [ { - "$id": "59", + "$id": "56", "kind": "method", "name": "region", "serializedName": "region", "doc": "_", "type": { - "$id": "60", + "$id": "57", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "61", + "$id": "58", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -795,7 +755,7 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Scalar.AzureLocationScalar.header" }, { - "$id": "62", + "$id": "59", "kind": "basic", "name": "query", "accessibility": "public", @@ -804,25 +764,25 @@ ], "doc": "azureLocation value query", "operation": { - "$id": "63", + "$id": "60", "name": "query", "resourceName": "AzureLocationScalar", "doc": "azureLocation value query", "accessibility": "public", "parameters": [ { - "$id": "64", + "$id": "61", "kind": "query", "name": "region", "serializedName": "region", "doc": "_", "type": { - "$id": "65", + "$id": "62", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "66", + "$id": "63", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -859,18 +819,18 @@ }, "parameters": [ { - "$id": "67", + "$id": "64", "kind": "method", "name": "region", "serializedName": "region", "doc": "_", "type": { - "$id": "68", + "$id": "65", "kind": "string", "name": "azureLocation", "crossLanguageDefinitionId": "Azure.Core.azureLocation", "baseType": { - "$id": "69", + "$id": "66", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -897,13 +857,13 @@ ], "parameters": [ { - "$id": "70", + "$id": "67", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "71", + "$id": "68", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -914,7 +874,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "72", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -933,7 +893,7 @@ "2022-12-01-preview" ], "parent": { - "$ref": "25" + "$ref": "22" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/tspCodeModel.json index 5901651b3148..bd6d10c895ae 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/tspCodeModel.json @@ -26,68 +26,13 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "RepeatabilityResult", - "isGeneratedName": false, - "namespace": "Azure.Core", - "doc": "Repeatability Result header options", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "accepted", - "doc": "If the request was accepted and the server guarantees that the server state reflects a single execution of the operation.", - "value": "accepted", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "rejected", - "doc": "If the request was rejected because the combination of Repeatability-First-Sent and Repeatability-Request-ID were invalid\nor because the Repeatability-First-Sent value was outside the range of values held by the server.", - "value": "rejected", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Output", - "access": "public", - "crossLanguageDefinitionId": "Azure.Core.RepeatabilityResult", - "apiVersions": [ - "1.0-preview.1", - "1.0-preview.2" - ], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "1" }, "doc": "If the request was accepted and the server guarantees that the server state reflects a single execution of the operation.", "decorators": [] }, { - "$id": "8", + "$id": "4", "kind": "enumvalue", "name": "rejected", "value": "rejected", @@ -95,7 +40,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "If the request was rejected because the combination of Repeatability-First-Sent and Repeatability-Request-ID were invalid\nor because the Repeatability-First-Sent value was outside the range of values held by the server.", "decorators": [] @@ -109,12 +54,12 @@ "decorators": [] }, { - "$id": "9", + "$id": "5", "kind": "enum", "name": "Versions", "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.Versions", "valueType": { - "$id": "10", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -122,55 +67,15 @@ }, "values": [ { - "$id": "11", + "$id": "7", "kind": "enumvalue", "name": "v2022_12_01_preview", "value": "2022-12-01-preview", "valueType": { - "$ref": "10" + "$ref": "6" }, "enumType": { - "$id": "12", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "_Specs_.Azure.Core.Traits", - "doc": "Service versions", - "valueType": { - "$id": "13", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "14", - "kind": "enumvalue", - "decorators": [], - "name": "v2022_12_01_preview", - "value": "2022-12-01-preview", - "doc": "2022-12-01-preview", - "enumType": { - "$ref": "12" - }, - "valueType": { - "$ref": "13" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.Versions", - "apiVersions": [ - "2022-12-01-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "5" }, "doc": "2022-12-01-preview", "decorators": [] @@ -186,13 +91,13 @@ ], "constants": [ { - "$id": "15", + "$id": "8", "kind": "constant", "name": "smokeTestContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "16", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -202,13 +107,13 @@ "decorators": [] }, { - "$id": "17", + "$id": "10", "kind": "constant", "name": "repeatableActionContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "18", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -218,13 +123,13 @@ "decorators": [] }, { - "$id": "19", + "$id": "12", "kind": "constant", "name": "repeatableActionContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "20", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -236,7 +141,7 @@ ], "models": [ { - "$id": "21", + "$id": "14", "kind": "model", "name": "User", "namespace": "_Specs_.Azure.Core.Traits", @@ -246,13 +151,13 @@ "decorators": [], "properties": [ { - "$id": "22", + "$id": "15", "kind": "property", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "23", + "$id": "16", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -272,13 +177,13 @@ "isHttpMetadata": false }, { - "$id": "24", + "$id": "17", "kind": "property", "name": "name", "serializedName": "name", "doc": "The user's name.", "type": { - "$id": "25", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -300,7 +205,7 @@ ] }, { - "$id": "26", + "$id": "19", "kind": "model", "name": "ErrorResponse", "namespace": "Azure.Core.Foundations", @@ -310,13 +215,13 @@ "decorators": [], "properties": [ { - "$id": "27", + "$id": "20", "kind": "property", "name": "error", "serializedName": "error", "doc": "The error object.", "type": { - "$id": "28", + "$id": "21", "kind": "model", "name": "Error", "namespace": "Azure.Core.Foundations", @@ -326,13 +231,13 @@ "decorators": [], "properties": [ { - "$id": "29", + "$id": "22", "kind": "property", "name": "code", "serializedName": "code", "doc": "One of a server-defined set of error codes.", "type": { - "$id": "30", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -352,13 +257,13 @@ "isHttpMetadata": false }, { - "$id": "31", + "$id": "24", "kind": "property", "name": "message", "serializedName": "message", "doc": "A human-readable representation of the error.", "type": { - "$id": "32", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -378,13 +283,13 @@ "isHttpMetadata": false }, { - "$id": "33", + "$id": "26", "kind": "property", "name": "target", "serializedName": "target", "doc": "The target of the error.", "type": { - "$id": "34", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -404,17 +309,17 @@ "isHttpMetadata": false }, { - "$id": "35", + "$id": "28", "kind": "property", "name": "details", "serializedName": "details", "doc": "An array of details about specific errors that led to this reported error.", "type": { - "$id": "36", + "$id": "29", "kind": "array", "name": "ArrayError", "valueType": { - "$ref": "28" + "$ref": "21" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -433,13 +338,13 @@ "isHttpMetadata": false }, { - "$id": "37", + "$id": "30", "kind": "property", "name": "innererror", "serializedName": "innererror", "doc": "An object containing more specific information than the current object about the error.", "type": { - "$id": "38", + "$id": "31", "kind": "model", "name": "InnerError", "namespace": "Azure.Core.Foundations", @@ -449,13 +354,13 @@ "decorators": [], "properties": [ { - "$id": "39", + "$id": "32", "kind": "property", "name": "code", "serializedName": "code", "doc": "One of a server-defined set of error codes.", "type": { - "$id": "40", + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -475,13 +380,13 @@ "isHttpMetadata": false }, { - "$id": "41", + "$id": "34", "kind": "property", "name": "innererror", "serializedName": "innererror", "doc": "Inner error.", "type": { - "$ref": "38" + "$ref": "31" }, "optional": true, "readOnly": false, @@ -527,13 +432,13 @@ "isHttpMetadata": false }, { - "$id": "42", + "$id": "35", "kind": "property", "name": "errorCode", "serializedName": "errorCode", "doc": "String error code indicating what went wrong.", "type": { - "$id": "43", + "$id": "36", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -555,13 +460,13 @@ ] }, { - "$ref": "28" + "$ref": "21" }, { - "$ref": "38" + "$ref": "31" }, { - "$id": "44", + "$id": "37", "kind": "model", "name": "UserActionParam", "namespace": "_Specs_.Azure.Core.Traits", @@ -571,13 +476,13 @@ "decorators": [], "properties": [ { - "$id": "45", + "$id": "38", "kind": "property", "name": "userActionValue", "serializedName": "userActionValue", "doc": "User action value.", "type": { - "$id": "46", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -599,7 +504,7 @@ ] }, { - "$id": "47", + "$id": "40", "kind": "model", "name": "UserActionResponse", "namespace": "_Specs_.Azure.Core.Traits", @@ -609,13 +514,13 @@ "decorators": [], "properties": [ { - "$id": "48", + "$id": "41", "kind": "property", "name": "userActionResult", "serializedName": "userActionResult", "doc": "User action result.", "type": { - "$id": "49", + "$id": "42", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -639,14 +544,14 @@ ], "clients": [ { - "$id": "50", + "$id": "43", "kind": "client", "name": "TraitsClient", "namespace": "_Specs_.Azure.Core.Traits", "doc": "Illustrates Azure Core operation customizations by traits", "methods": [ { - "$id": "51", + "$id": "44", "kind": "basic", "name": "smokeTest", "accessibility": "public", @@ -655,20 +560,20 @@ ], "doc": "Get a resource, sending and receiving headers.", "operation": { - "$id": "52", + "$id": "45", "name": "smokeTest", "resourceName": "User", "doc": "Get a resource, sending and receiving headers.", "accessibility": "public", "parameters": [ { - "$id": "53", + "$id": "46", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "54", + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -678,7 +583,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "55", + "$id": "48", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -692,13 +597,13 @@ "readOnly": false }, { - "$id": "56", + "$id": "49", "kind": "path", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "57", + "$id": "50", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -716,13 +621,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.smokeTest.id" }, { - "$id": "58", + "$id": "51", "kind": "header", "name": "foo", "serializedName": "foo", "doc": "header in request", "type": { - "$id": "59", + "$id": "52", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -737,13 +642,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.smokeTest.foo" }, { - "$id": "60", + "$id": "53", "kind": "header", "name": "ifMatch", "serializedName": "If-Match", "doc": "The request should only proceed if an entity matches this string.", "type": { - "$id": "61", + "$id": "54", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -758,13 +663,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.smokeTest.ifMatch" }, { - "$id": "62", + "$id": "55", "kind": "header", "name": "ifNoneMatch", "serializedName": "If-None-Match", "doc": "The request should only proceed if no entity matches this string.", "type": { - "$id": "63", + "$id": "56", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -779,18 +684,18 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.smokeTest.ifNoneMatch" }, { - "$id": "64", + "$id": "57", "kind": "header", "name": "ifUnmodifiedSince", "serializedName": "If-Unmodified-Since", "doc": "The request should only proceed if the entity was not modified after this time.", "type": { - "$id": "65", + "$id": "58", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "66", + "$id": "59", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -808,18 +713,18 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.smokeTest.ifUnmodifiedSince" }, { - "$id": "67", + "$id": "60", "kind": "header", "name": "ifModifiedSince", "serializedName": "If-Modified-Since", "doc": "The request should only proceed if the entity was modified after this time.", "type": { - "$id": "68", + "$id": "61", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "69", + "$id": "62", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -837,18 +742,18 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.smokeTest.ifModifiedSince" }, { - "$id": "70", + "$id": "63", "kind": "header", "name": "clientRequestId", "serializedName": "x-ms-client-request-id", "doc": "An opaque, globally-unique, client-generated string identifier for the request.", "type": { - "$id": "71", + "$id": "64", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "72", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -865,12 +770,12 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.smokeTest.clientRequestId" }, { - "$id": "73", + "$id": "66", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "8" }, "isApiVersion": false, "optional": false, @@ -887,14 +792,14 @@ 200 ], "bodyType": { - "$ref": "21" + "$ref": "14" }, "headers": [ { "name": "bar", "nameInResponse": "bar", "type": { - "$id": "74", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -906,7 +811,7 @@ "nameInResponse": "ETag", "doc": "The entity tag for the response.", "type": { - "$id": "75", + "$id": "68", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -918,12 +823,12 @@ "nameInResponse": "x-ms-client-request-id", "doc": "An opaque, globally-unique, client-generated string identifier for the request.", "type": { - "$id": "76", + "$id": "69", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "77", + "$id": "70", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -950,13 +855,13 @@ }, "parameters": [ { - "$id": "78", + "$id": "71", "kind": "method", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "79", + "$id": "72", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -972,13 +877,13 @@ "decorators": [] }, { - "$id": "80", + "$id": "73", "kind": "method", "name": "foo", "serializedName": "foo", "doc": "header in request", "type": { - "$id": "81", + "$id": "74", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -994,13 +899,13 @@ "decorators": [] }, { - "$id": "82", + "$id": "75", "kind": "method", "name": "ifMatch", "serializedName": "If-Match", "doc": "The request should only proceed if an entity matches this string.", "type": { - "$id": "83", + "$id": "76", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1016,13 +921,13 @@ "decorators": [] }, { - "$id": "84", + "$id": "77", "kind": "method", "name": "ifNoneMatch", "serializedName": "If-None-Match", "doc": "The request should only proceed if no entity matches this string.", "type": { - "$id": "85", + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1038,18 +943,18 @@ "decorators": [] }, { - "$id": "86", + "$id": "79", "kind": "method", "name": "ifUnmodifiedSince", "serializedName": "If-Unmodified-Since", "doc": "The request should only proceed if the entity was not modified after this time.", "type": { - "$id": "87", + "$id": "80", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "88", + "$id": "81", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1068,18 +973,18 @@ "decorators": [] }, { - "$id": "89", + "$id": "82", "kind": "method", "name": "ifModifiedSince", "serializedName": "If-Modified-Since", "doc": "The request should only proceed if the entity was modified after this time.", "type": { - "$id": "90", + "$id": "83", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "91", + "$id": "84", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1098,18 +1003,18 @@ "decorators": [] }, { - "$id": "92", + "$id": "85", "kind": "method", "name": "clientRequestId", "serializedName": "x-ms-client-request-id", "doc": "An opaque, globally-unique, client-generated string identifier for the request.", "type": { - "$id": "93", + "$id": "86", "kind": "string", "name": "uuid", "crossLanguageDefinitionId": "Azure.Core.uuid", "baseType": { - "$id": "94", + "$id": "87", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1127,12 +1032,12 @@ "decorators": [] }, { - "$id": "95", + "$id": "88", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "8" }, "location": "Header", "isApiVersion": false, @@ -1146,7 +1051,7 @@ ], "response": { "type": { - "$ref": "21" + "$ref": "14" } }, "isOverride": false, @@ -1155,7 +1060,7 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.smokeTest" }, { - "$id": "96", + "$id": "89", "kind": "basic", "name": "repeatableAction", "accessibility": "public", @@ -1164,20 +1069,20 @@ ], "doc": "Test for repeatable requests", "operation": { - "$id": "97", + "$id": "90", "name": "repeatableAction", "resourceName": "Traits", "doc": "Test for repeatable requests", "accessibility": "public", "parameters": [ { - "$id": "98", + "$id": "91", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "99", + "$id": "92", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1187,7 +1092,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "100", + "$id": "93", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1201,13 +1106,13 @@ "readOnly": false }, { - "$id": "101", + "$id": "94", "kind": "path", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "102", + "$id": "95", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1225,13 +1130,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.repeatableAction.id" }, { - "$id": "103", + "$id": "96", "kind": "header", "name": "repeatabilityRequestId", "serializedName": "Repeatability-Request-ID", "doc": "An opaque, globally-unique, client-generated string identifier for the request.", "type": { - "$id": "104", + "$id": "97", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1246,18 +1151,18 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.repeatableAction.repeatabilityRequestId" }, { - "$id": "105", + "$id": "98", "kind": "header", "name": "repeatabilityFirstSent", "serializedName": "Repeatability-First-Sent", "doc": "Specifies the date and time at which the request was first created.", "type": { - "$id": "106", + "$id": "99", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "107", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1275,13 +1180,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.repeatableAction.repeatabilityFirstSent" }, { - "$id": "108", + "$id": "101", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "17" + "$ref": "10" }, "isApiVersion": false, "optional": false, @@ -1292,12 +1197,12 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.repeatableAction.contentType" }, { - "$id": "109", + "$id": "102", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "12" }, "isApiVersion": false, "optional": false, @@ -1308,13 +1213,13 @@ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.repeatableAction.accept" }, { - "$id": "110", + "$id": "103", "kind": "body", "name": "body", "serializedName": "body", "doc": "The body parameter.", "type": { - "$ref": "44" + "$ref": "37" }, "isApiVersion": false, "contentTypes": [ @@ -1334,7 +1239,7 @@ 200 ], "bodyType": { - "$ref": "47" + "$ref": "40" }, "headers": [ { @@ -1366,13 +1271,13 @@ }, "parameters": [ { - "$id": "111", + "$id": "104", "kind": "method", "name": "id", "serializedName": "id", "doc": "The user's id.", "type": { - "$id": "112", + "$id": "105", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1388,13 +1293,13 @@ "decorators": [] }, { - "$id": "113", + "$id": "106", "kind": "method", "name": "body", "serializedName": "body", "doc": "The body parameter.", "type": { - "$ref": "44" + "$ref": "37" }, "location": "Body", "isApiVersion": false, @@ -1406,13 +1311,13 @@ "decorators": [] }, { - "$id": "114", + "$id": "107", "kind": "method", "name": "repeatabilityRequestId", "serializedName": "Repeatability-Request-ID", "doc": "An opaque, globally-unique, client-generated string identifier for the request.", "type": { - "$id": "115", + "$id": "108", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1428,18 +1333,18 @@ "decorators": [] }, { - "$id": "116", + "$id": "109", "kind": "method", "name": "repeatabilityFirstSent", "serializedName": "Repeatability-First-Sent", "doc": "Specifies the date and time at which the request was first created.", "type": { - "$id": "117", + "$id": "110", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "118", + "$id": "111", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1458,13 +1363,13 @@ "decorators": [] }, { - "$id": "119", + "$id": "112", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "17" + "$ref": "10" }, "location": "Header", "isApiVersion": false, @@ -1476,12 +1381,12 @@ "decorators": [] }, { - "$id": "120", + "$id": "113", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "12" }, "location": "Header", "isApiVersion": false, @@ -1495,7 +1400,7 @@ ], "response": { "type": { - "$ref": "47" + "$ref": "40" } }, "isOverride": false, @@ -1506,13 +1411,13 @@ ], "parameters": [ { - "$id": "121", + "$id": "114", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "122", + "$id": "115", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1523,7 +1428,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "123", + "$id": "116", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/tspCodeModel.json index 93ae19233136..7c8c3bd03cd8 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/tspCodeModel.json @@ -26,45 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Enum", - "isGeneratedName": false, - "namespace": "_Specs_.Azure.Example.Basic", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "EnumValue1", - "value": "EnumValue1", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "_Specs_.Azure.Example.Basic.Enum", - "apiVersions": [ - "2022-12-01-preview" - ], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "1" }, "decorators": [] } @@ -76,12 +38,12 @@ "decorators": [] }, { - "$id": "7", + "$id": "4", "kind": "enum", "name": "Versions", "crossLanguageDefinitionId": "_Specs_.Azure.Example.Basic.Versions", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -89,53 +51,15 @@ }, "values": [ { - "$id": "9", + "$id": "6", "kind": "enumvalue", "name": "v2022_12_01_preview", "value": "2022-12-01-preview", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$id": "10", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "_Specs_.Azure.Example.Basic", - "valueType": { - "$id": "11", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "12", - "kind": "enumvalue", - "decorators": [], - "name": "v2022_12_01_preview", - "value": "2022-12-01-preview", - "enumType": { - "$ref": "10" - }, - "valueType": { - "$ref": "11" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "_Specs_.Azure.Example.Basic.Versions", - "apiVersions": [ - "2022-12-01-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "4" }, "decorators": [] } @@ -149,13 +73,13 @@ ], "constants": [ { - "$id": "13", + "$id": "7", "kind": "constant", "name": "basicActionContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "14", + "$id": "8", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -165,13 +89,13 @@ "decorators": [] }, { - "$id": "15", + "$id": "9", "kind": "constant", "name": "basicActionContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "16", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -183,7 +107,7 @@ ], "models": [ { - "$id": "17", + "$id": "11", "kind": "model", "name": "ActionRequest", "namespace": "_Specs_.Azure.Example.Basic", @@ -192,12 +116,12 @@ "decorators": [], "properties": [ { - "$id": "18", + "$id": "12", "kind": "property", "name": "stringProperty", "serializedName": "stringProperty", "type": { - "$id": "19", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -217,12 +141,12 @@ "isHttpMetadata": false }, { - "$id": "20", + "$id": "14", "kind": "property", "name": "modelProperty", "serializedName": "modelProperty", "type": { - "$id": "21", + "$id": "15", "kind": "model", "name": "Model", "namespace": "_Specs_.Azure.Example.Basic", @@ -231,12 +155,12 @@ "decorators": [], "properties": [ { - "$id": "22", + "$id": "16", "kind": "property", "name": "int32Property", "serializedName": "int32Property", "type": { - "$id": "23", + "$id": "17", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -256,12 +180,12 @@ "isHttpMetadata": false }, { - "$id": "24", + "$id": "18", "kind": "property", "name": "float32Property", "serializedName": "float32Property", "type": { - "$id": "25", + "$id": "19", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -281,7 +205,7 @@ "isHttpMetadata": false }, { - "$id": "26", + "$id": "20", "kind": "property", "name": "enumProperty", "serializedName": "enumProperty", @@ -317,16 +241,16 @@ "isHttpMetadata": false }, { - "$id": "27", + "$id": "21", "kind": "property", "name": "arrayProperty", "serializedName": "arrayProperty", "type": { - "$id": "28", + "$id": "22", "kind": "array", "name": "Array", "valueType": { - "$id": "29", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -349,22 +273,22 @@ "isHttpMetadata": false }, { - "$id": "30", + "$id": "24", "kind": "property", "name": "recordProperty", "serializedName": "recordProperty", "type": { - "$id": "31", + "$id": "25", "kind": "dict", "keyType": { - "$id": "32", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "33", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -388,10 +312,10 @@ ] }, { - "$ref": "21" + "$ref": "15" }, { - "$id": "34", + "$id": "28", "kind": "model", "name": "ActionResponse", "namespace": "_Specs_.Azure.Example.Basic", @@ -400,12 +324,12 @@ "decorators": [], "properties": [ { - "$id": "35", + "$id": "29", "kind": "property", "name": "stringProperty", "serializedName": "stringProperty", "type": { - "$id": "36", + "$id": "30", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -425,12 +349,12 @@ "isHttpMetadata": false }, { - "$id": "37", + "$id": "31", "kind": "property", "name": "modelProperty", "serializedName": "modelProperty", "type": { - "$ref": "21" + "$ref": "15" }, "optional": true, "readOnly": false, @@ -446,12 +370,12 @@ "isHttpMetadata": false }, { - "$id": "38", + "$id": "32", "kind": "property", "name": "arrayProperty", "serializedName": "arrayProperty", "type": { - "$ref": "28" + "$ref": "22" }, "optional": true, "readOnly": false, @@ -467,12 +391,12 @@ "isHttpMetadata": false }, { - "$id": "39", + "$id": "33", "kind": "property", "name": "recordProperty", "serializedName": "recordProperty", "type": { - "$ref": "31" + "$ref": "25" }, "optional": true, "readOnly": false, @@ -492,13 +416,13 @@ ], "clients": [ { - "$id": "40", + "$id": "34", "kind": "client", "name": "AzureExampleClient", "namespace": "AzureExampleBasicClient", "methods": [ { - "$id": "41", + "$id": "35", "kind": "basic", "name": "basicAction", "accessibility": "public", @@ -506,19 +430,19 @@ "2022-12-01-preview" ], "operation": { - "$id": "42", + "$id": "36", "name": "basicAction", "resourceName": "AzureExampleClient", "accessibility": "public", "parameters": [ { - "$id": "43", + "$id": "37", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "doc": "The API version to use for this operation.", "type": { - "$id": "44", + "$id": "38", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -528,7 +452,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "45", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -542,12 +466,12 @@ "readOnly": false }, { - "$id": "46", + "$id": "40", "kind": "query", "name": "queryParam", "serializedName": "query-param", "type": { - "$id": "47", + "$id": "41", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -562,12 +486,12 @@ "readOnly": false }, { - "$id": "48", + "$id": "42", "kind": "header", "name": "headerParam", "serializedName": "header-param", "type": { - "$id": "49", + "$id": "43", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -582,13 +506,13 @@ "crossLanguageDefinitionId": "AzureExampleBasicClient.AzureExampleClient.basicAction.headerParam" }, { - "$id": "50", + "$id": "44", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "13" + "$ref": "7" }, "isApiVersion": false, "optional": false, @@ -599,12 +523,12 @@ "crossLanguageDefinitionId": "AzureExampleBasicClient.AzureExampleClient.basicAction.contentType" }, { - "$id": "51", + "$id": "45", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "9" }, "isApiVersion": false, "optional": false, @@ -615,12 +539,12 @@ "crossLanguageDefinitionId": "AzureExampleBasicClient.AzureExampleClient.basicAction.accept" }, { - "$id": "52", + "$id": "46", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "17" + "$ref": "11" }, "isApiVersion": false, "contentTypes": [ @@ -640,7 +564,7 @@ 200 ], "bodyType": { - "$ref": "34" + "$ref": "28" }, "headers": [], "isErrorResponse": false, @@ -663,12 +587,12 @@ }, "parameters": [ { - "$id": "53", + "$id": "47", "kind": "method", "name": "queryParam", "serializedName": "query-param", "type": { - "$id": "54", + "$id": "48", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -684,12 +608,12 @@ "decorators": [] }, { - "$id": "55", + "$id": "49", "kind": "method", "name": "headerParam", "serializedName": "header-param", "type": { - "$id": "56", + "$id": "50", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -705,12 +629,12 @@ "decorators": [] }, { - "$id": "57", + "$id": "51", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "17" + "$ref": "11" }, "location": "Body", "isApiVersion": false, @@ -722,13 +646,13 @@ "decorators": [] }, { - "$id": "58", + "$id": "52", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "13" + "$ref": "7" }, "location": "Header", "isApiVersion": false, @@ -740,12 +664,12 @@ "decorators": [] }, { - "$id": "59", + "$id": "53", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "9" }, "location": "Header", "isApiVersion": false, @@ -759,7 +683,7 @@ ], "response": { "type": { - "$ref": "34" + "$ref": "28" } }, "isOverride": false, @@ -770,13 +694,13 @@ ], "parameters": [ { - "$id": "60", + "$id": "54", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "61", + "$id": "55", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -787,7 +711,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "62", + "$id": "56", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/tspCodeModel.json index e296045021da..75948dcccae7 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/tspCodeModel.json @@ -24,43 +24,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "SecondClientEnumType", - "isGeneratedName": false, - "namespace": "client.clientnamespace.second.sub", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "Second", - "value": "second", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Client.ClientNamespace.Second.Model.SecondClientEnumType", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "1" }, "decorators": [] } @@ -74,13 +38,13 @@ ], "constants": [ { - "$id": "7", + "$id": "4", "kind": "constant", "name": "getFirstContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -90,13 +54,13 @@ "decorators": [] }, { - "$id": "9", + "$id": "6", "kind": "constant", "name": "getSecondContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "10", + "$id": "7", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -108,7 +72,7 @@ ], "models": [ { - "$id": "11", + "$id": "8", "kind": "model", "name": "FirstClientResult", "namespace": "client.clientnamespace.first", @@ -117,12 +81,12 @@ "decorators": [], "properties": [ { - "$id": "12", + "$id": "9", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "13", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -144,7 +108,7 @@ ] }, { - "$id": "14", + "$id": "11", "kind": "model", "name": "SecondClientResult", "namespace": "client.clientnamespace.second", @@ -153,7 +117,7 @@ "decorators": [], "properties": [ { - "$id": "15", + "$id": "12", "kind": "property", "name": "type", "serializedName": "type", @@ -178,30 +142,30 @@ ], "clients": [ { - "$id": "16", + "$id": "13", "kind": "client", "name": "ClientNamespaceFirstClient", "namespace": "client.clientnamespace", "methods": [ { - "$id": "17", + "$id": "14", "kind": "basic", "name": "getFirst", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "18", + "$id": "15", "name": "getFirst", "resourceName": "ClientNamespaceFirstClient", "accessibility": "public", "parameters": [ { - "$id": "19", + "$id": "16", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "7" + "$ref": "4" }, "isApiVersion": false, "optional": false, @@ -218,7 +182,7 @@ 200 ], "bodyType": { - "$ref": "11" + "$ref": "8" }, "headers": [], "isErrorResponse": false, @@ -238,12 +202,12 @@ }, "parameters": [ { - "$id": "20", + "$id": "17", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "7" + "$ref": "4" }, "location": "Header", "isApiVersion": false, @@ -257,7 +221,7 @@ ], "response": { "type": { - "$ref": "11" + "$ref": "8" } }, "isOverride": false, @@ -268,13 +232,13 @@ ], "parameters": [ { - "$id": "21", + "$id": "18", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "22", + "$id": "19", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -285,7 +249,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "23", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -303,30 +267,30 @@ "apiVersions": [] }, { - "$id": "24", + "$id": "21", "kind": "client", "name": "ClientNamespaceSecondClient", "namespace": "client.clientnamespace.second", "methods": [ { - "$id": "25", + "$id": "22", "kind": "basic", "name": "getSecond", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "26", + "$id": "23", "name": "getSecond", "resourceName": "ClientNamespaceSecondClient", "accessibility": "public", "parameters": [ { - "$id": "27", + "$id": "24", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "9" + "$ref": "6" }, "isApiVersion": false, "optional": false, @@ -343,7 +307,7 @@ 200 ], "bodyType": { - "$ref": "14" + "$ref": "11" }, "headers": [], "isErrorResponse": false, @@ -363,12 +327,12 @@ }, "parameters": [ { - "$id": "28", + "$id": "25", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "9" + "$ref": "6" }, "location": "Header", "isApiVersion": false, @@ -382,7 +346,7 @@ ], "response": { "type": { - "$ref": "14" + "$ref": "11" } }, "isOverride": false, @@ -393,13 +357,13 @@ ], "parameters": [ { - "$id": "29", + "$id": "26", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "30", + "$id": "27", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -410,7 +374,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "31", + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/enum-conflict/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/enum-conflict/tspCodeModel.json index 451e0989a1dc..e4d4b2bd0f2b 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/enum-conflict/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/enum-conflict/tspCodeModel.json @@ -24,65 +24,13 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Status", - "isGeneratedName": false, - "namespace": "Client.Naming.EnumConflict.FirstNamespace", - "doc": "Status enum in first namespace", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "Active", - "value": "active", - "doc": "Active status", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "Inactive", - "value": "inactive", - "doc": "Inactive status", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Client.Naming.EnumConflict.FirstNamespace.Status", - "apiVersions": [], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "Active status", "decorators": [] }, { - "$id": "8", + "$id": "4", "kind": "enumvalue", "name": "Inactive", "value": "inactive", @@ -90,7 +38,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Inactive status", "decorators": [] @@ -104,12 +52,12 @@ "decorators": [] }, { - "$id": "9", + "$id": "5", "kind": "enum", "name": "SecondStatus", "crossLanguageDefinitionId": "Client.Naming.EnumConflict.SecondNamespace.Status", "valueType": { - "$id": "10", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -117,81 +65,29 @@ }, "values": [ { - "$id": "11", + "$id": "7", "kind": "enumvalue", "name": "Running", "value": "running", "valueType": { - "$ref": "10" + "$ref": "6" }, "enumType": { - "$id": "12", - "kind": "enum", - "decorators": [], - "name": "SecondStatus", - "isGeneratedName": false, - "namespace": "Client.Naming.EnumConflict.SecondNamespace", - "doc": "Status enum in second namespace", - "valueType": { - "$id": "13", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "14", - "kind": "enumvalue", - "decorators": [], - "name": "Running", - "value": "running", - "doc": "Running status", - "enumType": { - "$ref": "12" - }, - "valueType": { - "$ref": "13" - } - }, - { - "$id": "15", - "kind": "enumvalue", - "decorators": [], - "name": "Stopped", - "value": "stopped", - "doc": "Stopped status", - "enumType": { - "$ref": "12" - }, - "valueType": { - "$ref": "13" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Client.Naming.EnumConflict.SecondNamespace.Status", - "apiVersions": [], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "5" }, "doc": "Running status", "decorators": [] }, { - "$id": "16", + "$id": "8", "kind": "enumvalue", "name": "Stopped", "value": "stopped", "valueType": { - "$ref": "10" + "$ref": "6" }, "enumType": { - "$ref": "12" + "$ref": "5" }, "doc": "Stopped status", "decorators": [] @@ -207,13 +103,13 @@ ], "constants": [ { - "$id": "17", + "$id": "9", "kind": "constant", "name": "firstContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "18", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -223,13 +119,13 @@ "decorators": [] }, { - "$id": "19", + "$id": "11", "kind": "constant", "name": "firstContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "20", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -239,13 +135,13 @@ "decorators": [] }, { - "$id": "21", + "$id": "13", "kind": "constant", "name": "secondContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "22", + "$id": "14", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -255,13 +151,13 @@ "decorators": [] }, { - "$id": "23", + "$id": "15", "kind": "constant", "name": "secondContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "24", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -273,7 +169,7 @@ ], "models": [ { - "$id": "25", + "$id": "17", "kind": "model", "name": "FirstModel", "namespace": "Client.Naming.EnumConflict.FirstNamespace", @@ -282,7 +178,7 @@ "decorators": [], "properties": [ { - "$id": "26", + "$id": "18", "kind": "property", "name": "status", "serializedName": "status", @@ -304,13 +200,13 @@ "isHttpMetadata": false }, { - "$id": "27", + "$id": "19", "kind": "property", "name": "name", "serializedName": "name", "doc": "Name of the item", "type": { - "$id": "28", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -332,7 +228,7 @@ ] }, { - "$id": "29", + "$id": "21", "kind": "model", "name": "SecondModel", "namespace": "Client.Naming.EnumConflict.SecondNamespace", @@ -341,13 +237,13 @@ "decorators": [], "properties": [ { - "$id": "30", + "$id": "22", "kind": "property", "name": "status", "serializedName": "status", "doc": "Status from second namespace", "type": { - "$ref": "9" + "$ref": "5" }, "optional": false, "readOnly": false, @@ -363,13 +259,13 @@ "isHttpMetadata": false }, { - "$id": "31", + "$id": "23", "kind": "property", "name": "description", "serializedName": "description", "doc": "Description of the item", "type": { - "$id": "32", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -393,7 +289,7 @@ ], "clients": [ { - "$id": "33", + "$id": "25", "kind": "client", "name": "EnumConflictClient", "namespace": "Client.Naming.EnumConflict", @@ -401,13 +297,13 @@ "methods": [], "parameters": [ { - "$id": "34", + "$id": "26", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "35", + "$id": "27", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -418,7 +314,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "36", + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -436,33 +332,33 @@ "apiVersions": [], "children": [ { - "$id": "37", + "$id": "29", "kind": "client", "name": "FirstOperations", "namespace": "Client.Naming.EnumConflict", "methods": [ { - "$id": "38", + "$id": "30", "kind": "basic", "name": "first", "accessibility": "public", "apiVersions": [], "doc": "Operation using first namespace Status enum", "operation": { - "$id": "39", + "$id": "31", "name": "first", "resourceName": "FirstOperations", "doc": "Operation using first namespace Status enum", "accessibility": "public", "parameters": [ { - "$id": "40", + "$id": "32", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "17" + "$ref": "9" }, "isApiVersion": false, "optional": false, @@ -473,12 +369,12 @@ "crossLanguageDefinitionId": "Client.Naming.EnumConflict.FirstOperations.first.contentType" }, { - "$id": "41", + "$id": "33", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "11" }, "isApiVersion": false, "optional": false, @@ -489,12 +385,12 @@ "crossLanguageDefinitionId": "Client.Naming.EnumConflict.FirstOperations.first.accept" }, { - "$id": "42", + "$id": "34", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "25" + "$ref": "17" }, "isApiVersion": false, "contentTypes": [ @@ -514,7 +410,7 @@ 200 ], "bodyType": { - "$ref": "25" + "$ref": "17" }, "headers": [], "isErrorResponse": false, @@ -537,12 +433,12 @@ }, "parameters": [ { - "$id": "43", + "$id": "35", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "25" + "$ref": "17" }, "location": "Body", "isApiVersion": false, @@ -554,13 +450,13 @@ "decorators": [] }, { - "$id": "44", + "$id": "36", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "17" + "$ref": "9" }, "location": "Header", "isApiVersion": false, @@ -572,12 +468,12 @@ "decorators": [] }, { - "$id": "45", + "$id": "37", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "11" }, "location": "Header", "isApiVersion": false, @@ -591,7 +487,7 @@ ], "response": { "type": { - "$ref": "25" + "$ref": "17" } }, "isOverride": false, @@ -602,13 +498,13 @@ ], "parameters": [ { - "$id": "46", + "$id": "38", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "47", + "$id": "39", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -619,7 +515,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "48", + "$id": "40", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -636,37 +532,37 @@ "crossLanguageDefinitionId": "Client.Naming.EnumConflict.FirstOperations", "apiVersions": [], "parent": { - "$ref": "33" + "$ref": "25" } }, { - "$id": "49", + "$id": "41", "kind": "client", "name": "SecondOperations", "namespace": "Client.Naming.EnumConflict", "methods": [ { - "$id": "50", + "$id": "42", "kind": "basic", "name": "second", "accessibility": "public", "apiVersions": [], "doc": "Operation using second namespace Status enum", "operation": { - "$id": "51", + "$id": "43", "name": "second", "resourceName": "SecondOperations", "doc": "Operation using second namespace Status enum", "accessibility": "public", "parameters": [ { - "$id": "52", + "$id": "44", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "21" + "$ref": "13" }, "isApiVersion": false, "optional": false, @@ -677,12 +573,12 @@ "crossLanguageDefinitionId": "Client.Naming.EnumConflict.SecondOperations.second.contentType" }, { - "$id": "53", + "$id": "45", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "23" + "$ref": "15" }, "isApiVersion": false, "optional": false, @@ -693,12 +589,12 @@ "crossLanguageDefinitionId": "Client.Naming.EnumConflict.SecondOperations.second.accept" }, { - "$id": "54", + "$id": "46", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "29" + "$ref": "21" }, "isApiVersion": false, "contentTypes": [ @@ -718,7 +614,7 @@ 200 ], "bodyType": { - "$ref": "29" + "$ref": "21" }, "headers": [], "isErrorResponse": false, @@ -741,12 +637,12 @@ }, "parameters": [ { - "$id": "55", + "$id": "47", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "29" + "$ref": "21" }, "location": "Body", "isApiVersion": false, @@ -758,13 +654,13 @@ "decorators": [] }, { - "$id": "56", + "$id": "48", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "21" + "$ref": "13" }, "location": "Header", "isApiVersion": false, @@ -776,12 +672,12 @@ "decorators": [] }, { - "$id": "57", + "$id": "49", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "23" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -795,7 +691,7 @@ ], "response": { "type": { - "$ref": "29" + "$ref": "21" } }, "isOverride": false, @@ -806,13 +702,13 @@ ], "parameters": [ { - "$id": "58", + "$id": "50", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "59", + "$id": "51", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -823,7 +719,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "60", + "$id": "52", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -840,7 +736,7 @@ "crossLanguageDefinitionId": "Client.Naming.EnumConflict.SecondOperations", "apiVersions": [], "parent": { - "$ref": "33" + "$ref": "25" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/tspCodeModel.json index 794c74e38970..fb7043b920e6 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/tspCodeModel.json @@ -24,43 +24,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "ClientExtensibleEnum", - "isGeneratedName": false, - "namespace": "Client.Naming.UnionEnum", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "EnumValue1", - "value": "value1", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Input,Json", - "access": "public", - "crossLanguageDefinitionId": "Client.Naming.UnionEnum.ServerExtensibleEnum", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "1" }, "decorators": [] } @@ -72,12 +36,12 @@ "decorators": [] }, { - "$id": "7", + "$id": "4", "kind": "enum", "name": "ExtensibleEnum", "crossLanguageDefinitionId": "Client.Naming.UnionEnum.ExtensibleEnum", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -85,77 +49,28 @@ }, "values": [ { - "$id": "9", + "$id": "6", "kind": "enumvalue", "name": "ClientEnumValue1", "value": "value1", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$id": "10", - "kind": "enum", - "decorators": [], - "name": "ExtensibleEnum", - "isGeneratedName": false, - "namespace": "Client.Naming.UnionEnum", - "valueType": { - "$id": "11", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "12", - "kind": "enumvalue", - "decorators": [], - "name": "ClientEnumValue1", - "value": "value1", - "valueType": { - "$ref": "11" - }, - "enumType": { - "$ref": "10" - } - }, - { - "$id": "13", - "kind": "enumvalue", - "decorators": [], - "name": "ClientEnumValue2", - "value": "value2", - "valueType": { - "$ref": "11" - }, - "enumType": { - "$ref": "10" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Input,Json", - "access": "public", - "crossLanguageDefinitionId": "Client.Naming.UnionEnum.ExtensibleEnum", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "4" }, "decorators": [] }, { - "$id": "14", + "$id": "7", "kind": "enumvalue", "name": "ClientEnumValue2", "value": "value2", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$ref": "10" + "$ref": "4" }, "decorators": [] } @@ -169,13 +84,13 @@ ], "constants": [ { - "$id": "15", + "$id": "8", "kind": "constant", "name": "clientContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "16", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -185,13 +100,13 @@ "decorators": [] }, { - "$id": "17", + "$id": "10", "kind": "constant", "name": "languageContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "18", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -201,13 +116,13 @@ "decorators": [] }, { - "$id": "19", + "$id": "12", "kind": "constant", "name": "compatibleWithEncodedNameContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "20", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -217,13 +132,13 @@ "decorators": [] }, { - "$id": "21", + "$id": "14", "kind": "constant", "name": "clientContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "22", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -233,13 +148,13 @@ "decorators": [] }, { - "$id": "23", + "$id": "16", "kind": "constant", "name": "languageContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "24", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -249,13 +164,13 @@ "decorators": [] }, { - "$id": "25", + "$id": "18", "kind": "constant", "name": "UnionEnumNameRequestContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "26", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -265,13 +180,13 @@ "decorators": [] }, { - "$id": "27", + "$id": "20", "kind": "constant", "name": "UnionEnumNameRequestContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "28", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -281,13 +196,13 @@ "decorators": [] }, { - "$id": "29", + "$id": "22", "kind": "constant", "name": "UnionEnumNameRequestContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "30", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -297,13 +212,13 @@ "decorators": [] }, { - "$id": "31", + "$id": "24", "kind": "constant", "name": "UnionEnumNameRequestContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "32", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -315,7 +230,7 @@ ], "models": [ { - "$id": "33", + "$id": "26", "kind": "model", "name": "ClientNameModel", "namespace": "Client.Naming.Property", @@ -324,13 +239,13 @@ "decorators": [], "properties": [ { - "$id": "34", + "$id": "27", "kind": "property", "name": "clientName", "serializedName": "defaultName", "doc": "Pass in true", "type": { - "$id": "35", + "$id": "28", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -352,7 +267,7 @@ ] }, { - "$id": "36", + "$id": "29", "kind": "model", "name": "LanguageClientNameModel", "namespace": "Client.Naming.Property", @@ -361,13 +276,13 @@ "decorators": [], "properties": [ { - "$id": "37", + "$id": "30", "kind": "property", "name": "CSName", "serializedName": "defaultName", "doc": "Pass in true", "type": { - "$id": "38", + "$id": "31", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -389,7 +304,7 @@ ] }, { - "$id": "39", + "$id": "32", "kind": "model", "name": "ClientNameAndJsonEncodedNameModel", "namespace": "Client.Naming.Property", @@ -398,13 +313,13 @@ "decorators": [], "properties": [ { - "$id": "40", + "$id": "33", "kind": "property", "name": "clientName", "serializedName": "wireName", "doc": "Pass in true", "type": { - "$id": "41", + "$id": "34", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -426,7 +341,7 @@ ] }, { - "$id": "42", + "$id": "35", "kind": "model", "name": "ClientModel", "namespace": "Client.Naming.Model", @@ -435,13 +350,13 @@ "decorators": [], "properties": [ { - "$id": "43", + "$id": "36", "kind": "property", "name": "defaultName", "serializedName": "defaultName", "doc": "Pass in true", "type": { - "$id": "44", + "$id": "37", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -463,7 +378,7 @@ ] }, { - "$id": "45", + "$id": "38", "kind": "model", "name": "CSModel", "namespace": "Client.Naming.Model", @@ -472,13 +387,13 @@ "decorators": [], "properties": [ { - "$id": "46", + "$id": "39", "kind": "property", "name": "defaultName", "serializedName": "defaultName", "doc": "Pass in true", "type": { - "$id": "47", + "$id": "40", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -502,20 +417,20 @@ ], "clients": [ { - "$id": "48", + "$id": "41", "kind": "client", "name": "NamingClient", "namespace": "Client.Naming", "doc": "Describe changing names of types in a client with `@clientName`", "methods": [ { - "$id": "49", + "$id": "42", "kind": "basic", "name": "clientName", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "50", + "$id": "43", "name": "clientName", "resourceName": "Naming", "accessibility": "public", @@ -546,24 +461,24 @@ "crossLanguageDefinitionId": "Client.Naming.operation" }, { - "$id": "51", + "$id": "44", "kind": "basic", "name": "parameter", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "52", + "$id": "45", "name": "parameter", "resourceName": "Naming", "accessibility": "public", "parameters": [ { - "$id": "53", + "$id": "46", "kind": "query", "name": "clientName", "serializedName": "defaultName", "type": { - "$id": "54", + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -598,12 +513,12 @@ }, "parameters": [ { - "$id": "55", + "$id": "48", "kind": "method", "name": "clientName", "serializedName": "defaultName", "type": { - "$id": "56", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -626,25 +541,25 @@ "crossLanguageDefinitionId": "Client.Naming.parameter" }, { - "$id": "57", + "$id": "50", "kind": "basic", "name": "client", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "58", + "$id": "51", "name": "client", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "59", + "$id": "52", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "15" + "$ref": "8" }, "isApiVersion": false, "optional": false, @@ -655,12 +570,12 @@ "crossLanguageDefinitionId": "Client.Naming.Property.client.contentType" }, { - "$id": "60", + "$id": "53", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "33" + "$ref": "26" }, "isApiVersion": false, "contentTypes": [ @@ -697,12 +612,12 @@ }, "parameters": [ { - "$id": "61", + "$id": "54", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "33" + "$ref": "26" }, "location": "Body", "isApiVersion": false, @@ -714,13 +629,13 @@ "decorators": [] }, { - "$id": "62", + "$id": "55", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "15" + "$ref": "8" }, "location": "Header", "isApiVersion": false, @@ -739,25 +654,25 @@ "crossLanguageDefinitionId": "Client.Naming.Property.client" }, { - "$id": "63", + "$id": "56", "kind": "basic", "name": "language", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "64", + "$id": "57", "name": "language", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "65", + "$id": "58", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "17" + "$ref": "10" }, "isApiVersion": false, "optional": false, @@ -768,12 +683,12 @@ "crossLanguageDefinitionId": "Client.Naming.Property.language.contentType" }, { - "$id": "66", + "$id": "59", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "36" + "$ref": "29" }, "isApiVersion": false, "contentTypes": [ @@ -810,12 +725,12 @@ }, "parameters": [ { - "$id": "67", + "$id": "60", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "36" + "$ref": "29" }, "location": "Body", "isApiVersion": false, @@ -827,13 +742,13 @@ "decorators": [] }, { - "$id": "68", + "$id": "61", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "17" + "$ref": "10" }, "location": "Header", "isApiVersion": false, @@ -852,25 +767,25 @@ "crossLanguageDefinitionId": "Client.Naming.Property.language" }, { - "$id": "69", + "$id": "62", "kind": "basic", "name": "compatibleWithEncodedName", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "70", + "$id": "63", "name": "compatibleWithEncodedName", "resourceName": "Property", "accessibility": "public", "parameters": [ { - "$id": "71", + "$id": "64", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "19" + "$ref": "12" }, "isApiVersion": false, "optional": false, @@ -881,12 +796,12 @@ "crossLanguageDefinitionId": "Client.Naming.Property.compatibleWithEncodedName.contentType" }, { - "$id": "72", + "$id": "65", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "39" + "$ref": "32" }, "isApiVersion": false, "contentTypes": [ @@ -923,12 +838,12 @@ }, "parameters": [ { - "$id": "73", + "$id": "66", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "39" + "$ref": "32" }, "location": "Body", "isApiVersion": false, @@ -940,13 +855,13 @@ "decorators": [] }, { - "$id": "74", + "$id": "67", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "19" + "$ref": "12" }, "location": "Header", "isApiVersion": false, @@ -965,24 +880,24 @@ "crossLanguageDefinitionId": "Client.Naming.Property.compatibleWithEncodedName" }, { - "$id": "75", + "$id": "68", "kind": "basic", "name": "request", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "76", + "$id": "69", "name": "request", "resourceName": "Header", "accessibility": "public", "parameters": [ { - "$id": "77", + "$id": "70", "kind": "header", "name": "clientName", "serializedName": "default-name", "type": { - "$id": "78", + "$id": "71", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1017,12 +932,12 @@ }, "parameters": [ { - "$id": "79", + "$id": "72", "kind": "method", "name": "clientName", "serializedName": "default-name", "type": { - "$id": "80", + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1045,13 +960,13 @@ "crossLanguageDefinitionId": "Client.Naming.Header.request" }, { - "$id": "81", + "$id": "74", "kind": "basic", "name": "response", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "82", + "$id": "75", "name": "response", "resourceName": "Header", "accessibility": "public", @@ -1066,7 +981,7 @@ "name": "default-name", "nameInResponse": "default-name", "type": { - "$id": "83", + "$id": "76", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1096,13 +1011,13 @@ ], "parameters": [ { - "$id": "84", + "$id": "77", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "85", + "$id": "78", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1113,7 +1028,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "86", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1131,31 +1046,31 @@ "apiVersions": [], "children": [ { - "$id": "87", + "$id": "80", "kind": "client", "name": "ModelClient", "namespace": "Client.Naming.Model", "methods": [ { - "$id": "88", + "$id": "81", "kind": "basic", "name": "client", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "89", + "$id": "82", "name": "client", "resourceName": "Model", "accessibility": "public", "parameters": [ { - "$id": "90", + "$id": "83", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "21" + "$ref": "14" }, "isApiVersion": false, "optional": false, @@ -1166,12 +1081,12 @@ "crossLanguageDefinitionId": "Client.Naming.Model.client.contentType" }, { - "$id": "91", + "$id": "84", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "42" + "$ref": "35" }, "isApiVersion": false, "contentTypes": [ @@ -1208,12 +1123,12 @@ }, "parameters": [ { - "$id": "92", + "$id": "85", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "42" + "$ref": "35" }, "location": "Body", "isApiVersion": false, @@ -1225,13 +1140,13 @@ "decorators": [] }, { - "$id": "93", + "$id": "86", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "21" + "$ref": "14" }, "location": "Header", "isApiVersion": false, @@ -1250,25 +1165,25 @@ "crossLanguageDefinitionId": "Client.Naming.Model.client" }, { - "$id": "94", + "$id": "87", "kind": "basic", "name": "language", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "95", + "$id": "88", "name": "language", "resourceName": "Model", "accessibility": "public", "parameters": [ { - "$id": "96", + "$id": "89", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "23" + "$ref": "16" }, "isApiVersion": false, "optional": false, @@ -1279,12 +1194,12 @@ "crossLanguageDefinitionId": "Client.Naming.Model.language.contentType" }, { - "$id": "97", + "$id": "90", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "45" + "$ref": "38" }, "isApiVersion": false, "contentTypes": [ @@ -1321,12 +1236,12 @@ }, "parameters": [ { - "$id": "98", + "$id": "91", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "45" + "$ref": "38" }, "location": "Body", "isApiVersion": false, @@ -1338,13 +1253,13 @@ "decorators": [] }, { - "$id": "99", + "$id": "92", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "23" + "$ref": "16" }, "location": "Header", "isApiVersion": false, @@ -1365,13 +1280,13 @@ ], "parameters": [ { - "$id": "100", + "$id": "93", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "101", + "$id": "94", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1382,7 +1297,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "102", + "$id": "95", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1399,34 +1314,34 @@ "crossLanguageDefinitionId": "Client.Naming.Model", "apiVersions": [], "parent": { - "$ref": "48" + "$ref": "41" } }, { - "$id": "103", + "$id": "96", "kind": "client", "name": "UnionEnum", "namespace": "Client.Naming.UnionEnum", "methods": [ { - "$id": "104", + "$id": "97", "kind": "basic", "name": "unionEnumName", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "105", + "$id": "98", "name": "unionEnumName", "resourceName": "UnionEnum", "accessibility": "public", "parameters": [ { - "$id": "106", + "$id": "99", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "25" + "$ref": "18" }, "isApiVersion": false, "optional": false, @@ -1437,7 +1352,7 @@ "crossLanguageDefinitionId": "Client.Naming.UnionEnum.unionEnumName.contentType" }, { - "$id": "107", + "$id": "100", "kind": "body", "name": "body", "serializedName": "body", @@ -1479,12 +1394,12 @@ }, "parameters": [ { - "$id": "108", + "$id": "101", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "27" + "$ref": "20" }, "location": "Header", "isApiVersion": false, @@ -1496,7 +1411,7 @@ "decorators": [] }, { - "$id": "109", + "$id": "102", "kind": "method", "name": "body", "serializedName": "body", @@ -1520,24 +1435,24 @@ "crossLanguageDefinitionId": "Client.Naming.UnionEnum.unionEnumName" }, { - "$id": "110", + "$id": "103", "kind": "basic", "name": "unionEnumMemberName", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "111", + "$id": "104", "name": "unionEnumMemberName", "resourceName": "UnionEnum", "accessibility": "public", "parameters": [ { - "$id": "112", + "$id": "105", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "29" + "$ref": "22" }, "isApiVersion": false, "optional": false, @@ -1548,12 +1463,12 @@ "crossLanguageDefinitionId": "Client.Naming.UnionEnum.unionEnumMemberName.contentType" }, { - "$id": "113", + "$id": "106", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "7" + "$ref": "4" }, "isApiVersion": false, "contentTypes": [ @@ -1590,12 +1505,12 @@ }, "parameters": [ { - "$id": "114", + "$id": "107", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "31" + "$ref": "24" }, "location": "Header", "isApiVersion": false, @@ -1607,12 +1522,12 @@ "decorators": [] }, { - "$id": "115", + "$id": "108", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "7" + "$ref": "4" }, "location": "Body", "isApiVersion": false, @@ -1633,13 +1548,13 @@ ], "parameters": [ { - "$id": "116", + "$id": "109", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "117", + "$id": "110", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1650,7 +1565,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "118", + "$id": "111", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1667,7 +1582,7 @@ "crossLanguageDefinitionId": "Client.Naming.UnionEnum", "apiVersions": [], "parent": { - "$ref": "48" + "$ref": "41" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json index adf81a93ef22..bd0af9b2b5c2 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json @@ -24,100 +24,12 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "ClientType", - "isGeneratedName": false, - "namespace": "Client.Structure.Service", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "Default", - "value": "default", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "MultiClient", - "value": "multi-client", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "8", - "kind": "enumvalue", - "decorators": [], - "name": "RenamedOperation", - "value": "renamed-operation", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "9", - "kind": "enumvalue", - "decorators": [], - "name": "TwoOperationGroup", - "value": "two-operation-group", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "10", - "kind": "enumvalue", - "decorators": [], - "name": "ClientOperationGroup", - "value": "client-operation-group", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input", - "access": "public", - "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", - "apiVersions": [], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "decorators": [] }, { - "$id": "11", + "$id": "4", "kind": "enumvalue", "name": "MultiClient", "value": "multi-client", @@ -125,12 +37,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "12", + "$id": "5", "kind": "enumvalue", "name": "RenamedOperation", "value": "renamed-operation", @@ -138,12 +50,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "13", + "$id": "6", "kind": "enumvalue", "name": "TwoOperationGroup", "value": "two-operation-group", @@ -151,12 +63,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "14", + "$id": "7", "kind": "enumvalue", "name": "ClientOperationGroup", "value": "client-operation-group", @@ -164,7 +76,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] } @@ -180,19 +92,19 @@ "models": [], "clients": [ { - "$id": "15", + "$id": "8", "kind": "client", "name": "FirstClient", "namespace": "Client.Structure.ClientOperationGroup", "methods": [ { - "$id": "16", + "$id": "9", "kind": "basic", "name": "one", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "17", + "$id": "10", "name": "one", "resourceName": "ClientOperationGroup", "accessibility": "public", @@ -225,13 +137,13 @@ ], "parameters": [ { - "$id": "18", + "$id": "11", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "19", + "$id": "12", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -246,7 +158,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "20", + "$id": "13", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -269,19 +181,19 @@ "apiVersions": [], "children": [ { - "$id": "21", + "$id": "14", "kind": "client", "name": "Group3", "namespace": "Client.Structure.ClientOperationGroup", "methods": [ { - "$id": "22", + "$id": "15", "kind": "basic", "name": "two", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "23", + "$id": "16", "name": "two", "resourceName": "Group3", "accessibility": "public", @@ -312,13 +224,13 @@ "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3.two" }, { - "$id": "24", + "$id": "17", "kind": "basic", "name": "three", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "25", + "$id": "18", "name": "three", "resourceName": "Group3", "accessibility": "public", @@ -351,13 +263,13 @@ ], "parameters": [ { - "$id": "26", + "$id": "19", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "27", + "$id": "20", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -372,7 +284,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "28", + "$id": "21", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -394,23 +306,23 @@ "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3", "apiVersions": [], "parent": { - "$ref": "15" + "$ref": "8" } }, { - "$id": "29", + "$id": "22", "kind": "client", "name": "Group4", "namespace": "Client.Structure.ClientOperationGroup", "methods": [ { - "$id": "30", + "$id": "23", "kind": "basic", "name": "four", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "31", + "$id": "24", "name": "four", "resourceName": "Group4", "accessibility": "public", @@ -443,13 +355,13 @@ ], "parameters": [ { - "$id": "32", + "$id": "25", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "33", + "$id": "26", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -464,7 +376,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "34", + "$id": "27", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -486,25 +398,25 @@ "crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4", "apiVersions": [], "parent": { - "$ref": "15" + "$ref": "8" } } ] }, { - "$id": "35", + "$id": "28", "kind": "client", "name": "SubNamespace.SecondClient", "namespace": "Client.Structure.AnotherClientOperationGroup", "methods": [ { - "$id": "36", + "$id": "29", "kind": "basic", "name": "five", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "37", + "$id": "30", "name": "five", "resourceName": "AnotherClientOperationGroup", "accessibility": "public", @@ -537,13 +449,13 @@ ], "parameters": [ { - "$id": "38", + "$id": "31", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "39", + "$id": "32", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -558,7 +470,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "40", + "$id": "33", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -581,19 +493,19 @@ "apiVersions": [], "children": [ { - "$id": "41", + "$id": "34", "kind": "client", "name": "Group5", "namespace": "Client.Structure.AnotherClientOperationGroup", "methods": [ { - "$id": "42", + "$id": "35", "kind": "basic", "name": "six", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "43", + "$id": "36", "name": "six", "resourceName": "Group5", "accessibility": "public", @@ -626,13 +538,13 @@ ], "parameters": [ { - "$id": "44", + "$id": "37", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "45", + "$id": "38", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -647,7 +559,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "46", + "$id": "39", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -669,7 +581,7 @@ "crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5", "apiVersions": [], "parent": { - "$ref": "35" + "$ref": "28" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json index 8dcd7da4491c..a9041e5fa9b0 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json @@ -24,100 +24,12 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "ClientType", - "isGeneratedName": false, - "namespace": "Client.Structure.Service", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "Default", - "value": "default", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "MultiClient", - "value": "multi-client", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "8", - "kind": "enumvalue", - "decorators": [], - "name": "RenamedOperation", - "value": "renamed-operation", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "9", - "kind": "enumvalue", - "decorators": [], - "name": "TwoOperationGroup", - "value": "two-operation-group", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "10", - "kind": "enumvalue", - "decorators": [], - "name": "ClientOperationGroup", - "value": "client-operation-group", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input", - "access": "public", - "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", - "apiVersions": [], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "decorators": [] }, { - "$id": "11", + "$id": "4", "kind": "enumvalue", "name": "MultiClient", "value": "multi-client", @@ -125,12 +37,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "12", + "$id": "5", "kind": "enumvalue", "name": "RenamedOperation", "value": "renamed-operation", @@ -138,12 +50,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "13", + "$id": "6", "kind": "enumvalue", "name": "TwoOperationGroup", "value": "two-operation-group", @@ -151,12 +63,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "14", + "$id": "7", "kind": "enumvalue", "name": "ClientOperationGroup", "value": "client-operation-group", @@ -164,7 +76,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] } @@ -180,20 +92,20 @@ "models": [], "clients": [ { - "$id": "15", + "$id": "8", "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.", "methods": [ { - "$id": "16", + "$id": "9", "kind": "basic", "name": "one", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "17", + "$id": "10", "name": "one", "resourceName": "Service", "accessibility": "public", @@ -224,13 +136,13 @@ "crossLanguageDefinitionId": "Client.Structure.Service.one" }, { - "$id": "18", + "$id": "11", "kind": "basic", "name": "two", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "19", + "$id": "12", "name": "two", "resourceName": "Service", "accessibility": "public", @@ -263,13 +175,13 @@ ], "parameters": [ { - "$id": "20", + "$id": "13", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "21", + "$id": "14", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -284,7 +196,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "22", + "$id": "15", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -307,20 +219,20 @@ "apiVersions": [], "children": [ { - "$id": "23", + "$id": "16", "kind": "client", "name": "Baz", "namespace": "Client.Structure.Service.Baz", "methods": [], "parameters": [ { - "$id": "24", + "$id": "17", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "25", + "$id": "18", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -335,7 +247,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "26", + "$id": "19", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -357,23 +269,23 @@ "crossLanguageDefinitionId": "Client.Structure.Service.Baz", "apiVersions": [], "parent": { - "$ref": "15" + "$ref": "8" }, "children": [ { - "$id": "27", + "$id": "20", "kind": "client", "name": "Foo", "namespace": "Client.Structure.Service.Baz", "methods": [ { - "$id": "28", + "$id": "21", "kind": "basic", "name": "seven", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "29", + "$id": "22", "name": "seven", "resourceName": "Foo", "accessibility": "public", @@ -406,13 +318,13 @@ ], "parameters": [ { - "$id": "30", + "$id": "23", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "31", + "$id": "24", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -427,7 +339,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "32", + "$id": "25", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -449,25 +361,25 @@ "crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo", "apiVersions": [], "parent": { - "$ref": "23" + "$ref": "16" } } ] }, { - "$id": "33", + "$id": "26", "kind": "client", "name": "Qux", "namespace": "Client.Structure.Service.Qux", "methods": [ { - "$id": "34", + "$id": "27", "kind": "basic", "name": "eight", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "35", + "$id": "28", "name": "eight", "resourceName": "Qux", "accessibility": "public", @@ -500,13 +412,13 @@ ], "parameters": [ { - "$id": "36", + "$id": "29", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "37", + "$id": "30", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -521,7 +433,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "38", + "$id": "31", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -543,23 +455,23 @@ "crossLanguageDefinitionId": "Client.Structure.Service.Qux", "apiVersions": [], "parent": { - "$ref": "15" + "$ref": "8" }, "children": [ { - "$id": "39", + "$id": "32", "kind": "client", "name": "Bar", "namespace": "Client.Structure.Service.Qux", "methods": [ { - "$id": "40", + "$id": "33", "kind": "basic", "name": "nine", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "41", + "$id": "34", "name": "nine", "resourceName": "Bar", "accessibility": "public", @@ -592,13 +504,13 @@ ], "parameters": [ { - "$id": "42", + "$id": "35", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "43", + "$id": "36", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -613,7 +525,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "44", + "$id": "37", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -635,25 +547,25 @@ "crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar", "apiVersions": [], "parent": { - "$ref": "33" + "$ref": "26" } } ] }, { - "$id": "45", + "$id": "38", "kind": "client", "name": "Foo", "namespace": "Client.Structure.Service", "methods": [ { - "$id": "46", + "$id": "39", "kind": "basic", "name": "three", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "47", + "$id": "40", "name": "three", "resourceName": "Foo", "accessibility": "public", @@ -684,13 +596,13 @@ "crossLanguageDefinitionId": "Client.Structure.Service.Foo.three" }, { - "$id": "48", + "$id": "41", "kind": "basic", "name": "four", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "49", + "$id": "42", "name": "four", "resourceName": "Foo", "accessibility": "public", @@ -723,13 +635,13 @@ ], "parameters": [ { - "$id": "50", + "$id": "43", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "51", + "$id": "44", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -744,7 +656,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "52", + "$id": "45", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -766,23 +678,23 @@ "crossLanguageDefinitionId": "Client.Structure.Service.Foo", "apiVersions": [], "parent": { - "$ref": "15" + "$ref": "8" } }, { - "$id": "53", + "$id": "46", "kind": "client", "name": "Bar", "namespace": "Client.Structure.Service", "methods": [ { - "$id": "54", + "$id": "47", "kind": "basic", "name": "five", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "55", + "$id": "48", "name": "five", "resourceName": "Bar", "accessibility": "public", @@ -813,13 +725,13 @@ "crossLanguageDefinitionId": "Client.Structure.Service.Bar.five" }, { - "$id": "56", + "$id": "49", "kind": "basic", "name": "six", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "57", + "$id": "50", "name": "six", "resourceName": "Bar", "accessibility": "public", @@ -852,13 +764,13 @@ ], "parameters": [ { - "$id": "58", + "$id": "51", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "59", + "$id": "52", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -873,7 +785,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "60", + "$id": "53", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -895,7 +807,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.Bar", "apiVersions": [], "parent": { - "$ref": "15" + "$ref": "8" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json index 6e15b213dbb5..a5a8f52dfa22 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json @@ -24,100 +24,12 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "ClientType", - "isGeneratedName": false, - "namespace": "Client.Structure.Service", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "Default", - "value": "default", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "MultiClient", - "value": "multi-client", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "8", - "kind": "enumvalue", - "decorators": [], - "name": "RenamedOperation", - "value": "renamed-operation", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "9", - "kind": "enumvalue", - "decorators": [], - "name": "TwoOperationGroup", - "value": "two-operation-group", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "10", - "kind": "enumvalue", - "decorators": [], - "name": "ClientOperationGroup", - "value": "client-operation-group", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input", - "access": "public", - "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", - "apiVersions": [], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "decorators": [] }, { - "$id": "11", + "$id": "4", "kind": "enumvalue", "name": "MultiClient", "value": "multi-client", @@ -125,12 +37,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "12", + "$id": "5", "kind": "enumvalue", "name": "RenamedOperation", "value": "renamed-operation", @@ -138,12 +50,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "13", + "$id": "6", "kind": "enumvalue", "name": "TwoOperationGroup", "value": "two-operation-group", @@ -151,12 +63,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "14", + "$id": "7", "kind": "enumvalue", "name": "ClientOperationGroup", "value": "client-operation-group", @@ -164,7 +76,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] } @@ -180,19 +92,19 @@ "models": [], "clients": [ { - "$id": "15", + "$id": "8", "kind": "client", "name": "ClientAClient", "namespace": "Client.Structure.MultiClient", "methods": [ { - "$id": "16", + "$id": "9", "kind": "basic", "name": "renamedOne", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "17", + "$id": "10", "name": "renamedOne", "resourceName": "ClientA", "accessibility": "public", @@ -223,13 +135,13 @@ "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedOne" }, { - "$id": "18", + "$id": "11", "kind": "basic", "name": "renamedThree", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "19", + "$id": "12", "name": "renamedThree", "resourceName": "ClientA", "accessibility": "public", @@ -260,13 +172,13 @@ "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA.renamedThree" }, { - "$id": "20", + "$id": "13", "kind": "basic", "name": "renamedFive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "21", + "$id": "14", "name": "renamedFive", "resourceName": "ClientA", "accessibility": "public", @@ -299,13 +211,13 @@ ], "parameters": [ { - "$id": "22", + "$id": "15", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "23", + "$id": "16", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -320,7 +232,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "24", + "$id": "17", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -343,19 +255,19 @@ "apiVersions": [] }, { - "$id": "25", + "$id": "18", "kind": "client", "name": "ClientBClient", "namespace": "Client.Structure.MultiClient", "methods": [ { - "$id": "26", + "$id": "19", "kind": "basic", "name": "renamedTwo", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "27", + "$id": "20", "name": "renamedTwo", "resourceName": "ClientB", "accessibility": "public", @@ -386,13 +298,13 @@ "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedTwo" }, { - "$id": "28", + "$id": "21", "kind": "basic", "name": "renamedFour", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "29", + "$id": "22", "name": "renamedFour", "resourceName": "ClientB", "accessibility": "public", @@ -423,13 +335,13 @@ "crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB.renamedFour" }, { - "$id": "30", + "$id": "23", "kind": "basic", "name": "renamedSix", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "31", + "$id": "24", "name": "renamedSix", "resourceName": "ClientB", "accessibility": "public", @@ -462,13 +374,13 @@ ], "parameters": [ { - "$id": "32", + "$id": "25", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "33", + "$id": "26", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -483,7 +395,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "34", + "$id": "27", "kind": "endpoint", "name": "client", "serializedName": "client", diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json index 71bbadfe38b0..5048d3c51231 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json @@ -24,100 +24,12 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "ClientType", - "isGeneratedName": false, - "namespace": "Client.Structure.Service", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "Default", - "value": "default", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "MultiClient", - "value": "multi-client", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "8", - "kind": "enumvalue", - "decorators": [], - "name": "RenamedOperation", - "value": "renamed-operation", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "9", - "kind": "enumvalue", - "decorators": [], - "name": "TwoOperationGroup", - "value": "two-operation-group", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "10", - "kind": "enumvalue", - "decorators": [], - "name": "ClientOperationGroup", - "value": "client-operation-group", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input", - "access": "public", - "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", - "apiVersions": [], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "decorators": [] }, { - "$id": "11", + "$id": "4", "kind": "enumvalue", "name": "MultiClient", "value": "multi-client", @@ -125,12 +37,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "12", + "$id": "5", "kind": "enumvalue", "name": "RenamedOperation", "value": "renamed-operation", @@ -138,12 +50,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "13", + "$id": "6", "kind": "enumvalue", "name": "TwoOperationGroup", "value": "two-operation-group", @@ -151,12 +63,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "14", + "$id": "7", "kind": "enumvalue", "name": "ClientOperationGroup", "value": "client-operation-group", @@ -164,7 +76,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] } @@ -180,19 +92,19 @@ "models": [], "clients": [ { - "$id": "15", + "$id": "8", "kind": "client", "name": "RenamedOperationClient", "namespace": "Client.Structure.RenamedOperation", "methods": [ { - "$id": "16", + "$id": "9", "kind": "basic", "name": "renamedOne", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "17", + "$id": "10", "name": "renamedOne", "resourceName": "RenamedOperation", "accessibility": "public", @@ -223,13 +135,13 @@ "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedOne" }, { - "$id": "18", + "$id": "11", "kind": "basic", "name": "renamedThree", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "19", + "$id": "12", "name": "renamedThree", "resourceName": "RenamedOperation", "accessibility": "public", @@ -260,13 +172,13 @@ "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.renamedThree" }, { - "$id": "20", + "$id": "13", "kind": "basic", "name": "renamedFive", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "21", + "$id": "14", "name": "renamedFive", "resourceName": "RenamedOperation", "accessibility": "public", @@ -299,13 +211,13 @@ ], "parameters": [ { - "$id": "22", + "$id": "15", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "23", + "$id": "16", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -320,7 +232,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "24", + "$id": "17", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -343,19 +255,19 @@ "apiVersions": [], "children": [ { - "$id": "25", + "$id": "18", "kind": "client", "name": "Group", "namespace": "Client.Structure.RenamedOperation", "methods": [ { - "$id": "26", + "$id": "19", "kind": "basic", "name": "renamedTwo", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "27", + "$id": "20", "name": "renamedTwo", "resourceName": "Group", "accessibility": "public", @@ -386,13 +298,13 @@ "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedTwo" }, { - "$id": "28", + "$id": "21", "kind": "basic", "name": "renamedFour", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "29", + "$id": "22", "name": "renamedFour", "resourceName": "Group", "accessibility": "public", @@ -423,13 +335,13 @@ "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group.renamedFour" }, { - "$id": "30", + "$id": "23", "kind": "basic", "name": "renamedSix", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "31", + "$id": "24", "name": "renamedSix", "resourceName": "Group", "accessibility": "public", @@ -462,13 +374,13 @@ ], "parameters": [ { - "$id": "32", + "$id": "25", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "33", + "$id": "26", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -483,7 +395,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "34", + "$id": "27", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -505,7 +417,7 @@ "crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group", "apiVersions": [], "parent": { - "$ref": "15" + "$ref": "8" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json index 7e829d074ca9..b21a06a2ebc7 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json @@ -24,100 +24,12 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "ClientType", - "isGeneratedName": false, - "namespace": "Client.Structure.Service", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "Default", - "value": "default", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "MultiClient", - "value": "multi-client", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "8", - "kind": "enumvalue", - "decorators": [], - "name": "RenamedOperation", - "value": "renamed-operation", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "9", - "kind": "enumvalue", - "decorators": [], - "name": "TwoOperationGroup", - "value": "two-operation-group", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "10", - "kind": "enumvalue", - "decorators": [], - "name": "ClientOperationGroup", - "value": "client-operation-group", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input", - "access": "public", - "crossLanguageDefinitionId": "Client.Structure.Service.ClientType", - "apiVersions": [], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "decorators": [] }, { - "$id": "11", + "$id": "4", "kind": "enumvalue", "name": "MultiClient", "value": "multi-client", @@ -125,12 +37,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "12", + "$id": "5", "kind": "enumvalue", "name": "RenamedOperation", "value": "renamed-operation", @@ -138,12 +50,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "13", + "$id": "6", "kind": "enumvalue", "name": "TwoOperationGroup", "value": "two-operation-group", @@ -151,12 +63,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "14", + "$id": "7", "kind": "enumvalue", "name": "ClientOperationGroup", "value": "client-operation-group", @@ -164,7 +76,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] } @@ -180,20 +92,20 @@ "models": [], "clients": [ { - "$id": "15", + "$id": "8", "kind": "client", "name": "TwoOperationGroupClient", "namespace": "Client.Structure.TwoOperationGroup", "methods": [], "parameters": [ { - "$id": "16", + "$id": "9", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "17", + "$id": "10", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -208,7 +120,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "18", + "$id": "11", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -231,19 +143,19 @@ "apiVersions": [], "children": [ { - "$id": "19", + "$id": "12", "kind": "client", "name": "Group1", "namespace": "Client.Structure.TwoOperationGroup", "methods": [ { - "$id": "20", + "$id": "13", "kind": "basic", "name": "one", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "21", + "$id": "14", "name": "one", "resourceName": "Group1", "accessibility": "public", @@ -274,13 +186,13 @@ "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.one" }, { - "$id": "22", + "$id": "15", "kind": "basic", "name": "three", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "23", + "$id": "16", "name": "three", "resourceName": "Group1", "accessibility": "public", @@ -311,13 +223,13 @@ "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1.three" }, { - "$id": "24", + "$id": "17", "kind": "basic", "name": "four", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "25", + "$id": "18", "name": "four", "resourceName": "Group1", "accessibility": "public", @@ -350,13 +262,13 @@ ], "parameters": [ { - "$id": "26", + "$id": "19", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "27", + "$id": "20", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -371,7 +283,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "28", + "$id": "21", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -393,23 +305,23 @@ "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1", "apiVersions": [], "parent": { - "$ref": "15" + "$ref": "8" } }, { - "$id": "29", + "$id": "22", "kind": "client", "name": "Group2", "namespace": "Client.Structure.TwoOperationGroup", "methods": [ { - "$id": "30", + "$id": "23", "kind": "basic", "name": "two", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "31", + "$id": "24", "name": "two", "resourceName": "Group2", "accessibility": "public", @@ -440,13 +352,13 @@ "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.two" }, { - "$id": "32", + "$id": "25", "kind": "basic", "name": "five", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "33", + "$id": "26", "name": "five", "resourceName": "Group2", "accessibility": "public", @@ -477,13 +389,13 @@ "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2.five" }, { - "$id": "34", + "$id": "27", "kind": "basic", "name": "six", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "35", + "$id": "28", "name": "six", "resourceName": "Group2", "accessibility": "public", @@ -516,13 +428,13 @@ ], "parameters": [ { - "$id": "36", + "$id": "29", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "37", + "$id": "30", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -537,7 +449,7 @@ "crossLanguageDefinitionId": "Client.Structure.Service.endpoint" }, { - "$id": "38", + "$id": "31", "kind": "endpoint", "name": "client", "serializedName": "client", @@ -559,7 +471,7 @@ "crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2", "apiVersions": [], "parent": { - "$ref": "15" + "$ref": "8" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json index b019f3b1a87b..52942145cee3 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json @@ -26,47 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Resiliency.ServiceDriven", - "doc": "Service versions.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "Version 1", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.Versions", - "apiVersions": [ - "v1" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "Version 1", "decorators": [] @@ -84,14 +44,14 @@ "models": [], "clients": [ { - "$id": "7", + "$id": "4", "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.", "methods": [ { - "$id": "8", + "$id": "5", "kind": "basic", "name": "fromNone", "accessibility": "public", @@ -100,7 +60,7 @@ ], "doc": "Test that currently accepts no parameters, will be updated in next spec to accept a new optional parameter as well", "operation": { - "$id": "9", + "$id": "6", "name": "fromNone", "resourceName": "AddOptionalParam", "doc": "Test that currently accepts no parameters, will be updated in next spec to accept a new optional parameter as well", @@ -132,7 +92,7 @@ "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone" }, { - "$id": "10", + "$id": "7", "kind": "basic", "name": "fromOneRequired", "accessibility": "public", @@ -141,20 +101,20 @@ ], "doc": "Test that currently accepts one required parameter, will be updated in next spec to accept a new optional parameter as well", "operation": { - "$id": "11", + "$id": "8", "name": "fromOneRequired", "resourceName": "AddOptionalParam", "doc": "Test that currently accepts one required parameter, will be updated in next spec to accept a new optional parameter as well", "accessibility": "public", "parameters": [ { - "$id": "12", + "$id": "9", "kind": "query", "name": "parameter", "serializedName": "parameter", "doc": "I am a required parameter", "type": { - "$id": "13", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -189,13 +149,13 @@ }, "parameters": [ { - "$id": "14", + "$id": "11", "kind": "method", "name": "parameter", "serializedName": "parameter", "doc": "I am a required parameter", "type": { - "$id": "15", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -218,7 +178,7 @@ "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired" }, { - "$id": "16", + "$id": "13", "kind": "basic", "name": "fromOneOptional", "accessibility": "public", @@ -227,20 +187,20 @@ ], "doc": "Test that currently accepts one optional parameter, will be updated in next spec to accept a new optional parameter as well", "operation": { - "$id": "17", + "$id": "14", "name": "fromOneOptional", "resourceName": "AddOptionalParam", "doc": "Test that currently accepts one optional parameter, will be updated in next spec to accept a new optional parameter as well", "accessibility": "public", "parameters": [ { - "$id": "18", + "$id": "15", "kind": "query", "name": "parameter", "serializedName": "parameter", "doc": "I am an optional parameter", "type": { - "$id": "19", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -275,13 +235,13 @@ }, "parameters": [ { - "$id": "20", + "$id": "17", "kind": "method", "name": "parameter", "serializedName": "parameter", "doc": "I am an optional parameter", "type": { - "$id": "21", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -306,13 +266,13 @@ ], "parameters": [ { - "$id": "22", + "$id": "19", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "23", + "$id": "20", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -327,13 +287,13 @@ "crossLanguageDefinitionId": "Resiliency.ServiceDriven.endpoint" }, { - "$id": "24", + "$id": "21", "kind": "endpoint", "name": "serviceDeploymentVersion", "serializedName": "serviceDeploymentVersion", "doc": "Pass in either 'v1' or 'v2'. This represents a version of the service deployment in history. 'v1' is for the deployment when the service had only one api version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'.", "type": { - "$id": "25", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -349,13 +309,13 @@ "crossLanguageDefinitionId": "Resiliency.ServiceDriven.serviceDeploymentVersion" }, { - "$id": "26", + "$id": "23", "kind": "endpoint", "name": "apiVersion", "serializedName": "apiVersion", "doc": "Pass in 'v1'. This represents the API version of the service. Will grow up in the next deployment to be both 'v1' and 'v2'", "type": { - "$id": "27", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -367,7 +327,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "28", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json index 84193b93afa9..f698fbf5ce7c 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json @@ -27,68 +27,13 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Resiliency.ServiceDriven", - "doc": "Service versions", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "Version 1", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "v2", - "value": "v2", - "doc": "Version 2", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Resiliency.ServiceDriven.Versions", - "apiVersions": [ - "v1", - "v2" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "Version 1", "decorators": [] }, { - "$id": "8", + "$id": "4", "kind": "enumvalue", "name": "v2", "value": "v2", @@ -96,7 +41,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Version 2", "decorators": [] @@ -114,14 +59,14 @@ "models": [], "clients": [ { - "$id": "9", + "$id": "5", "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", "methods": [ { - "$id": "10", + "$id": "6", "kind": "basic", "name": "addOperation", "accessibility": "public", @@ -130,7 +75,7 @@ ], "doc": "Added operation", "operation": { - "$id": "11", + "$id": "7", "name": "addOperation", "resourceName": "ServiceDriven", "doc": "Added operation", @@ -162,7 +107,7 @@ "crossLanguageDefinitionId": "Resiliency.ServiceDriven.addOperation" }, { - "$id": "12", + "$id": "8", "kind": "basic", "name": "fromNone", "accessibility": "public", @@ -172,20 +117,20 @@ ], "doc": "Test that grew up from accepting no parameters to an optional input parameter", "operation": { - "$id": "13", + "$id": "9", "name": "fromNone", "resourceName": "AddOptionalParam", "doc": "Test that grew up from accepting no parameters to an optional input parameter", "accessibility": "public", "parameters": [ { - "$id": "14", + "$id": "10", "kind": "query", "name": "new-parameter", "serializedName": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "15", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -220,13 +165,13 @@ }, "parameters": [ { - "$id": "16", + "$id": "12", "kind": "method", "name": "new-parameter", "serializedName": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "17", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -249,7 +194,7 @@ "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromNone" }, { - "$id": "18", + "$id": "14", "kind": "basic", "name": "fromOneRequired", "accessibility": "public", @@ -259,20 +204,20 @@ ], "doc": "Operation that grew up from accepting one required parameter to accepting a required parameter and an optional parameter.", "operation": { - "$id": "19", + "$id": "15", "name": "fromOneRequired", "resourceName": "AddOptionalParam", "doc": "Operation that grew up from accepting one required parameter to accepting a required parameter and an optional parameter.", "accessibility": "public", "parameters": [ { - "$id": "20", + "$id": "16", "kind": "query", "name": "parameter", "serializedName": "parameter", "doc": "I am a required parameter", "type": { - "$id": "21", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -287,13 +232,13 @@ "readOnly": false }, { - "$id": "22", + "$id": "18", "kind": "query", "name": "new-parameter", "serializedName": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "23", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -328,13 +273,13 @@ }, "parameters": [ { - "$id": "24", + "$id": "20", "kind": "method", "name": "parameter", "serializedName": "parameter", "doc": "I am a required parameter", "type": { - "$id": "25", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -350,13 +295,13 @@ "decorators": [] }, { - "$id": "26", + "$id": "22", "kind": "method", "name": "new-parameter", "serializedName": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "27", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -379,7 +324,7 @@ "crossLanguageDefinitionId": "Resiliency.ServiceDriven.AddOptionalParam.fromOneRequired" }, { - "$id": "28", + "$id": "24", "kind": "basic", "name": "fromOneOptional", "accessibility": "public", @@ -389,20 +334,20 @@ ], "doc": "Tests that we can grow up an operation from accepting one optional parameter to accepting two optional parameters.", "operation": { - "$id": "29", + "$id": "25", "name": "fromOneOptional", "resourceName": "AddOptionalParam", "doc": "Tests that we can grow up an operation from accepting one optional parameter to accepting two optional parameters.", "accessibility": "public", "parameters": [ { - "$id": "30", + "$id": "26", "kind": "query", "name": "parameter", "serializedName": "parameter", "doc": "I am an optional parameter", "type": { - "$id": "31", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -417,13 +362,13 @@ "readOnly": false }, { - "$id": "32", + "$id": "28", "kind": "query", "name": "new-parameter", "serializedName": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "33", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -458,13 +403,13 @@ }, "parameters": [ { - "$id": "34", + "$id": "30", "kind": "method", "name": "parameter", "serializedName": "parameter", "doc": "I am an optional parameter", "type": { - "$id": "35", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -480,13 +425,13 @@ "decorators": [] }, { - "$id": "36", + "$id": "32", "kind": "method", "name": "new-parameter", "serializedName": "new-parameter", "doc": "I'm a new input optional parameter", "type": { - "$id": "37", + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -511,13 +456,13 @@ ], "parameters": [ { - "$id": "38", + "$id": "34", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "39", + "$id": "35", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -532,13 +477,13 @@ "crossLanguageDefinitionId": "Resiliency.ServiceDriven.endpoint" }, { - "$id": "40", + "$id": "36", "kind": "endpoint", "name": "serviceDeploymentVersion", "serializedName": "serviceDeploymentVersion", "doc": "Pass in either 'v1' or 'v2'. This represents a version of the service deployment in history. 'v1' is for the deployment when the service had only one api version. 'v2' is for the deployment when the service had api-versions 'v1' and 'v2'.", "type": { - "$id": "41", + "$id": "37", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -554,13 +499,13 @@ "crossLanguageDefinitionId": "Resiliency.ServiceDriven.serviceDeploymentVersion" }, { - "$id": "42", + "$id": "38", "kind": "endpoint", "name": "apiVersion", "serializedName": "apiVersion", "doc": "Pass in either 'v1' or 'v2'. This represents the API version of a service.", "type": { - "$id": "43", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -572,7 +517,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "44", + "$id": "40", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json index b060110225e6..7876207da069 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json @@ -26,47 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Server.Path.Multiple", - "doc": "Service versions", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v1_0", - "value": "v1.0", - "doc": "Version 1.0", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Server.Path.Multiple.Versions", - "apiVersions": [ - "v1.0" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "Version 1.0", "decorators": [] @@ -84,13 +44,13 @@ "models": [], "clients": [ { - "$id": "7", + "$id": "4", "kind": "client", "name": "MultipleClient", "namespace": "Server.Path.Multiple", "methods": [ { - "$id": "8", + "$id": "5", "kind": "basic", "name": "noOperationParams", "accessibility": "public", @@ -98,7 +58,7 @@ "v1.0" ], "operation": { - "$id": "9", + "$id": "6", "name": "noOperationParams", "resourceName": "Multiple", "accessibility": "public", @@ -129,7 +89,7 @@ "crossLanguageDefinitionId": "Server.Path.Multiple.noOperationParams" }, { - "$id": "10", + "$id": "7", "kind": "basic", "name": "withOperationPathParam", "accessibility": "public", @@ -137,18 +97,18 @@ "v1.0" ], "operation": { - "$id": "11", + "$id": "8", "name": "withOperationPathParam", "resourceName": "Multiple", "accessibility": "public", "parameters": [ { - "$id": "12", + "$id": "9", "kind": "path", "name": "keyword", "serializedName": "keyword", "type": { - "$id": "13", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -186,12 +146,12 @@ }, "parameters": [ { - "$id": "14", + "$id": "11", "kind": "method", "name": "keyword", "serializedName": "keyword", "type": { - "$id": "15", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -216,13 +176,13 @@ ], "parameters": [ { - "$id": "16", + "$id": "13", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Pass in http://localhost:3000 for endpoint.", "type": { - "$id": "17", + "$id": "14", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -237,7 +197,7 @@ "crossLanguageDefinitionId": "Server.Path.Multiple.endpoint" }, { - "$id": "18", + "$id": "15", "kind": "endpoint", "name": "apiVersion", "serializedName": "apiVersion", @@ -251,7 +211,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "19", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json index 4ff1eac4aeca..4960f6fcbf6a 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json @@ -27,68 +27,13 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Server.Versions.Versioned", - "doc": "The version of the API.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v2021_01_01_preview", - "value": "2021-01-01-preview", - "doc": "The version 2022-12-01-preview.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "v2022_12_01_preview", - "value": "2022-12-01-preview", - "doc": "The version 2022-12-01-preview.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Server.Versions.Versioned.Versions", - "apiVersions": [ - "2021-01-01-preview", - "2022-12-01-preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "The version 2022-12-01-preview.", "decorators": [] }, { - "$id": "8", + "$id": "4", "kind": "enumvalue", "name": "v2022_12_01_preview", "value": "2022-12-01-preview", @@ -96,7 +41,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "The version 2022-12-01-preview.", "decorators": [] @@ -114,14 +59,14 @@ "models": [], "clients": [ { - "$id": "9", + "$id": "5", "kind": "client", "name": "VersionedClient", "namespace": "Server.Versions.Versioned", "doc": "Illustrates versioned server.", "methods": [ { - "$id": "10", + "$id": "6", "kind": "basic", "name": "withoutApiVersion", "accessibility": "public", @@ -130,7 +75,7 @@ "2022-12-01-preview" ], "operation": { - "$id": "11", + "$id": "7", "name": "withoutApiVersion", "resourceName": "Versioned", "accessibility": "public", @@ -161,7 +106,7 @@ "crossLanguageDefinitionId": "Server.Versions.Versioned.withoutApiVersion" }, { - "$id": "12", + "$id": "8", "kind": "basic", "name": "withQueryApiVersion", "accessibility": "public", @@ -170,18 +115,18 @@ "2022-12-01-preview" ], "operation": { - "$id": "13", + "$id": "9", "name": "withQueryApiVersion", "resourceName": "Versioned", "accessibility": "public", "parameters": [ { - "$id": "14", + "$id": "10", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "type": { - "$id": "15", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -191,7 +136,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "16", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -231,7 +176,7 @@ "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryApiVersion" }, { - "$id": "17", + "$id": "13", "kind": "basic", "name": "withPathApiVersion", "accessibility": "public", @@ -240,18 +185,18 @@ "2022-12-01-preview" ], "operation": { - "$id": "18", + "$id": "14", "name": "withPathApiVersion", "resourceName": "Versioned", "accessibility": "public", "parameters": [ { - "$id": "19", + "$id": "15", "kind": "path", "name": "apiVersion", "serializedName": "apiVersion", "type": { - "$id": "20", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -264,7 +209,7 @@ "skipUrlEncoding": false, "defaultValue": { "type": { - "$id": "21", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -304,7 +249,7 @@ "crossLanguageDefinitionId": "Server.Versions.Versioned.withPathApiVersion" }, { - "$id": "22", + "$id": "18", "kind": "basic", "name": "withQueryOldApiVersion", "accessibility": "public", @@ -313,18 +258,18 @@ "2022-12-01-preview" ], "operation": { - "$id": "23", + "$id": "19", "name": "withQueryOldApiVersion", "resourceName": "Versioned", "accessibility": "public", "parameters": [ { - "$id": "24", + "$id": "20", "kind": "query", "name": "apiVersion", "serializedName": "api-version", "type": { - "$id": "25", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -334,7 +279,7 @@ "explode": false, "defaultValue": { "type": { - "$id": "26", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -376,13 +321,13 @@ ], "parameters": [ { - "$id": "27", + "$id": "23", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "28", + "$id": "24", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json index dff02d458c65..954229eb48ba 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json @@ -24,61 +24,12 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "ImmediateSuccessResponseRepeatabilityResult", - "isGeneratedName": true, - "namespace": "SpecialHeaders.Repeatability", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "accepted", - "value": "accepted", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "rejected", - "value": "rejected", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Output", - "access": "public", - "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess.ResponseRepeatabilityResult.anonymous", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "1" }, "decorators": [] }, { - "$id": "8", + "$id": "4", "kind": "enumvalue", "name": "rejected", "value": "rejected", @@ -86,7 +37,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] } @@ -102,33 +53,33 @@ "models": [], "clients": [ { - "$id": "9", + "$id": "5", "kind": "client", "name": "RepeatabilityClient", "namespace": "SpecialHeaders.Repeatability", "doc": "Illustrates OASIS repeatability headers", "methods": [ { - "$id": "10", + "$id": "6", "kind": "basic", "name": "immediateSuccess", "accessibility": "public", "apiVersions": [], "doc": "Check we recognize Repeatability-Request-ID and Repeatability-First-Sent.", "operation": { - "$id": "11", + "$id": "7", "name": "immediateSuccess", "resourceName": "Repeatability", "doc": "Check we recognize Repeatability-Request-ID and Repeatability-First-Sent.", "accessibility": "public", "parameters": [ { - "$id": "12", + "$id": "8", "kind": "header", "name": "repeatabilityRequestID", "serializedName": "Repeatability-Request-ID", "type": { - "$id": "13", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -143,17 +94,17 @@ "crossLanguageDefinitionId": "SpecialHeaders.Repeatability.immediateSuccess.repeatabilityRequestID" }, { - "$id": "14", + "$id": "10", "kind": "header", "name": "repeatabilityFirstSent", "serializedName": "Repeatability-First-Sent", "type": { - "$id": "15", + "$id": "11", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "16", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -200,12 +151,12 @@ }, "parameters": [ { - "$id": "17", + "$id": "13", "kind": "method", "name": "repeatabilityRequestID", "serializedName": "Repeatability-Request-ID", "type": { - "$id": "18", + "$id": "14", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -221,17 +172,17 @@ "decorators": [] }, { - "$id": "19", + "$id": "15", "kind": "method", "name": "repeatabilityFirstSent", "serializedName": "Repeatability-First-Sent", "type": { - "$id": "20", + "$id": "16", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc7231", "wireType": { - "$id": "21", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -259,13 +210,13 @@ ], "parameters": [ { - "$id": "22", + "$id": "18", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "23", + "$id": "19", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -276,7 +227,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "24", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json index 8f678f3f6ebc..f89c00fd757c 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json @@ -24,135 +24,13 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "DaysOfWeekExtensibleEnum", - "isGeneratedName": false, - "namespace": "Type.Enum.Extensible", - "doc": "Days of the week", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "Monday", - "doc": "Monday.", - "value": "Monday", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "Tuesday", - "doc": "Tuesday.", - "value": "Tuesday", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "8", - "kind": "enumvalue", - "decorators": [], - "name": "Wednesday", - "doc": "Wednesday.", - "value": "Wednesday", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "9", - "kind": "enumvalue", - "decorators": [], - "name": "Thursday", - "doc": "Thursday.", - "value": "Thursday", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "10", - "kind": "enumvalue", - "decorators": [], - "name": "Friday", - "doc": "Friday.", - "value": "Friday", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "11", - "kind": "enumvalue", - "decorators": [], - "name": "Saturday", - "doc": "Saturday.", - "value": "Saturday", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "12", - "kind": "enumvalue", - "decorators": [], - "name": "Sunday", - "doc": "Sunday.", - "value": "Sunday", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Enum.Extensible.DaysOfWeekExtensibleEnum", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "1" }, "doc": "Monday.", "decorators": [] }, { - "$id": "13", + "$id": "4", "kind": "enumvalue", "name": "Tuesday", "value": "Tuesday", @@ -160,13 +38,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Tuesday.", "decorators": [] }, { - "$id": "14", + "$id": "5", "kind": "enumvalue", "name": "Wednesday", "value": "Wednesday", @@ -174,13 +52,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Wednesday.", "decorators": [] }, { - "$id": "15", + "$id": "6", "kind": "enumvalue", "name": "Thursday", "value": "Thursday", @@ -188,13 +66,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Thursday.", "decorators": [] }, { - "$id": "16", + "$id": "7", "kind": "enumvalue", "name": "Friday", "value": "Friday", @@ -202,13 +80,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Friday.", "decorators": [] }, { - "$id": "17", + "$id": "8", "kind": "enumvalue", "name": "Saturday", "value": "Saturday", @@ -216,13 +94,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Saturday.", "decorators": [] }, { - "$id": "18", + "$id": "9", "kind": "enumvalue", "name": "Sunday", "value": "Sunday", @@ -230,7 +108,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Sunday.", "decorators": [] @@ -246,13 +124,13 @@ ], "constants": [ { - "$id": "19", + "$id": "10", "kind": "constant", "name": "getKnownValueContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "20", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -262,13 +140,13 @@ "decorators": [] }, { - "$id": "21", + "$id": "12", "kind": "constant", "name": "GetKnownValueResponseContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "22", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -278,13 +156,13 @@ "decorators": [] }, { - "$id": "23", + "$id": "14", "kind": "constant", "name": "getUnknownValueContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "24", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -294,13 +172,13 @@ "decorators": [] }, { - "$id": "25", + "$id": "16", "kind": "constant", "name": "GetKnownValueResponseContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "26", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -310,13 +188,13 @@ "decorators": [] }, { - "$id": "27", + "$id": "18", "kind": "constant", "name": "GetKnownValueResponseContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "28", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -326,13 +204,13 @@ "decorators": [] }, { - "$id": "29", + "$id": "20", "kind": "constant", "name": "GetKnownValueResponseContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "30", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -342,13 +220,13 @@ "decorators": [] }, { - "$id": "31", + "$id": "22", "kind": "constant", "name": "GetKnownValueResponseContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "32", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -358,13 +236,13 @@ "decorators": [] }, { - "$id": "33", + "$id": "24", "kind": "constant", "name": "GetKnownValueResponseContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "34", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -377,20 +255,20 @@ "models": [], "clients": [ { - "$id": "35", + "$id": "26", "kind": "client", "name": "ExtensibleClient", "namespace": "Type.Enum.Extensible", "methods": [], "parameters": [ { - "$id": "36", + "$id": "27", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "37", + "$id": "28", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -401,7 +279,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "38", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -419,30 +297,30 @@ "apiVersions": [], "children": [ { - "$id": "39", + "$id": "30", "kind": "client", "name": "String", "namespace": "Type.Enum.Extensible", "methods": [ { - "$id": "40", + "$id": "31", "kind": "basic", "name": "getKnownValue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "41", + "$id": "32", "name": "getKnownValue", "resourceName": "String", "accessibility": "public", "parameters": [ { - "$id": "42", + "$id": "33", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "10" }, "isApiVersion": false, "optional": false, @@ -466,7 +344,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "21" + "$ref": "12" } } ], @@ -487,12 +365,12 @@ }, "parameters": [ { - "$id": "43", + "$id": "34", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "10" }, "location": "Header", "isApiVersion": false, @@ -515,24 +393,24 @@ "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue" }, { - "$id": "44", + "$id": "35", "kind": "basic", "name": "getUnknownValue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "45", + "$id": "36", "name": "getUnknownValue", "resourceName": "String", "accessibility": "public", "parameters": [ { - "$id": "46", + "$id": "37", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "23" + "$ref": "14" }, "isApiVersion": false, "optional": false, @@ -556,7 +434,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "25" + "$ref": "16" } } ], @@ -577,12 +455,12 @@ }, "parameters": [ { - "$id": "47", + "$id": "38", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "23" + "$ref": "14" }, "location": "Header", "isApiVersion": false, @@ -605,24 +483,24 @@ "crossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue" }, { - "$id": "48", + "$id": "39", "kind": "basic", "name": "putKnownValue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "49", + "$id": "40", "name": "putKnownValue", "resourceName": "String", "accessibility": "public", "parameters": [ { - "$id": "50", + "$id": "41", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "27" + "$ref": "18" }, "isApiVersion": false, "optional": false, @@ -633,7 +511,7 @@ "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue.contentType" }, { - "$id": "51", + "$id": "42", "kind": "body", "name": "body", "serializedName": "body", @@ -675,12 +553,12 @@ }, "parameters": [ { - "$id": "52", + "$id": "43", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "29" + "$ref": "20" }, "location": "Header", "isApiVersion": false, @@ -692,7 +570,7 @@ "decorators": [] }, { - "$id": "53", + "$id": "44", "kind": "method", "name": "body", "serializedName": "body", @@ -716,24 +594,24 @@ "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue" }, { - "$id": "54", + "$id": "45", "kind": "basic", "name": "putUnknownValue", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "55", + "$id": "46", "name": "putUnknownValue", "resourceName": "String", "accessibility": "public", "parameters": [ { - "$id": "56", + "$id": "47", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "31" + "$ref": "22" }, "isApiVersion": false, "optional": false, @@ -744,7 +622,7 @@ "crossLanguageDefinitionId": "Type.Enum.Extensible.String.putUnknownValue.contentType" }, { - "$id": "57", + "$id": "48", "kind": "body", "name": "body", "serializedName": "body", @@ -786,12 +664,12 @@ }, "parameters": [ { - "$id": "58", + "$id": "49", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "33" + "$ref": "24" }, "location": "Header", "isApiVersion": false, @@ -803,7 +681,7 @@ "decorators": [] }, { - "$id": "59", + "$id": "50", "kind": "method", "name": "body", "serializedName": "body", @@ -829,13 +707,13 @@ ], "parameters": [ { - "$id": "60", + "$id": "51", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "61", + "$id": "52", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -846,7 +724,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "62", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -863,7 +741,7 @@ "crossLanguageDefinitionId": "Type.Enum.Extensible.String", "apiVersions": [], "parent": { - "$ref": "35" + "$ref": "26" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json index 3b6dbdc514d7..02de6dd19c49 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json @@ -24,135 +24,13 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "DaysOfWeekEnum", - "isGeneratedName": false, - "namespace": "Type.Enum.Fixed", - "doc": "Days of the week", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "Monday", - "value": "Monday", - "doc": "Monday.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "Tuesday", - "value": "Tuesday", - "doc": "Tuesday.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "8", - "kind": "enumvalue", - "decorators": [], - "name": "Wednesday", - "value": "Wednesday", - "doc": "Wednesday.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "9", - "kind": "enumvalue", - "decorators": [], - "name": "Thursday", - "value": "Thursday", - "doc": "Thursday.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "10", - "kind": "enumvalue", - "decorators": [], - "name": "Friday", - "value": "Friday", - "doc": "Friday.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "11", - "kind": "enumvalue", - "decorators": [], - "name": "Saturday", - "value": "Saturday", - "doc": "Saturday.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "12", - "kind": "enumvalue", - "decorators": [], - "name": "Sunday", - "value": "Sunday", - "doc": "Sunday.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Enum.Fixed.DaysOfWeekEnum", - "apiVersions": [], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "Monday.", "decorators": [] }, { - "$id": "13", + "$id": "4", "kind": "enumvalue", "name": "Tuesday", "value": "Tuesday", @@ -160,13 +38,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Tuesday.", "decorators": [] }, { - "$id": "14", + "$id": "5", "kind": "enumvalue", "name": "Wednesday", "value": "Wednesday", @@ -174,13 +52,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Wednesday.", "decorators": [] }, { - "$id": "15", + "$id": "6", "kind": "enumvalue", "name": "Thursday", "value": "Thursday", @@ -188,13 +66,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Thursday.", "decorators": [] }, { - "$id": "16", + "$id": "7", "kind": "enumvalue", "name": "Friday", "value": "Friday", @@ -202,13 +80,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Friday.", "decorators": [] }, { - "$id": "17", + "$id": "8", "kind": "enumvalue", "name": "Saturday", "value": "Saturday", @@ -216,13 +94,13 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Saturday.", "decorators": [] }, { - "$id": "18", + "$id": "9", "kind": "enumvalue", "name": "Sunday", "value": "Sunday", @@ -230,7 +108,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Sunday.", "decorators": [] @@ -246,13 +124,13 @@ ], "constants": [ { - "$id": "19", + "$id": "10", "kind": "constant", "name": "getKnownValueContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "20", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -262,13 +140,13 @@ "decorators": [] }, { - "$id": "21", + "$id": "12", "kind": "constant", "name": "GetKnownValueResponseContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "22", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -278,13 +156,13 @@ "decorators": [] }, { - "$id": "23", + "$id": "14", "kind": "constant", "name": "GetKnownValueResponseContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "24", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -294,13 +172,13 @@ "decorators": [] }, { - "$id": "25", + "$id": "16", "kind": "constant", "name": "GetKnownValueResponseContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "26", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -310,13 +188,13 @@ "decorators": [] }, { - "$id": "27", + "$id": "18", "kind": "constant", "name": "GetKnownValueResponseContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "28", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -326,13 +204,13 @@ "decorators": [] }, { - "$id": "29", + "$id": "20", "kind": "constant", "name": "GetKnownValueResponseContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "30", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -345,20 +223,20 @@ "models": [], "clients": [ { - "$id": "31", + "$id": "22", "kind": "client", "name": "FixedClient", "namespace": "Type.Enum.Fixed", "methods": [], "parameters": [ { - "$id": "32", + "$id": "23", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "33", + "$id": "24", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -369,7 +247,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "34", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -387,32 +265,32 @@ "apiVersions": [], "children": [ { - "$id": "35", + "$id": "26", "kind": "client", "name": "String", "namespace": "Type.Enum.Fixed", "methods": [ { - "$id": "36", + "$id": "27", "kind": "basic", "name": "getKnownValue", "accessibility": "public", "apiVersions": [], "doc": "getKnownValue", "operation": { - "$id": "37", + "$id": "28", "name": "getKnownValue", "resourceName": "String", "doc": "getKnownValue", "accessibility": "public", "parameters": [ { - "$id": "38", + "$id": "29", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "10" }, "isApiVersion": false, "optional": false, @@ -436,7 +314,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "21" + "$ref": "12" } } ], @@ -457,12 +335,12 @@ }, "parameters": [ { - "$id": "39", + "$id": "30", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "10" }, "location": "Header", "isApiVersion": false, @@ -485,26 +363,26 @@ "crossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue" }, { - "$id": "40", + "$id": "31", "kind": "basic", "name": "putKnownValue", "accessibility": "public", "apiVersions": [], "doc": "putKnownValue", "operation": { - "$id": "41", + "$id": "32", "name": "putKnownValue", "resourceName": "String", "doc": "putKnownValue", "accessibility": "public", "parameters": [ { - "$id": "42", + "$id": "33", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "23" + "$ref": "14" }, "isApiVersion": false, "optional": false, @@ -515,7 +393,7 @@ "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue.contentType" }, { - "$id": "43", + "$id": "34", "kind": "body", "name": "body", "serializedName": "body", @@ -558,12 +436,12 @@ }, "parameters": [ { - "$id": "44", + "$id": "35", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "25" + "$ref": "16" }, "location": "Header", "isApiVersion": false, @@ -575,7 +453,7 @@ "decorators": [] }, { - "$id": "45", + "$id": "36", "kind": "method", "name": "body", "serializedName": "body", @@ -600,26 +478,26 @@ "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue" }, { - "$id": "46", + "$id": "37", "kind": "basic", "name": "putUnknownValue", "accessibility": "public", "apiVersions": [], "doc": "putUnknownValue", "operation": { - "$id": "47", + "$id": "38", "name": "putUnknownValue", "resourceName": "String", "doc": "putUnknownValue", "accessibility": "public", "parameters": [ { - "$id": "48", + "$id": "39", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "27" + "$ref": "18" }, "isApiVersion": false, "optional": false, @@ -630,7 +508,7 @@ "crossLanguageDefinitionId": "Type.Enum.Fixed.String.putUnknownValue.contentType" }, { - "$id": "49", + "$id": "40", "kind": "body", "name": "body", "serializedName": "body", @@ -673,12 +551,12 @@ }, "parameters": [ { - "$id": "50", + "$id": "41", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "29" + "$ref": "20" }, "location": "Header", "isApiVersion": false, @@ -690,7 +568,7 @@ "decorators": [] }, { - "$id": "51", + "$id": "42", "kind": "method", "name": "body", "serializedName": "body", @@ -717,13 +595,13 @@ ], "parameters": [ { - "$id": "52", + "$id": "43", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "53", + "$id": "44", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -734,7 +612,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "54", + "$id": "45", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -751,7 +629,7 @@ "crossLanguageDefinitionId": "Type.Enum.Fixed.String", "apiVersions": [], "parent": { - "$ref": "31" + "$ref": "22" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json index 0c76663f12bd..33ca8d2c01e6 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json @@ -24,45 +24,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "DogKind", - "isGeneratedName": false, - "namespace": "Type.Model.Inheritance.EnumDiscriminator", - "doc": "extensible enum type for discriminator", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "Golden", - "doc": "Species golden", - "value": "golden", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.DogKind", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "1" }, "doc": "Species golden", "decorators": [] @@ -76,12 +38,12 @@ "decorators": [] }, { - "$id": "7", + "$id": "4", "kind": "enum", "name": "SnakeKind", "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.SnakeKind", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -89,53 +51,15 @@ }, "values": [ { - "$id": "9", + "$id": "6", "kind": "enumvalue", "name": "Cobra", "value": "cobra", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$id": "10", - "kind": "enum", - "decorators": [], - "name": "SnakeKind", - "isGeneratedName": false, - "namespace": "Type.Model.Inheritance.EnumDiscriminator", - "doc": "fixed enum type for discriminator", - "valueType": { - "$id": "11", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "12", - "kind": "enumvalue", - "decorators": [], - "name": "Cobra", - "value": "cobra", - "doc": "Species cobra", - "enumType": { - "$ref": "10" - }, - "valueType": { - "$ref": "11" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.SnakeKind", - "apiVersions": [], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "4" }, "doc": "Species cobra", "decorators": [] @@ -151,13 +75,13 @@ ], "constants": [ { - "$id": "13", + "$id": "7", "kind": "constant", "name": "getExtensibleModelContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "14", + "$id": "8", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -167,13 +91,13 @@ "decorators": [] }, { - "$id": "15", + "$id": "9", "kind": "constant", "name": "putExtensibleModelContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "16", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -183,13 +107,13 @@ "decorators": [] }, { - "$id": "17", + "$id": "11", "kind": "constant", "name": "getExtensibleModelMissingDiscriminatorContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "18", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -199,13 +123,13 @@ "decorators": [] }, { - "$id": "19", + "$id": "13", "kind": "constant", "name": "getExtensibleModelWrongDiscriminatorContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "20", + "$id": "14", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -215,13 +139,13 @@ "decorators": [] }, { - "$id": "21", + "$id": "15", "kind": "constant", "name": "getFixedModelContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "22", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -231,13 +155,13 @@ "decorators": [] }, { - "$id": "23", + "$id": "17", "kind": "constant", "name": "putFixedModelContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "24", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -247,13 +171,13 @@ "decorators": [] }, { - "$id": "25", + "$id": "19", "kind": "constant", "name": "getFixedModelMissingDiscriminatorContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "26", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -263,13 +187,13 @@ "decorators": [] }, { - "$id": "27", + "$id": "21", "kind": "constant", "name": "getFixedModelWrongDiscriminatorContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "28", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -281,7 +205,7 @@ ], "models": [ { - "$id": "29", + "$id": "23", "kind": "model", "name": "Dog", "namespace": "Type.Model.Inheritance.EnumDiscriminator", @@ -290,7 +214,7 @@ "doc": "Test extensible enum type for discriminator", "decorators": [], "discriminatorProperty": { - "$id": "30", + "$id": "24", "kind": "property", "name": "kind", "serializedName": "kind", @@ -313,16 +237,16 @@ }, "properties": [ { - "$ref": "30" + "$ref": "24" }, { - "$id": "31", + "$id": "25", "kind": "property", "name": "weight", "serializedName": "weight", "doc": "Weight of the dog", "type": { - "$id": "32", + "$id": "26", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -344,7 +268,7 @@ ], "discriminatedSubtypes": { "golden": { - "$id": "33", + "$id": "27", "kind": "model", "name": "Golden", "namespace": "Type.Model.Inheritance.EnumDiscriminator", @@ -354,17 +278,66 @@ "discriminatorValue": "golden", "decorators": [], "baseModel": { - "$ref": "29" + "$ref": "23" }, "properties": [ { - "$id": "34", + "$id": "28", "kind": "property", "name": "kind", "serializedName": "kind", "doc": "discriminator property", "type": { - "$ref": "3" + "$id": "29", + "kind": "enumvalue", + "name": "Golden", + "value": "golden", + "valueType": { + "$ref": "2" + }, + "enumType": { + "$id": "30", + "kind": "enum", + "decorators": [], + "name": "DogKind", + "isGeneratedName": false, + "namespace": "Type.Model.Inheritance.EnumDiscriminator", + "doc": "extensible enum type for discriminator", + "valueType": { + "$id": "31", + "kind": "string", + "decorators": [], + "name": "string", + "doc": "A sequence of textual characters.", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "values": [ + { + "$id": "32", + "kind": "enumvalue", + "decorators": [], + "name": "Golden", + "doc": "Species golden", + "value": "golden", + "valueType": { + "$ref": "31" + }, + "enumType": { + "$ref": "30" + } + } + ], + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "access": "public", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.DogKind", + "apiVersions": [], + "isUnionAsEnum": true, + "__accessSet": true + }, + "doc": "Species golden", + "decorators": [] }, "optional": false, "readOnly": false, @@ -384,10 +357,10 @@ } }, { - "$ref": "33" + "$ref": "27" }, { - "$id": "35", + "$id": "33", "kind": "model", "name": "Snake", "namespace": "Type.Model.Inheritance.EnumDiscriminator", @@ -396,13 +369,13 @@ "doc": "Test fixed enum type for discriminator", "decorators": [], "discriminatorProperty": { - "$id": "36", + "$id": "34", "kind": "property", "name": "kind", "serializedName": "kind", "doc": "discriminator property", "type": { - "$ref": "7" + "$ref": "4" }, "optional": false, "readOnly": false, @@ -419,16 +392,16 @@ }, "properties": [ { - "$ref": "36" + "$ref": "34" }, { - "$id": "37", + "$id": "35", "kind": "property", "name": "length", "serializedName": "length", "doc": "Length of the snake", "type": { - "$id": "38", + "$id": "36", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -450,7 +423,7 @@ ], "discriminatedSubtypes": { "cobra": { - "$id": "39", + "$id": "37", "kind": "model", "name": "Cobra", "namespace": "Type.Model.Inheritance.EnumDiscriminator", @@ -460,25 +433,63 @@ "discriminatorValue": "cobra", "decorators": [], "baseModel": { - "$ref": "35" + "$ref": "33" }, "properties": [ { - "$id": "40", + "$id": "38", "kind": "property", "name": "kind", "serializedName": "kind", "doc": "discriminator property", "type": { - "$id": "41", + "$id": "39", "kind": "enumvalue", "name": "Cobra", "value": "cobra", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$ref": "10" + "$id": "40", + "kind": "enum", + "decorators": [], + "name": "SnakeKind", + "isGeneratedName": false, + "namespace": "Type.Model.Inheritance.EnumDiscriminator", + "doc": "fixed enum type for discriminator", + "valueType": { + "$id": "41", + "kind": "string", + "decorators": [], + "name": "string", + "doc": "A sequence of textual characters.", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "values": [ + { + "$id": "42", + "kind": "enumvalue", + "decorators": [], + "name": "Cobra", + "value": "cobra", + "doc": "Species cobra", + "enumType": { + "$ref": "40" + }, + "valueType": { + "$ref": "41" + } + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Input,Output,Json", + "access": "public", + "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.SnakeKind", + "apiVersions": [], + "isUnionAsEnum": false, + "__accessSet": true }, "doc": "Species cobra", "decorators": [] @@ -501,38 +512,38 @@ } }, { - "$ref": "39" + "$ref": "37" } ], "clients": [ { - "$id": "42", + "$id": "43", "kind": "client", "name": "EnumDiscriminatorClient", "namespace": "Type.Model.Inheritance.EnumDiscriminator", "doc": "Illustrates inheritance with enum discriminator.", "methods": [ { - "$id": "43", + "$id": "44", "kind": "basic", "name": "getExtensibleModel", "accessibility": "public", "apiVersions": [], "doc": "Receive model with extensible enum discriminator type.", "operation": { - "$id": "44", + "$id": "45", "name": "getExtensibleModel", "resourceName": "EnumDiscriminator", "doc": "Receive model with extensible enum discriminator type.", "accessibility": "public", "parameters": [ { - "$id": "45", + "$id": "46", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "13" + "$ref": "7" }, "isApiVersion": false, "optional": false, @@ -549,7 +560,7 @@ 200 ], "bodyType": { - "$ref": "29" + "$ref": "23" }, "headers": [], "isErrorResponse": false, @@ -569,12 +580,12 @@ }, "parameters": [ { - "$id": "46", + "$id": "47", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "13" + "$ref": "7" }, "location": "Header", "isApiVersion": false, @@ -588,7 +599,7 @@ ], "response": { "type": { - "$ref": "29" + "$ref": "23" } }, "isOverride": false, @@ -597,27 +608,27 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModel" }, { - "$id": "47", + "$id": "48", "kind": "basic", "name": "putExtensibleModel", "accessibility": "public", "apiVersions": [], "doc": "Send model with extensible enum discriminator type.", "operation": { - "$id": "48", + "$id": "49", "name": "putExtensibleModel", "resourceName": "EnumDiscriminator", "doc": "Send model with extensible enum discriminator type.", "accessibility": "public", "parameters": [ { - "$id": "49", + "$id": "50", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "15" + "$ref": "9" }, "isApiVersion": false, "optional": false, @@ -628,13 +639,13 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel.contentType" }, { - "$id": "50", + "$id": "51", "kind": "body", "name": "input", "serializedName": "input", "doc": "Dog to create", "type": { - "$ref": "29" + "$ref": "23" }, "isApiVersion": false, "contentTypes": [ @@ -671,13 +682,13 @@ }, "parameters": [ { - "$id": "51", + "$id": "52", "kind": "method", "name": "input", "serializedName": "input", "doc": "Dog to create", "type": { - "$ref": "29" + "$ref": "23" }, "location": "Body", "isApiVersion": false, @@ -689,13 +700,13 @@ "decorators": [] }, { - "$id": "52", + "$id": "53", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "15" + "$ref": "9" }, "location": "Header", "isApiVersion": false, @@ -714,26 +725,26 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel" }, { - "$id": "53", + "$id": "54", "kind": "basic", "name": "getExtensibleModelMissingDiscriminator", "accessibility": "public", "apiVersions": [], "doc": "Get a model omitting the discriminator.", "operation": { - "$id": "54", + "$id": "55", "name": "getExtensibleModelMissingDiscriminator", "resourceName": "EnumDiscriminator", "doc": "Get a model omitting the discriminator.", "accessibility": "public", "parameters": [ { - "$id": "55", + "$id": "56", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "17" + "$ref": "11" }, "isApiVersion": false, "optional": false, @@ -750,7 +761,7 @@ 200 ], "bodyType": { - "$ref": "29" + "$ref": "23" }, "headers": [], "isErrorResponse": false, @@ -770,12 +781,12 @@ }, "parameters": [ { - "$id": "56", + "$id": "57", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "17" + "$ref": "11" }, "location": "Header", "isApiVersion": false, @@ -789,7 +800,7 @@ ], "response": { "type": { - "$ref": "29" + "$ref": "23" } }, "isOverride": false, @@ -798,26 +809,26 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelMissingDiscriminator" }, { - "$id": "57", + "$id": "58", "kind": "basic", "name": "getExtensibleModelWrongDiscriminator", "accessibility": "public", "apiVersions": [], "doc": "Get a model containing discriminator value never defined.", "operation": { - "$id": "58", + "$id": "59", "name": "getExtensibleModelWrongDiscriminator", "resourceName": "EnumDiscriminator", "doc": "Get a model containing discriminator value never defined.", "accessibility": "public", "parameters": [ { - "$id": "59", + "$id": "60", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "13" }, "isApiVersion": false, "optional": false, @@ -834,7 +845,7 @@ 200 ], "bodyType": { - "$ref": "29" + "$ref": "23" }, "headers": [], "isErrorResponse": false, @@ -854,12 +865,12 @@ }, "parameters": [ { - "$id": "60", + "$id": "61", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "13" }, "location": "Header", "isApiVersion": false, @@ -873,7 +884,7 @@ ], "response": { "type": { - "$ref": "29" + "$ref": "23" } }, "isOverride": false, @@ -882,26 +893,26 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelWrongDiscriminator" }, { - "$id": "61", + "$id": "62", "kind": "basic", "name": "getFixedModel", "accessibility": "public", "apiVersions": [], "doc": "Receive model with fixed enum discriminator type.", "operation": { - "$id": "62", + "$id": "63", "name": "getFixedModel", "resourceName": "EnumDiscriminator", "doc": "Receive model with fixed enum discriminator type.", "accessibility": "public", "parameters": [ { - "$id": "63", + "$id": "64", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "21" + "$ref": "15" }, "isApiVersion": false, "optional": false, @@ -918,7 +929,7 @@ 200 ], "bodyType": { - "$ref": "35" + "$ref": "33" }, "headers": [], "isErrorResponse": false, @@ -938,12 +949,12 @@ }, "parameters": [ { - "$id": "64", + "$id": "65", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "21" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -957,7 +968,7 @@ ], "response": { "type": { - "$ref": "35" + "$ref": "33" } }, "isOverride": false, @@ -966,27 +977,27 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModel" }, { - "$id": "65", + "$id": "66", "kind": "basic", "name": "putFixedModel", "accessibility": "public", "apiVersions": [], "doc": "Send model with fixed enum discriminator type.", "operation": { - "$id": "66", + "$id": "67", "name": "putFixedModel", "resourceName": "EnumDiscriminator", "doc": "Send model with fixed enum discriminator type.", "accessibility": "public", "parameters": [ { - "$id": "67", + "$id": "68", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "23" + "$ref": "17" }, "isApiVersion": false, "optional": false, @@ -997,13 +1008,13 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel.contentType" }, { - "$id": "68", + "$id": "69", "kind": "body", "name": "input", "serializedName": "input", "doc": "Snake to create", "type": { - "$ref": "35" + "$ref": "33" }, "isApiVersion": false, "contentTypes": [ @@ -1040,13 +1051,13 @@ }, "parameters": [ { - "$id": "69", + "$id": "70", "kind": "method", "name": "input", "serializedName": "input", "doc": "Snake to create", "type": { - "$ref": "35" + "$ref": "33" }, "location": "Body", "isApiVersion": false, @@ -1058,13 +1069,13 @@ "decorators": [] }, { - "$id": "70", + "$id": "71", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "23" + "$ref": "17" }, "location": "Header", "isApiVersion": false, @@ -1083,26 +1094,26 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel" }, { - "$id": "71", + "$id": "72", "kind": "basic", "name": "getFixedModelMissingDiscriminator", "accessibility": "public", "apiVersions": [], "doc": "Get a model omitting the discriminator.", "operation": { - "$id": "72", + "$id": "73", "name": "getFixedModelMissingDiscriminator", "resourceName": "EnumDiscriminator", "doc": "Get a model omitting the discriminator.", "accessibility": "public", "parameters": [ { - "$id": "73", + "$id": "74", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "25" + "$ref": "19" }, "isApiVersion": false, "optional": false, @@ -1119,7 +1130,7 @@ 200 ], "bodyType": { - "$ref": "35" + "$ref": "33" }, "headers": [], "isErrorResponse": false, @@ -1139,12 +1150,12 @@ }, "parameters": [ { - "$id": "74", + "$id": "75", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "25" + "$ref": "19" }, "location": "Header", "isApiVersion": false, @@ -1158,7 +1169,7 @@ ], "response": { "type": { - "$ref": "35" + "$ref": "33" } }, "isOverride": false, @@ -1167,26 +1178,26 @@ "crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelMissingDiscriminator" }, { - "$id": "75", + "$id": "76", "kind": "basic", "name": "getFixedModelWrongDiscriminator", "accessibility": "public", "apiVersions": [], "doc": "Get a model containing discriminator value never defined.", "operation": { - "$id": "76", + "$id": "77", "name": "getFixedModelWrongDiscriminator", "resourceName": "EnumDiscriminator", "doc": "Get a model containing discriminator value never defined.", "accessibility": "public", "parameters": [ { - "$id": "77", + "$id": "78", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "27" + "$ref": "21" }, "isApiVersion": false, "optional": false, @@ -1203,7 +1214,7 @@ 200 ], "bodyType": { - "$ref": "35" + "$ref": "33" }, "headers": [], "isErrorResponse": false, @@ -1223,12 +1234,12 @@ }, "parameters": [ { - "$id": "78", + "$id": "79", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "27" + "$ref": "21" }, "location": "Header", "isApiVersion": false, @@ -1242,7 +1253,7 @@ ], "response": { "type": { - "$ref": "35" + "$ref": "33" } }, "isOverride": false, @@ -1253,13 +1264,13 @@ ], "parameters": [ { - "$id": "79", + "$id": "80", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "80", + "$id": "81", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1270,7 +1281,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "81", + "$id": "82", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json index 062fa834dba6..48bdb240cbaf 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json @@ -37,6 +37,7 @@ "namespace": "Type.Property.Optional", "isFixed": false, "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] }, { @@ -74,6 +75,7 @@ "namespace": "Type.Property.Optional", "isFixed": false, "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] }, { @@ -111,6 +113,7 @@ "namespace": "Type.Property.Optional", "isFixed": false, "isFlags": false, + "usage": "Input,Output,Json", "decorators": [] }, { @@ -135,61 +138,12 @@ "$ref": "14" }, "enumType": { - "$id": "16", - "kind": "enum", - "decorators": [], - "name": "UnionStringLiteralPropertyProperty", - "isGeneratedName": true, - "namespace": "Type.Property.Optional", - "valueType": { - "$id": "17", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "18", - "kind": "enumvalue", - "decorators": [], - "name": "hello", - "value": "hello", - "valueType": { - "$ref": "17" - }, - "enumType": { - "$ref": "16" - } - }, - { - "$id": "19", - "kind": "enumvalue", - "decorators": [], - "name": "world", - "value": "world", - "valueType": { - "$ref": "17" - }, - "enumType": { - "$ref": "16" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteralProperty.property.anonymous", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "13" }, "decorators": [] }, { - "$id": "20", + "$id": "16", "kind": "enumvalue", "name": "world", "value": "world", @@ -197,7 +151,7 @@ "$ref": "14" }, "enumType": { - "$ref": "16" + "$ref": "13" }, "decorators": [] } @@ -209,12 +163,12 @@ "decorators": [] }, { - "$id": "21", + "$id": "17", "kind": "enum", "name": "UnionIntLiteralPropertyProperty", "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteralProperty.property.anonymous", "valueType": { - "$id": "22", + "$id": "18", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -222,77 +176,28 @@ }, "values": [ { - "$id": "23", + "$id": "19", "kind": "enumvalue", "name": "1", "value": 1, "valueType": { - "$ref": "22" + "$ref": "18" }, "enumType": { - "$id": "24", - "kind": "enum", - "decorators": [], - "name": "UnionIntLiteralPropertyProperty", - "isGeneratedName": true, - "namespace": "Type.Property.Optional", - "valueType": { - "$id": "25", - "kind": "int32", - "decorators": [], - "name": "int32", - "doc": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", - "crossLanguageDefinitionId": "TypeSpec.int32" - }, - "values": [ - { - "$id": "26", - "kind": "enumvalue", - "decorators": [], - "name": "1", - "value": 1, - "valueType": { - "$ref": "25" - }, - "enumType": { - "$ref": "24" - } - }, - { - "$id": "27", - "kind": "enumvalue", - "decorators": [], - "name": "2", - "value": 2, - "valueType": { - "$ref": "25" - }, - "enumType": { - "$ref": "24" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteralProperty.property.anonymous", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "17" }, "decorators": [] }, { - "$id": "28", + "$id": "20", "kind": "enumvalue", "name": "2", "value": 2, "valueType": { - "$ref": "22" + "$ref": "18" }, "enumType": { - "$ref": "24" + "$ref": "17" }, "decorators": [] } @@ -304,12 +209,12 @@ "decorators": [] }, { - "$id": "29", + "$id": "21", "kind": "enum", "name": "UnionFloatLiteralPropertyProperty", "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteralProperty.property.anonymous", "valueType": { - "$id": "30", + "$id": "22", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -317,77 +222,28 @@ }, "values": [ { - "$id": "31", + "$id": "23", "kind": "enumvalue", "name": "1.25", "value": 1.25, "valueType": { - "$ref": "30" + "$ref": "22" }, "enumType": { - "$id": "32", - "kind": "enum", - "decorators": [], - "name": "UnionFloatLiteralPropertyProperty", - "isGeneratedName": true, - "namespace": "Type.Property.Optional", - "valueType": { - "$id": "33", - "kind": "float32", - "decorators": [], - "name": "float32", - "doc": "A 32 bit floating point number. (`±1.5 x 10^−45` to `±3.4 x 10^38`)", - "crossLanguageDefinitionId": "TypeSpec.float32" - }, - "values": [ - { - "$id": "34", - "kind": "enumvalue", - "decorators": [], - "name": "1.25", - "value": 1.25, - "valueType": { - "$ref": "33" - }, - "enumType": { - "$ref": "32" - } - }, - { - "$id": "35", - "kind": "enumvalue", - "decorators": [], - "name": "2.375", - "value": 2.375, - "valueType": { - "$ref": "33" - }, - "enumType": { - "$ref": "32" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteralProperty.property.anonymous", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "21" }, "decorators": [] }, { - "$id": "36", + "$id": "24", "kind": "enumvalue", "name": "2.375", "value": 2.375, "valueType": { - "$ref": "30" + "$ref": "22" }, "enumType": { - "$ref": "32" + "$ref": "21" }, "decorators": [] } @@ -401,13 +257,13 @@ ], "constants": [ { - "$id": "37", + "$id": "25", "kind": "constant", "name": "BooleanLiteralPropertyProperty", "namespace": "Type.Property.Optional", "usage": "Input,Output,Json", "valueType": { - "$id": "38", + "$id": "26", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -417,13 +273,13 @@ "decorators": [] }, { - "$id": "39", + "$id": "27", "kind": "constant", "name": "getAllContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "40", + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -433,13 +289,13 @@ "decorators": [] }, { - "$id": "41", + "$id": "29", "kind": "constant", "name": "getDefaultContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "42", + "$id": "30", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -449,13 +305,13 @@ "decorators": [] }, { - "$id": "43", + "$id": "31", "kind": "constant", "name": "putAllContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "44", + "$id": "32", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -465,13 +321,13 @@ "decorators": [] }, { - "$id": "45", + "$id": "33", "kind": "constant", "name": "putDefaultContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "46", + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -481,13 +337,13 @@ "decorators": [] }, { - "$id": "47", + "$id": "35", "kind": "constant", "name": "getAllContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "48", + "$id": "36", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -497,13 +353,13 @@ "decorators": [] }, { - "$id": "49", + "$id": "37", "kind": "constant", "name": "getDefaultContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "50", + "$id": "38", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -513,13 +369,13 @@ "decorators": [] }, { - "$id": "51", + "$id": "39", "kind": "constant", "name": "putAllContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "52", + "$id": "40", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -529,13 +385,13 @@ "decorators": [] }, { - "$id": "53", + "$id": "41", "kind": "constant", "name": "putDefaultContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "54", + "$id": "42", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -545,13 +401,13 @@ "decorators": [] }, { - "$id": "55", + "$id": "43", "kind": "constant", "name": "getAllContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "56", + "$id": "44", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -561,13 +417,13 @@ "decorators": [] }, { - "$id": "57", + "$id": "45", "kind": "constant", "name": "getDefaultContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "58", + "$id": "46", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -577,13 +433,13 @@ "decorators": [] }, { - "$id": "59", + "$id": "47", "kind": "constant", "name": "putAllContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "60", + "$id": "48", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -593,13 +449,13 @@ "decorators": [] }, { - "$id": "61", + "$id": "49", "kind": "constant", "name": "putDefaultContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "62", + "$id": "50", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -609,13 +465,13 @@ "decorators": [] }, { - "$id": "63", + "$id": "51", "kind": "constant", "name": "getAllContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "64", + "$id": "52", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -625,13 +481,13 @@ "decorators": [] }, { - "$id": "65", + "$id": "53", "kind": "constant", "name": "getDefaultContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "66", + "$id": "54", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -641,13 +497,13 @@ "decorators": [] }, { - "$id": "67", + "$id": "55", "kind": "constant", "name": "putAllContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "68", + "$id": "56", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -657,13 +513,13 @@ "decorators": [] }, { - "$id": "69", + "$id": "57", "kind": "constant", "name": "putDefaultContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "70", + "$id": "58", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -673,13 +529,13 @@ "decorators": [] }, { - "$id": "71", + "$id": "59", "kind": "constant", "name": "getAllContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "72", + "$id": "60", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -689,13 +545,13 @@ "decorators": [] }, { - "$id": "73", + "$id": "61", "kind": "constant", "name": "getDefaultContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "74", + "$id": "62", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -705,13 +561,13 @@ "decorators": [] }, { - "$id": "75", + "$id": "63", "kind": "constant", "name": "putAllContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "76", + "$id": "64", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -721,13 +577,13 @@ "decorators": [] }, { - "$id": "77", + "$id": "65", "kind": "constant", "name": "putDefaultContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "78", + "$id": "66", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -737,13 +593,13 @@ "decorators": [] }, { - "$id": "79", + "$id": "67", "kind": "constant", "name": "getAllContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "80", + "$id": "68", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -753,13 +609,13 @@ "decorators": [] }, { - "$id": "81", + "$id": "69", "kind": "constant", "name": "getDefaultContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "82", + "$id": "70", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -769,13 +625,13 @@ "decorators": [] }, { - "$id": "83", + "$id": "71", "kind": "constant", "name": "putAllContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "84", + "$id": "72", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -785,13 +641,13 @@ "decorators": [] }, { - "$id": "85", + "$id": "73", "kind": "constant", "name": "putDefaultContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "86", + "$id": "74", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -801,13 +657,13 @@ "decorators": [] }, { - "$id": "87", + "$id": "75", "kind": "constant", "name": "getAllContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "88", + "$id": "76", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -817,13 +673,13 @@ "decorators": [] }, { - "$id": "89", + "$id": "77", "kind": "constant", "name": "getDefaultContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "90", + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -833,13 +689,13 @@ "decorators": [] }, { - "$id": "91", + "$id": "79", "kind": "constant", "name": "putAllContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "92", + "$id": "80", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -849,13 +705,13 @@ "decorators": [] }, { - "$id": "93", + "$id": "81", "kind": "constant", "name": "putDefaultContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "94", + "$id": "82", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -865,13 +721,13 @@ "decorators": [] }, { - "$id": "95", + "$id": "83", "kind": "constant", "name": "getAllContentType7", "namespace": "", "usage": "None", "valueType": { - "$id": "96", + "$id": "84", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -881,13 +737,13 @@ "decorators": [] }, { - "$id": "97", + "$id": "85", "kind": "constant", "name": "getDefaultContentType7", "namespace": "", "usage": "None", "valueType": { - "$id": "98", + "$id": "86", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -897,13 +753,13 @@ "decorators": [] }, { - "$id": "99", + "$id": "87", "kind": "constant", "name": "putAllContentType7", "namespace": "", "usage": "None", "valueType": { - "$id": "100", + "$id": "88", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -913,13 +769,13 @@ "decorators": [] }, { - "$id": "101", + "$id": "89", "kind": "constant", "name": "putDefaultContentType7", "namespace": "", "usage": "None", "valueType": { - "$id": "102", + "$id": "90", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -929,13 +785,13 @@ "decorators": [] }, { - "$id": "103", + "$id": "91", "kind": "constant", "name": "getAllContentType8", "namespace": "", "usage": "None", "valueType": { - "$id": "104", + "$id": "92", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -945,13 +801,13 @@ "decorators": [] }, { - "$id": "105", + "$id": "93", "kind": "constant", "name": "getDefaultContentType8", "namespace": "", "usage": "None", "valueType": { - "$id": "106", + "$id": "94", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -961,13 +817,13 @@ "decorators": [] }, { - "$id": "107", + "$id": "95", "kind": "constant", "name": "putAllContentType8", "namespace": "", "usage": "None", "valueType": { - "$id": "108", + "$id": "96", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -977,13 +833,13 @@ "decorators": [] }, { - "$id": "109", + "$id": "97", "kind": "constant", "name": "putDefaultContentType8", "namespace": "", "usage": "None", "valueType": { - "$id": "110", + "$id": "98", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -993,13 +849,13 @@ "decorators": [] }, { - "$id": "111", + "$id": "99", "kind": "constant", "name": "getAllContentType9", "namespace": "", "usage": "None", "valueType": { - "$id": "112", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1009,13 +865,13 @@ "decorators": [] }, { - "$id": "113", + "$id": "101", "kind": "constant", "name": "getDefaultContentType9", "namespace": "", "usage": "None", "valueType": { - "$id": "114", + "$id": "102", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1025,13 +881,13 @@ "decorators": [] }, { - "$id": "115", + "$id": "103", "kind": "constant", "name": "putAllContentType9", "namespace": "", "usage": "None", "valueType": { - "$id": "116", + "$id": "104", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1041,13 +897,13 @@ "decorators": [] }, { - "$id": "117", + "$id": "105", "kind": "constant", "name": "putDefaultContentType9", "namespace": "", "usage": "None", "valueType": { - "$id": "118", + "$id": "106", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1057,13 +913,13 @@ "decorators": [] }, { - "$id": "119", + "$id": "107", "kind": "constant", "name": "getAllContentType10", "namespace": "", "usage": "None", "valueType": { - "$id": "120", + "$id": "108", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1073,13 +929,13 @@ "decorators": [] }, { - "$id": "121", + "$id": "109", "kind": "constant", "name": "getDefaultContentType10", "namespace": "", "usage": "None", "valueType": { - "$id": "122", + "$id": "110", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1089,13 +945,13 @@ "decorators": [] }, { - "$id": "123", + "$id": "111", "kind": "constant", "name": "putAllContentType10", "namespace": "", "usage": "None", "valueType": { - "$id": "124", + "$id": "112", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1105,13 +961,13 @@ "decorators": [] }, { - "$id": "125", + "$id": "113", "kind": "constant", "name": "putDefaultContentType10", "namespace": "", "usage": "None", "valueType": { - "$id": "126", + "$id": "114", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1121,13 +977,13 @@ "decorators": [] }, { - "$id": "127", + "$id": "115", "kind": "constant", "name": "getAllContentType11", "namespace": "", "usage": "None", "valueType": { - "$id": "128", + "$id": "116", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1137,13 +993,13 @@ "decorators": [] }, { - "$id": "129", + "$id": "117", "kind": "constant", "name": "getDefaultContentType11", "namespace": "", "usage": "None", "valueType": { - "$id": "130", + "$id": "118", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1153,13 +1009,13 @@ "decorators": [] }, { - "$id": "131", + "$id": "119", "kind": "constant", "name": "putAllContentType11", "namespace": "", "usage": "None", "valueType": { - "$id": "132", + "$id": "120", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1169,13 +1025,13 @@ "decorators": [] }, { - "$id": "133", + "$id": "121", "kind": "constant", "name": "putDefaultContentType11", "namespace": "", "usage": "None", "valueType": { - "$id": "134", + "$id": "122", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1185,13 +1041,13 @@ "decorators": [] }, { - "$id": "135", + "$id": "123", "kind": "constant", "name": "getAllContentType12", "namespace": "", "usage": "None", "valueType": { - "$id": "136", + "$id": "124", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1201,13 +1057,13 @@ "decorators": [] }, { - "$id": "137", + "$id": "125", "kind": "constant", "name": "getDefaultContentType12", "namespace": "", "usage": "None", "valueType": { - "$id": "138", + "$id": "126", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1217,13 +1073,13 @@ "decorators": [] }, { - "$id": "139", + "$id": "127", "kind": "constant", "name": "putAllContentType12", "namespace": "", "usage": "None", "valueType": { - "$id": "140", + "$id": "128", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1233,13 +1089,13 @@ "decorators": [] }, { - "$id": "141", + "$id": "129", "kind": "constant", "name": "putDefaultContentType12", "namespace": "", "usage": "None", "valueType": { - "$id": "142", + "$id": "130", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1249,13 +1105,13 @@ "decorators": [] }, { - "$id": "143", + "$id": "131", "kind": "constant", "name": "getAllContentType13", "namespace": "", "usage": "None", "valueType": { - "$id": "144", + "$id": "132", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1265,13 +1121,13 @@ "decorators": [] }, { - "$id": "145", + "$id": "133", "kind": "constant", "name": "getDefaultContentType13", "namespace": "", "usage": "None", "valueType": { - "$id": "146", + "$id": "134", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1281,13 +1137,13 @@ "decorators": [] }, { - "$id": "147", + "$id": "135", "kind": "constant", "name": "putAllContentType13", "namespace": "", "usage": "None", "valueType": { - "$id": "148", + "$id": "136", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1297,13 +1153,13 @@ "decorators": [] }, { - "$id": "149", + "$id": "137", "kind": "constant", "name": "putDefaultContentType13", "namespace": "", "usage": "None", "valueType": { - "$id": "150", + "$id": "138", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1313,13 +1169,13 @@ "decorators": [] }, { - "$id": "151", + "$id": "139", "kind": "constant", "name": "getAllContentType14", "namespace": "", "usage": "None", "valueType": { - "$id": "152", + "$id": "140", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1329,13 +1185,13 @@ "decorators": [] }, { - "$id": "153", + "$id": "141", "kind": "constant", "name": "getDefaultContentType14", "namespace": "", "usage": "None", "valueType": { - "$id": "154", + "$id": "142", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1345,13 +1201,13 @@ "decorators": [] }, { - "$id": "155", + "$id": "143", "kind": "constant", "name": "putAllContentType14", "namespace": "", "usage": "None", "valueType": { - "$id": "156", + "$id": "144", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1361,13 +1217,13 @@ "decorators": [] }, { - "$id": "157", + "$id": "145", "kind": "constant", "name": "putDefaultContentType14", "namespace": "", "usage": "None", "valueType": { - "$id": "158", + "$id": "146", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1377,13 +1233,13 @@ "decorators": [] }, { - "$id": "159", + "$id": "147", "kind": "constant", "name": "getAllContentType15", "namespace": "", "usage": "None", "valueType": { - "$id": "160", + "$id": "148", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1393,13 +1249,13 @@ "decorators": [] }, { - "$id": "161", + "$id": "149", "kind": "constant", "name": "getRequiredOnlyContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "162", + "$id": "150", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1409,13 +1265,13 @@ "decorators": [] }, { - "$id": "163", + "$id": "151", "kind": "constant", "name": "putAllContentType15", "namespace": "", "usage": "None", "valueType": { - "$id": "164", + "$id": "152", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1425,13 +1281,13 @@ "decorators": [] }, { - "$id": "165", + "$id": "153", "kind": "constant", "name": "putRequiredOnlyContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "166", + "$id": "154", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1443,7 +1299,7 @@ ], "models": [ { - "$id": "167", + "$id": "155", "kind": "model", "name": "StringProperty", "namespace": "Type.Property.Optional", @@ -1453,13 +1309,13 @@ "decorators": [], "properties": [ { - "$id": "168", + "$id": "156", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "169", + "$id": "157", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1481,7 +1337,7 @@ ] }, { - "$id": "170", + "$id": "158", "kind": "model", "name": "BytesProperty", "namespace": "Type.Property.Optional", @@ -1491,13 +1347,13 @@ "decorators": [], "properties": [ { - "$id": "171", + "$id": "159", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "172", + "$id": "160", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1520,7 +1376,7 @@ ] }, { - "$id": "173", + "$id": "161", "kind": "model", "name": "DatetimeProperty", "namespace": "Type.Property.Optional", @@ -1530,18 +1386,18 @@ "decorators": [], "properties": [ { - "$id": "174", + "$id": "162", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "175", + "$id": "163", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "176", + "$id": "164", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1566,7 +1422,7 @@ ] }, { - "$id": "177", + "$id": "165", "kind": "model", "name": "DurationProperty", "namespace": "Type.Property.Optional", @@ -1576,18 +1432,18 @@ "decorators": [], "properties": [ { - "$id": "178", + "$id": "166", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "179", + "$id": "167", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "180", + "$id": "168", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1612,7 +1468,7 @@ ] }, { - "$id": "181", + "$id": "169", "kind": "model", "name": "PlainDateProperty", "namespace": "Type.Property.Optional", @@ -1622,13 +1478,13 @@ "decorators": [], "properties": [ { - "$id": "182", + "$id": "170", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "183", + "$id": "171", "kind": "plainDate", "name": "plainDate", "crossLanguageDefinitionId": "TypeSpec.plainDate", @@ -1650,7 +1506,7 @@ ] }, { - "$id": "184", + "$id": "172", "kind": "model", "name": "PlainTimeProperty", "namespace": "Type.Property.Optional", @@ -1660,13 +1516,13 @@ "decorators": [], "properties": [ { - "$id": "185", + "$id": "173", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "186", + "$id": "174", "kind": "plainTime", "name": "plainTime", "crossLanguageDefinitionId": "TypeSpec.plainTime", @@ -1688,7 +1544,7 @@ ] }, { - "$id": "187", + "$id": "175", "kind": "model", "name": "CollectionsByteProperty", "namespace": "Type.Property.Optional", @@ -1698,17 +1554,17 @@ "decorators": [], "properties": [ { - "$id": "188", + "$id": "176", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "189", + "$id": "177", "kind": "array", "name": "Array", "valueType": { - "$id": "190", + "$id": "178", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1734,7 +1590,7 @@ ] }, { - "$id": "191", + "$id": "179", "kind": "model", "name": "CollectionsModelProperty", "namespace": "Type.Property.Optional", @@ -1744,17 +1600,17 @@ "decorators": [], "properties": [ { - "$id": "192", + "$id": "180", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "193", + "$id": "181", "kind": "array", "name": "ArrayStringProperty", "valueType": { - "$ref": "167" + "$ref": "155" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -1775,7 +1631,7 @@ ] }, { - "$id": "194", + "$id": "182", "kind": "model", "name": "StringLiteralProperty", "namespace": "Type.Property.Optional", @@ -1785,7 +1641,7 @@ "decorators": [], "properties": [ { - "$id": "195", + "$id": "183", "kind": "property", "name": "property", "serializedName": "property", @@ -1809,7 +1665,7 @@ ] }, { - "$id": "196", + "$id": "184", "kind": "model", "name": "IntLiteralProperty", "namespace": "Type.Property.Optional", @@ -1819,7 +1675,7 @@ "decorators": [], "properties": [ { - "$id": "197", + "$id": "185", "kind": "property", "name": "property", "serializedName": "property", @@ -1843,7 +1699,7 @@ ] }, { - "$id": "198", + "$id": "186", "kind": "model", "name": "FloatLiteralProperty", "namespace": "Type.Property.Optional", @@ -1853,7 +1709,7 @@ "decorators": [], "properties": [ { - "$id": "199", + "$id": "187", "kind": "property", "name": "property", "serializedName": "property", @@ -1877,7 +1733,7 @@ ] }, { - "$id": "200", + "$id": "188", "kind": "model", "name": "BooleanLiteralProperty", "namespace": "Type.Property.Optional", @@ -1887,13 +1743,13 @@ "decorators": [], "properties": [ { - "$id": "201", + "$id": "189", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "37" + "$ref": "25" }, "optional": true, "readOnly": false, @@ -1911,7 +1767,7 @@ ] }, { - "$id": "202", + "$id": "190", "kind": "model", "name": "UnionStringLiteralProperty", "namespace": "Type.Property.Optional", @@ -1921,7 +1777,7 @@ "decorators": [], "properties": [ { - "$id": "203", + "$id": "191", "kind": "property", "name": "property", "serializedName": "property", @@ -1945,7 +1801,7 @@ ] }, { - "$id": "204", + "$id": "192", "kind": "model", "name": "UnionIntLiteralProperty", "namespace": "Type.Property.Optional", @@ -1955,13 +1811,13 @@ "decorators": [], "properties": [ { - "$id": "205", + "$id": "193", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "21" + "$ref": "17" }, "optional": true, "readOnly": false, @@ -1979,7 +1835,7 @@ ] }, { - "$id": "206", + "$id": "194", "kind": "model", "name": "UnionFloatLiteralProperty", "namespace": "Type.Property.Optional", @@ -1989,13 +1845,13 @@ "decorators": [], "properties": [ { - "$id": "207", + "$id": "195", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "29" + "$ref": "21" }, "optional": true, "readOnly": false, @@ -2013,7 +1869,7 @@ ] }, { - "$id": "208", + "$id": "196", "kind": "model", "name": "RequiredAndOptionalProperty", "namespace": "Type.Property.Optional", @@ -2023,13 +1879,13 @@ "decorators": [], "properties": [ { - "$id": "209", + "$id": "197", "kind": "property", "name": "optionalProperty", "serializedName": "optionalProperty", "doc": "optional string property", "type": { - "$id": "210", + "$id": "198", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2049,13 +1905,13 @@ "isHttpMetadata": false }, { - "$id": "211", + "$id": "199", "kind": "property", "name": "requiredProperty", "serializedName": "requiredProperty", "doc": "required int property", "type": { - "$id": "212", + "$id": "200", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2079,7 +1935,7 @@ ], "clients": [ { - "$id": "213", + "$id": "201", "kind": "client", "name": "OptionalClient", "namespace": "Type.Property.Optional", @@ -2087,13 +1943,13 @@ "methods": [], "parameters": [ { - "$id": "214", + "$id": "202", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "215", + "$id": "203", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2104,7 +1960,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "216", + "$id": "204", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2122,32 +1978,32 @@ "apiVersions": [], "children": [ { - "$id": "217", + "$id": "205", "kind": "client", "name": "String", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "218", + "$id": "206", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "219", + "$id": "207", "name": "getAll", "resourceName": "String", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "220", + "$id": "208", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "39" + "$ref": "27" }, "isApiVersion": false, "optional": false, @@ -2164,7 +2020,7 @@ 200 ], "bodyType": { - "$ref": "167" + "$ref": "155" }, "headers": [], "isErrorResponse": false, @@ -2184,12 +2040,12 @@ }, "parameters": [ { - "$id": "221", + "$id": "209", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "39" + "$ref": "27" }, "location": "Header", "isApiVersion": false, @@ -2203,7 +2059,7 @@ ], "response": { "type": { - "$ref": "167" + "$ref": "155" } }, "isOverride": false, @@ -2212,26 +2068,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.String.getAll" }, { - "$id": "222", + "$id": "210", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "223", + "$id": "211", "name": "getDefault", "resourceName": "String", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "224", + "$id": "212", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "41" + "$ref": "29" }, "isApiVersion": false, "optional": false, @@ -2248,7 +2104,7 @@ 200 ], "bodyType": { - "$ref": "167" + "$ref": "155" }, "headers": [], "isErrorResponse": false, @@ -2268,12 +2124,12 @@ }, "parameters": [ { - "$id": "225", + "$id": "213", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "41" + "$ref": "29" }, "location": "Header", "isApiVersion": false, @@ -2287,7 +2143,7 @@ ], "response": { "type": { - "$ref": "167" + "$ref": "155" } }, "isOverride": false, @@ -2296,27 +2152,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.String.getDefault" }, { - "$id": "226", + "$id": "214", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "227", + "$id": "215", "name": "putAll", "resourceName": "String", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "228", + "$id": "216", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "43" + "$ref": "31" }, "isApiVersion": false, "optional": false, @@ -2327,12 +2183,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.String.putAll.contentType" }, { - "$id": "229", + "$id": "217", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "167" + "$ref": "155" }, "isApiVersion": false, "contentTypes": [ @@ -2369,12 +2225,12 @@ }, "parameters": [ { - "$id": "230", + "$id": "218", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "167" + "$ref": "155" }, "location": "Body", "isApiVersion": false, @@ -2386,13 +2242,13 @@ "decorators": [] }, { - "$id": "231", + "$id": "219", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "43" + "$ref": "31" }, "location": "Header", "isApiVersion": false, @@ -2411,27 +2267,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.String.putAll" }, { - "$id": "232", + "$id": "220", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "233", + "$id": "221", "name": "putDefault", "resourceName": "String", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "234", + "$id": "222", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "45" + "$ref": "33" }, "isApiVersion": false, "optional": false, @@ -2442,12 +2298,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.String.putDefault.contentType" }, { - "$id": "235", + "$id": "223", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "167" + "$ref": "155" }, "isApiVersion": false, "contentTypes": [ @@ -2484,12 +2340,12 @@ }, "parameters": [ { - "$id": "236", + "$id": "224", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "167" + "$ref": "155" }, "location": "Body", "isApiVersion": false, @@ -2501,13 +2357,13 @@ "decorators": [] }, { - "$id": "237", + "$id": "225", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "45" + "$ref": "33" }, "location": "Header", "isApiVersion": false, @@ -2528,13 +2384,13 @@ ], "parameters": [ { - "$id": "238", + "$id": "226", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "239", + "$id": "227", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2545,7 +2401,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "240", + "$id": "228", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2562,36 +2418,36 @@ "crossLanguageDefinitionId": "Type.Property.Optional.String", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "241", + "$id": "229", "kind": "client", "name": "Bytes", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "242", + "$id": "230", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "243", + "$id": "231", "name": "getAll", "resourceName": "Bytes", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "244", + "$id": "232", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "47" + "$ref": "35" }, "isApiVersion": false, "optional": false, @@ -2608,7 +2464,7 @@ 200 ], "bodyType": { - "$ref": "170" + "$ref": "158" }, "headers": [], "isErrorResponse": false, @@ -2628,12 +2484,12 @@ }, "parameters": [ { - "$id": "245", + "$id": "233", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "47" + "$ref": "35" }, "location": "Header", "isApiVersion": false, @@ -2647,7 +2503,7 @@ ], "response": { "type": { - "$ref": "170" + "$ref": "158" } }, "isOverride": false, @@ -2656,26 +2512,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll" }, { - "$id": "246", + "$id": "234", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "247", + "$id": "235", "name": "getDefault", "resourceName": "Bytes", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "248", + "$id": "236", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "49" + "$ref": "37" }, "isApiVersion": false, "optional": false, @@ -2692,7 +2548,7 @@ 200 ], "bodyType": { - "$ref": "170" + "$ref": "158" }, "headers": [], "isErrorResponse": false, @@ -2712,12 +2568,12 @@ }, "parameters": [ { - "$id": "249", + "$id": "237", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "49" + "$ref": "37" }, "location": "Header", "isApiVersion": false, @@ -2731,7 +2587,7 @@ ], "response": { "type": { - "$ref": "170" + "$ref": "158" } }, "isOverride": false, @@ -2740,27 +2596,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getDefault" }, { - "$id": "250", + "$id": "238", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "251", + "$id": "239", "name": "putAll", "resourceName": "Bytes", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "252", + "$id": "240", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "51" + "$ref": "39" }, "isApiVersion": false, "optional": false, @@ -2771,12 +2627,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll.contentType" }, { - "$id": "253", + "$id": "241", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "170" + "$ref": "158" }, "isApiVersion": false, "contentTypes": [ @@ -2813,12 +2669,12 @@ }, "parameters": [ { - "$id": "254", + "$id": "242", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "170" + "$ref": "158" }, "location": "Body", "isApiVersion": false, @@ -2830,13 +2686,13 @@ "decorators": [] }, { - "$id": "255", + "$id": "243", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "51" + "$ref": "39" }, "location": "Header", "isApiVersion": false, @@ -2855,27 +2711,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll" }, { - "$id": "256", + "$id": "244", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "257", + "$id": "245", "name": "putDefault", "resourceName": "Bytes", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "258", + "$id": "246", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "53" + "$ref": "41" }, "isApiVersion": false, "optional": false, @@ -2886,12 +2742,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putDefault.contentType" }, { - "$id": "259", + "$id": "247", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "170" + "$ref": "158" }, "isApiVersion": false, "contentTypes": [ @@ -2928,12 +2784,12 @@ }, "parameters": [ { - "$id": "260", + "$id": "248", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "170" + "$ref": "158" }, "location": "Body", "isApiVersion": false, @@ -2945,13 +2801,13 @@ "decorators": [] }, { - "$id": "261", + "$id": "249", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "53" + "$ref": "41" }, "location": "Header", "isApiVersion": false, @@ -2972,13 +2828,13 @@ ], "parameters": [ { - "$id": "262", + "$id": "250", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "263", + "$id": "251", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2989,7 +2845,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "264", + "$id": "252", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3006,36 +2862,36 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Bytes", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "265", + "$id": "253", "kind": "client", "name": "Datetime", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "266", + "$id": "254", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "267", + "$id": "255", "name": "getAll", "resourceName": "Datetime", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "268", + "$id": "256", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "55" + "$ref": "43" }, "isApiVersion": false, "optional": false, @@ -3052,7 +2908,7 @@ 200 ], "bodyType": { - "$ref": "173" + "$ref": "161" }, "headers": [], "isErrorResponse": false, @@ -3072,12 +2928,12 @@ }, "parameters": [ { - "$id": "269", + "$id": "257", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "55" + "$ref": "43" }, "location": "Header", "isApiVersion": false, @@ -3091,7 +2947,7 @@ ], "response": { "type": { - "$ref": "173" + "$ref": "161" } }, "isOverride": false, @@ -3100,26 +2956,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getAll" }, { - "$id": "270", + "$id": "258", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "271", + "$id": "259", "name": "getDefault", "resourceName": "Datetime", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "272", + "$id": "260", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "57" + "$ref": "45" }, "isApiVersion": false, "optional": false, @@ -3136,7 +2992,7 @@ 200 ], "bodyType": { - "$ref": "173" + "$ref": "161" }, "headers": [], "isErrorResponse": false, @@ -3156,12 +3012,12 @@ }, "parameters": [ { - "$id": "273", + "$id": "261", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "57" + "$ref": "45" }, "location": "Header", "isApiVersion": false, @@ -3175,7 +3031,7 @@ ], "response": { "type": { - "$ref": "173" + "$ref": "161" } }, "isOverride": false, @@ -3184,27 +3040,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault" }, { - "$id": "274", + "$id": "262", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "275", + "$id": "263", "name": "putAll", "resourceName": "Datetime", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "276", + "$id": "264", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "59" + "$ref": "47" }, "isApiVersion": false, "optional": false, @@ -3215,12 +3071,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll.contentType" }, { - "$id": "277", + "$id": "265", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "173" + "$ref": "161" }, "isApiVersion": false, "contentTypes": [ @@ -3257,12 +3113,12 @@ }, "parameters": [ { - "$id": "278", + "$id": "266", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "173" + "$ref": "161" }, "location": "Body", "isApiVersion": false, @@ -3274,13 +3130,13 @@ "decorators": [] }, { - "$id": "279", + "$id": "267", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "59" + "$ref": "47" }, "location": "Header", "isApiVersion": false, @@ -3299,27 +3155,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll" }, { - "$id": "280", + "$id": "268", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "281", + "$id": "269", "name": "putDefault", "resourceName": "Datetime", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "282", + "$id": "270", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "61" + "$ref": "49" }, "isApiVersion": false, "optional": false, @@ -3330,12 +3186,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putDefault.contentType" }, { - "$id": "283", + "$id": "271", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "173" + "$ref": "161" }, "isApiVersion": false, "contentTypes": [ @@ -3372,12 +3228,12 @@ }, "parameters": [ { - "$id": "284", + "$id": "272", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "173" + "$ref": "161" }, "location": "Body", "isApiVersion": false, @@ -3389,13 +3245,13 @@ "decorators": [] }, { - "$id": "285", + "$id": "273", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "61" + "$ref": "49" }, "location": "Header", "isApiVersion": false, @@ -3416,13 +3272,13 @@ ], "parameters": [ { - "$id": "286", + "$id": "274", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "287", + "$id": "275", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3433,7 +3289,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "288", + "$id": "276", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3450,36 +3306,36 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Datetime", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "289", + "$id": "277", "kind": "client", "name": "Duration", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "290", + "$id": "278", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "291", + "$id": "279", "name": "getAll", "resourceName": "Duration", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "292", + "$id": "280", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "63" + "$ref": "51" }, "isApiVersion": false, "optional": false, @@ -3496,7 +3352,7 @@ 200 ], "bodyType": { - "$ref": "177" + "$ref": "165" }, "headers": [], "isErrorResponse": false, @@ -3516,12 +3372,12 @@ }, "parameters": [ { - "$id": "293", + "$id": "281", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "63" + "$ref": "51" }, "location": "Header", "isApiVersion": false, @@ -3535,7 +3391,7 @@ ], "response": { "type": { - "$ref": "177" + "$ref": "165" } }, "isOverride": false, @@ -3544,26 +3400,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll" }, { - "$id": "294", + "$id": "282", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "295", + "$id": "283", "name": "getDefault", "resourceName": "Duration", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "296", + "$id": "284", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "65" + "$ref": "53" }, "isApiVersion": false, "optional": false, @@ -3580,7 +3436,7 @@ 200 ], "bodyType": { - "$ref": "177" + "$ref": "165" }, "headers": [], "isErrorResponse": false, @@ -3600,12 +3456,12 @@ }, "parameters": [ { - "$id": "297", + "$id": "285", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "65" + "$ref": "53" }, "location": "Header", "isApiVersion": false, @@ -3619,7 +3475,7 @@ ], "response": { "type": { - "$ref": "177" + "$ref": "165" } }, "isOverride": false, @@ -3628,27 +3484,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault" }, { - "$id": "298", + "$id": "286", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "299", + "$id": "287", "name": "putAll", "resourceName": "Duration", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "300", + "$id": "288", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "67" + "$ref": "55" }, "isApiVersion": false, "optional": false, @@ -3659,12 +3515,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll.contentType" }, { - "$id": "301", + "$id": "289", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "177" + "$ref": "165" }, "isApiVersion": false, "contentTypes": [ @@ -3701,12 +3557,12 @@ }, "parameters": [ { - "$id": "302", + "$id": "290", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "177" + "$ref": "165" }, "location": "Body", "isApiVersion": false, @@ -3718,13 +3574,13 @@ "decorators": [] }, { - "$id": "303", + "$id": "291", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "67" + "$ref": "55" }, "location": "Header", "isApiVersion": false, @@ -3743,27 +3599,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll" }, { - "$id": "304", + "$id": "292", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "305", + "$id": "293", "name": "putDefault", "resourceName": "Duration", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "306", + "$id": "294", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "69" + "$ref": "57" }, "isApiVersion": false, "optional": false, @@ -3774,12 +3630,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Duration.putDefault.contentType" }, { - "$id": "307", + "$id": "295", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "177" + "$ref": "165" }, "isApiVersion": false, "contentTypes": [ @@ -3816,12 +3672,12 @@ }, "parameters": [ { - "$id": "308", + "$id": "296", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "177" + "$ref": "165" }, "location": "Body", "isApiVersion": false, @@ -3833,13 +3689,13 @@ "decorators": [] }, { - "$id": "309", + "$id": "297", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "69" + "$ref": "57" }, "location": "Header", "isApiVersion": false, @@ -3860,13 +3716,13 @@ ], "parameters": [ { - "$id": "310", + "$id": "298", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "311", + "$id": "299", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3877,7 +3733,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "312", + "$id": "300", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3894,36 +3750,36 @@ "crossLanguageDefinitionId": "Type.Property.Optional.Duration", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "313", + "$id": "301", "kind": "client", "name": "PlainDate", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "314", + "$id": "302", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "315", + "$id": "303", "name": "getAll", "resourceName": "PlainDate", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "316", + "$id": "304", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "71" + "$ref": "59" }, "isApiVersion": false, "optional": false, @@ -3940,7 +3796,7 @@ 200 ], "bodyType": { - "$ref": "181" + "$ref": "169" }, "headers": [], "isErrorResponse": false, @@ -3960,12 +3816,12 @@ }, "parameters": [ { - "$id": "317", + "$id": "305", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "71" + "$ref": "59" }, "location": "Header", "isApiVersion": false, @@ -3979,7 +3835,7 @@ ], "response": { "type": { - "$ref": "181" + "$ref": "169" } }, "isOverride": false, @@ -3988,26 +3844,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll" }, { - "$id": "318", + "$id": "306", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "319", + "$id": "307", "name": "getDefault", "resourceName": "PlainDate", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "320", + "$id": "308", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "73" + "$ref": "61" }, "isApiVersion": false, "optional": false, @@ -4024,7 +3880,7 @@ 200 ], "bodyType": { - "$ref": "181" + "$ref": "169" }, "headers": [], "isErrorResponse": false, @@ -4044,12 +3900,12 @@ }, "parameters": [ { - "$id": "321", + "$id": "309", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "73" + "$ref": "61" }, "location": "Header", "isApiVersion": false, @@ -4063,7 +3919,7 @@ ], "response": { "type": { - "$ref": "181" + "$ref": "169" } }, "isOverride": false, @@ -4072,27 +3928,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault" }, { - "$id": "322", + "$id": "310", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "323", + "$id": "311", "name": "putAll", "resourceName": "PlainDate", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "324", + "$id": "312", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "75" + "$ref": "63" }, "isApiVersion": false, "optional": false, @@ -4103,12 +3959,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll.contentType" }, { - "$id": "325", + "$id": "313", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "181" + "$ref": "169" }, "isApiVersion": false, "contentTypes": [ @@ -4145,12 +4001,12 @@ }, "parameters": [ { - "$id": "326", + "$id": "314", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "181" + "$ref": "169" }, "location": "Body", "isApiVersion": false, @@ -4162,13 +4018,13 @@ "decorators": [] }, { - "$id": "327", + "$id": "315", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "75" + "$ref": "63" }, "location": "Header", "isApiVersion": false, @@ -4187,27 +4043,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll" }, { - "$id": "328", + "$id": "316", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "329", + "$id": "317", "name": "putDefault", "resourceName": "PlainDate", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "330", + "$id": "318", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "77" + "$ref": "65" }, "isApiVersion": false, "optional": false, @@ -4218,12 +4074,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putDefault.contentType" }, { - "$id": "331", + "$id": "319", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "181" + "$ref": "169" }, "isApiVersion": false, "contentTypes": [ @@ -4260,12 +4116,12 @@ }, "parameters": [ { - "$id": "332", + "$id": "320", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "181" + "$ref": "169" }, "location": "Body", "isApiVersion": false, @@ -4277,13 +4133,13 @@ "decorators": [] }, { - "$id": "333", + "$id": "321", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "77" + "$ref": "65" }, "location": "Header", "isApiVersion": false, @@ -4304,13 +4160,13 @@ ], "parameters": [ { - "$id": "334", + "$id": "322", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "335", + "$id": "323", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4321,7 +4177,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "336", + "$id": "324", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4338,36 +4194,36 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainDate", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "337", + "$id": "325", "kind": "client", "name": "PlainTime", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "338", + "$id": "326", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "339", + "$id": "327", "name": "getAll", "resourceName": "PlainTime", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "340", + "$id": "328", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "79" + "$ref": "67" }, "isApiVersion": false, "optional": false, @@ -4384,7 +4240,7 @@ 200 ], "bodyType": { - "$ref": "184" + "$ref": "172" }, "headers": [], "isErrorResponse": false, @@ -4404,12 +4260,12 @@ }, "parameters": [ { - "$id": "341", + "$id": "329", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "79" + "$ref": "67" }, "location": "Header", "isApiVersion": false, @@ -4423,7 +4279,7 @@ ], "response": { "type": { - "$ref": "184" + "$ref": "172" } }, "isOverride": false, @@ -4432,26 +4288,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll" }, { - "$id": "342", + "$id": "330", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "343", + "$id": "331", "name": "getDefault", "resourceName": "PlainTime", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "344", + "$id": "332", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "81" + "$ref": "69" }, "isApiVersion": false, "optional": false, @@ -4468,7 +4324,7 @@ 200 ], "bodyType": { - "$ref": "184" + "$ref": "172" }, "headers": [], "isErrorResponse": false, @@ -4488,12 +4344,12 @@ }, "parameters": [ { - "$id": "345", + "$id": "333", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "81" + "$ref": "69" }, "location": "Header", "isApiVersion": false, @@ -4507,7 +4363,7 @@ ], "response": { "type": { - "$ref": "184" + "$ref": "172" } }, "isOverride": false, @@ -4516,27 +4372,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault" }, { - "$id": "346", + "$id": "334", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "347", + "$id": "335", "name": "putAll", "resourceName": "PlainTime", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "348", + "$id": "336", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "83" + "$ref": "71" }, "isApiVersion": false, "optional": false, @@ -4547,12 +4403,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll.contentType" }, { - "$id": "349", + "$id": "337", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "184" + "$ref": "172" }, "isApiVersion": false, "contentTypes": [ @@ -4589,12 +4445,12 @@ }, "parameters": [ { - "$id": "350", + "$id": "338", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "184" + "$ref": "172" }, "location": "Body", "isApiVersion": false, @@ -4606,13 +4462,13 @@ "decorators": [] }, { - "$id": "351", + "$id": "339", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "83" + "$ref": "71" }, "location": "Header", "isApiVersion": false, @@ -4631,27 +4487,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll" }, { - "$id": "352", + "$id": "340", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "353", + "$id": "341", "name": "putDefault", "resourceName": "PlainTime", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "354", + "$id": "342", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "85" + "$ref": "73" }, "isApiVersion": false, "optional": false, @@ -4662,12 +4518,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putDefault.contentType" }, { - "$id": "355", + "$id": "343", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "184" + "$ref": "172" }, "isApiVersion": false, "contentTypes": [ @@ -4704,12 +4560,12 @@ }, "parameters": [ { - "$id": "356", + "$id": "344", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "184" + "$ref": "172" }, "location": "Body", "isApiVersion": false, @@ -4721,13 +4577,13 @@ "decorators": [] }, { - "$id": "357", + "$id": "345", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "85" + "$ref": "73" }, "location": "Header", "isApiVersion": false, @@ -4748,13 +4604,13 @@ ], "parameters": [ { - "$id": "358", + "$id": "346", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "359", + "$id": "347", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4765,7 +4621,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "360", + "$id": "348", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4782,36 +4638,36 @@ "crossLanguageDefinitionId": "Type.Property.Optional.PlainTime", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "361", + "$id": "349", "kind": "client", "name": "CollectionsByte", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "362", + "$id": "350", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "363", + "$id": "351", "name": "getAll", "resourceName": "CollectionsByte", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "364", + "$id": "352", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "87" + "$ref": "75" }, "isApiVersion": false, "optional": false, @@ -4828,7 +4684,7 @@ 200 ], "bodyType": { - "$ref": "187" + "$ref": "175" }, "headers": [], "isErrorResponse": false, @@ -4848,12 +4704,12 @@ }, "parameters": [ { - "$id": "365", + "$id": "353", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "87" + "$ref": "75" }, "location": "Header", "isApiVersion": false, @@ -4867,7 +4723,7 @@ ], "response": { "type": { - "$ref": "187" + "$ref": "175" } }, "isOverride": false, @@ -4876,26 +4732,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll" }, { - "$id": "366", + "$id": "354", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "367", + "$id": "355", "name": "getDefault", "resourceName": "CollectionsByte", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "368", + "$id": "356", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "89" + "$ref": "77" }, "isApiVersion": false, "optional": false, @@ -4912,7 +4768,7 @@ 200 ], "bodyType": { - "$ref": "187" + "$ref": "175" }, "headers": [], "isErrorResponse": false, @@ -4932,12 +4788,12 @@ }, "parameters": [ { - "$id": "369", + "$id": "357", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "89" + "$ref": "77" }, "location": "Header", "isApiVersion": false, @@ -4951,7 +4807,7 @@ ], "response": { "type": { - "$ref": "187" + "$ref": "175" } }, "isOverride": false, @@ -4960,27 +4816,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault" }, { - "$id": "370", + "$id": "358", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "371", + "$id": "359", "name": "putAll", "resourceName": "CollectionsByte", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "372", + "$id": "360", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "91" + "$ref": "79" }, "isApiVersion": false, "optional": false, @@ -4991,12 +4847,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll.contentType" }, { - "$id": "373", + "$id": "361", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "187" + "$ref": "175" }, "isApiVersion": false, "contentTypes": [ @@ -5033,12 +4889,12 @@ }, "parameters": [ { - "$id": "374", + "$id": "362", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "187" + "$ref": "175" }, "location": "Body", "isApiVersion": false, @@ -5050,13 +4906,13 @@ "decorators": [] }, { - "$id": "375", + "$id": "363", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "91" + "$ref": "79" }, "location": "Header", "isApiVersion": false, @@ -5075,27 +4931,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll" }, { - "$id": "376", + "$id": "364", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "377", + "$id": "365", "name": "putDefault", "resourceName": "CollectionsByte", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "378", + "$id": "366", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "93" + "$ref": "81" }, "isApiVersion": false, "optional": false, @@ -5106,12 +4962,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putDefault.contentType" }, { - "$id": "379", + "$id": "367", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "187" + "$ref": "175" }, "isApiVersion": false, "contentTypes": [ @@ -5148,12 +5004,12 @@ }, "parameters": [ { - "$id": "380", + "$id": "368", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "187" + "$ref": "175" }, "location": "Body", "isApiVersion": false, @@ -5165,13 +5021,13 @@ "decorators": [] }, { - "$id": "381", + "$id": "369", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "93" + "$ref": "81" }, "location": "Header", "isApiVersion": false, @@ -5192,13 +5048,13 @@ ], "parameters": [ { - "$id": "382", + "$id": "370", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "383", + "$id": "371", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5209,7 +5065,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "384", + "$id": "372", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5226,36 +5082,36 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "385", + "$id": "373", "kind": "client", "name": "CollectionsModel", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "386", + "$id": "374", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "387", + "$id": "375", "name": "getAll", "resourceName": "CollectionsModel", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "388", + "$id": "376", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "95" + "$ref": "83" }, "isApiVersion": false, "optional": false, @@ -5272,7 +5128,7 @@ 200 ], "bodyType": { - "$ref": "191" + "$ref": "179" }, "headers": [], "isErrorResponse": false, @@ -5292,12 +5148,12 @@ }, "parameters": [ { - "$id": "389", + "$id": "377", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "95" + "$ref": "83" }, "location": "Header", "isApiVersion": false, @@ -5311,7 +5167,7 @@ ], "response": { "type": { - "$ref": "191" + "$ref": "179" } }, "isOverride": false, @@ -5320,26 +5176,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll" }, { - "$id": "390", + "$id": "378", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "391", + "$id": "379", "name": "getDefault", "resourceName": "CollectionsModel", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "392", + "$id": "380", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "97" + "$ref": "85" }, "isApiVersion": false, "optional": false, @@ -5356,7 +5212,7 @@ 200 ], "bodyType": { - "$ref": "191" + "$ref": "179" }, "headers": [], "isErrorResponse": false, @@ -5376,12 +5232,12 @@ }, "parameters": [ { - "$id": "393", + "$id": "381", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "97" + "$ref": "85" }, "location": "Header", "isApiVersion": false, @@ -5395,7 +5251,7 @@ ], "response": { "type": { - "$ref": "191" + "$ref": "179" } }, "isOverride": false, @@ -5404,27 +5260,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault" }, { - "$id": "394", + "$id": "382", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "395", + "$id": "383", "name": "putAll", "resourceName": "CollectionsModel", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "396", + "$id": "384", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "99" + "$ref": "87" }, "isApiVersion": false, "optional": false, @@ -5435,12 +5291,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll.contentType" }, { - "$id": "397", + "$id": "385", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "191" + "$ref": "179" }, "isApiVersion": false, "contentTypes": [ @@ -5477,12 +5333,12 @@ }, "parameters": [ { - "$id": "398", + "$id": "386", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "191" + "$ref": "179" }, "location": "Body", "isApiVersion": false, @@ -5494,13 +5350,13 @@ "decorators": [] }, { - "$id": "399", + "$id": "387", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "99" + "$ref": "87" }, "location": "Header", "isApiVersion": false, @@ -5519,27 +5375,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll" }, { - "$id": "400", + "$id": "388", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "401", + "$id": "389", "name": "putDefault", "resourceName": "CollectionsModel", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "402", + "$id": "390", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "101" + "$ref": "89" }, "isApiVersion": false, "optional": false, @@ -5550,12 +5406,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putDefault.contentType" }, { - "$id": "403", + "$id": "391", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "191" + "$ref": "179" }, "isApiVersion": false, "contentTypes": [ @@ -5592,12 +5448,12 @@ }, "parameters": [ { - "$id": "404", + "$id": "392", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "191" + "$ref": "179" }, "location": "Body", "isApiVersion": false, @@ -5609,13 +5465,13 @@ "decorators": [] }, { - "$id": "405", + "$id": "393", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "101" + "$ref": "89" }, "location": "Header", "isApiVersion": false, @@ -5636,13 +5492,13 @@ ], "parameters": [ { - "$id": "406", + "$id": "394", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "407", + "$id": "395", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5653,7 +5509,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "408", + "$id": "396", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5670,36 +5526,36 @@ "crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "409", + "$id": "397", "kind": "client", "name": "StringLiteral", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "410", + "$id": "398", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "411", + "$id": "399", "name": "getAll", "resourceName": "StringLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "412", + "$id": "400", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "103" + "$ref": "91" }, "isApiVersion": false, "optional": false, @@ -5716,7 +5572,7 @@ 200 ], "bodyType": { - "$ref": "194" + "$ref": "182" }, "headers": [], "isErrorResponse": false, @@ -5736,12 +5592,12 @@ }, "parameters": [ { - "$id": "413", + "$id": "401", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "103" + "$ref": "91" }, "location": "Header", "isApiVersion": false, @@ -5755,7 +5611,7 @@ ], "response": { "type": { - "$ref": "194" + "$ref": "182" } }, "isOverride": false, @@ -5764,26 +5620,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll" }, { - "$id": "414", + "$id": "402", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "415", + "$id": "403", "name": "getDefault", "resourceName": "StringLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "416", + "$id": "404", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "105" + "$ref": "93" }, "isApiVersion": false, "optional": false, @@ -5800,7 +5656,7 @@ 200 ], "bodyType": { - "$ref": "194" + "$ref": "182" }, "headers": [], "isErrorResponse": false, @@ -5820,12 +5676,12 @@ }, "parameters": [ { - "$id": "417", + "$id": "405", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "105" + "$ref": "93" }, "location": "Header", "isApiVersion": false, @@ -5839,7 +5695,7 @@ ], "response": { "type": { - "$ref": "194" + "$ref": "182" } }, "isOverride": false, @@ -5848,27 +5704,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault" }, { - "$id": "418", + "$id": "406", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "419", + "$id": "407", "name": "putAll", "resourceName": "StringLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "420", + "$id": "408", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "107" + "$ref": "95" }, "isApiVersion": false, "optional": false, @@ -5879,12 +5735,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll.contentType" }, { - "$id": "421", + "$id": "409", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "194" + "$ref": "182" }, "isApiVersion": false, "contentTypes": [ @@ -5921,12 +5777,12 @@ }, "parameters": [ { - "$id": "422", + "$id": "410", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "194" + "$ref": "182" }, "location": "Body", "isApiVersion": false, @@ -5938,13 +5794,13 @@ "decorators": [] }, { - "$id": "423", + "$id": "411", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "107" + "$ref": "95" }, "location": "Header", "isApiVersion": false, @@ -5963,27 +5819,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll" }, { - "$id": "424", + "$id": "412", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "425", + "$id": "413", "name": "putDefault", "resourceName": "StringLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "426", + "$id": "414", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "109" + "$ref": "97" }, "isApiVersion": false, "optional": false, @@ -5994,12 +5850,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putDefault.contentType" }, { - "$id": "427", + "$id": "415", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "194" + "$ref": "182" }, "isApiVersion": false, "contentTypes": [ @@ -6036,12 +5892,12 @@ }, "parameters": [ { - "$id": "428", + "$id": "416", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "194" + "$ref": "182" }, "location": "Body", "isApiVersion": false, @@ -6053,13 +5909,13 @@ "decorators": [] }, { - "$id": "429", + "$id": "417", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "109" + "$ref": "97" }, "location": "Header", "isApiVersion": false, @@ -6080,13 +5936,13 @@ ], "parameters": [ { - "$id": "430", + "$id": "418", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "431", + "$id": "419", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6097,7 +5953,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "432", + "$id": "420", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6114,36 +5970,36 @@ "crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "433", + "$id": "421", "kind": "client", "name": "IntLiteral", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "434", + "$id": "422", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "435", + "$id": "423", "name": "getAll", "resourceName": "IntLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "436", + "$id": "424", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "111" + "$ref": "99" }, "isApiVersion": false, "optional": false, @@ -6160,7 +6016,7 @@ 200 ], "bodyType": { - "$ref": "196" + "$ref": "184" }, "headers": [], "isErrorResponse": false, @@ -6180,12 +6036,12 @@ }, "parameters": [ { - "$id": "437", + "$id": "425", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "111" + "$ref": "99" }, "location": "Header", "isApiVersion": false, @@ -6199,7 +6055,7 @@ ], "response": { "type": { - "$ref": "196" + "$ref": "184" } }, "isOverride": false, @@ -6208,26 +6064,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll" }, { - "$id": "438", + "$id": "426", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "439", + "$id": "427", "name": "getDefault", "resourceName": "IntLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "440", + "$id": "428", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "113" + "$ref": "101" }, "isApiVersion": false, "optional": false, @@ -6244,7 +6100,7 @@ 200 ], "bodyType": { - "$ref": "196" + "$ref": "184" }, "headers": [], "isErrorResponse": false, @@ -6264,12 +6120,12 @@ }, "parameters": [ { - "$id": "441", + "$id": "429", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "113" + "$ref": "101" }, "location": "Header", "isApiVersion": false, @@ -6283,7 +6139,7 @@ ], "response": { "type": { - "$ref": "196" + "$ref": "184" } }, "isOverride": false, @@ -6292,27 +6148,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault" }, { - "$id": "442", + "$id": "430", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "443", + "$id": "431", "name": "putAll", "resourceName": "IntLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "444", + "$id": "432", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "115" + "$ref": "103" }, "isApiVersion": false, "optional": false, @@ -6323,12 +6179,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll.contentType" }, { - "$id": "445", + "$id": "433", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "196" + "$ref": "184" }, "isApiVersion": false, "contentTypes": [ @@ -6365,12 +6221,12 @@ }, "parameters": [ { - "$id": "446", + "$id": "434", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "196" + "$ref": "184" }, "location": "Body", "isApiVersion": false, @@ -6382,13 +6238,13 @@ "decorators": [] }, { - "$id": "447", + "$id": "435", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "115" + "$ref": "103" }, "location": "Header", "isApiVersion": false, @@ -6407,27 +6263,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll" }, { - "$id": "448", + "$id": "436", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "449", + "$id": "437", "name": "putDefault", "resourceName": "IntLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "450", + "$id": "438", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "117" + "$ref": "105" }, "isApiVersion": false, "optional": false, @@ -6438,12 +6294,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putDefault.contentType" }, { - "$id": "451", + "$id": "439", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "196" + "$ref": "184" }, "isApiVersion": false, "contentTypes": [ @@ -6480,12 +6336,12 @@ }, "parameters": [ { - "$id": "452", + "$id": "440", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "196" + "$ref": "184" }, "location": "Body", "isApiVersion": false, @@ -6497,13 +6353,13 @@ "decorators": [] }, { - "$id": "453", + "$id": "441", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "117" + "$ref": "105" }, "location": "Header", "isApiVersion": false, @@ -6524,13 +6380,13 @@ ], "parameters": [ { - "$id": "454", + "$id": "442", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "455", + "$id": "443", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6541,7 +6397,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "456", + "$id": "444", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6558,36 +6414,36 @@ "crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "457", + "$id": "445", "kind": "client", "name": "FloatLiteral", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "458", + "$id": "446", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "459", + "$id": "447", "name": "getAll", "resourceName": "FloatLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "460", + "$id": "448", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "119" + "$ref": "107" }, "isApiVersion": false, "optional": false, @@ -6604,7 +6460,7 @@ 200 ], "bodyType": { - "$ref": "198" + "$ref": "186" }, "headers": [], "isErrorResponse": false, @@ -6624,12 +6480,12 @@ }, "parameters": [ { - "$id": "461", + "$id": "449", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "119" + "$ref": "107" }, "location": "Header", "isApiVersion": false, @@ -6643,7 +6499,7 @@ ], "response": { "type": { - "$ref": "198" + "$ref": "186" } }, "isOverride": false, @@ -6652,26 +6508,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll" }, { - "$id": "462", + "$id": "450", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "463", + "$id": "451", "name": "getDefault", "resourceName": "FloatLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "464", + "$id": "452", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "121" + "$ref": "109" }, "isApiVersion": false, "optional": false, @@ -6688,7 +6544,7 @@ 200 ], "bodyType": { - "$ref": "198" + "$ref": "186" }, "headers": [], "isErrorResponse": false, @@ -6708,12 +6564,12 @@ }, "parameters": [ { - "$id": "465", + "$id": "453", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "121" + "$ref": "109" }, "location": "Header", "isApiVersion": false, @@ -6727,7 +6583,7 @@ ], "response": { "type": { - "$ref": "198" + "$ref": "186" } }, "isOverride": false, @@ -6736,27 +6592,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault" }, { - "$id": "466", + "$id": "454", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "467", + "$id": "455", "name": "putAll", "resourceName": "FloatLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "468", + "$id": "456", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "123" + "$ref": "111" }, "isApiVersion": false, "optional": false, @@ -6767,12 +6623,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll.contentType" }, { - "$id": "469", + "$id": "457", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "198" + "$ref": "186" }, "isApiVersion": false, "contentTypes": [ @@ -6809,12 +6665,12 @@ }, "parameters": [ { - "$id": "470", + "$id": "458", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "198" + "$ref": "186" }, "location": "Body", "isApiVersion": false, @@ -6826,13 +6682,13 @@ "decorators": [] }, { - "$id": "471", + "$id": "459", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "123" + "$ref": "111" }, "location": "Header", "isApiVersion": false, @@ -6851,27 +6707,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll" }, { - "$id": "472", + "$id": "460", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "473", + "$id": "461", "name": "putDefault", "resourceName": "FloatLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "474", + "$id": "462", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "125" + "$ref": "113" }, "isApiVersion": false, "optional": false, @@ -6882,12 +6738,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putDefault.contentType" }, { - "$id": "475", + "$id": "463", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "198" + "$ref": "186" }, "isApiVersion": false, "contentTypes": [ @@ -6924,12 +6780,12 @@ }, "parameters": [ { - "$id": "476", + "$id": "464", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "198" + "$ref": "186" }, "location": "Body", "isApiVersion": false, @@ -6941,13 +6797,13 @@ "decorators": [] }, { - "$id": "477", + "$id": "465", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "125" + "$ref": "113" }, "location": "Header", "isApiVersion": false, @@ -6968,13 +6824,13 @@ ], "parameters": [ { - "$id": "478", + "$id": "466", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "479", + "$id": "467", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6985,7 +6841,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "480", + "$id": "468", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7002,36 +6858,36 @@ "crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "481", + "$id": "469", "kind": "client", "name": "BooleanLiteral", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "482", + "$id": "470", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "483", + "$id": "471", "name": "getAll", "resourceName": "BooleanLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "484", + "$id": "472", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "127" + "$ref": "115" }, "isApiVersion": false, "optional": false, @@ -7048,7 +6904,7 @@ 200 ], "bodyType": { - "$ref": "200" + "$ref": "188" }, "headers": [], "isErrorResponse": false, @@ -7068,12 +6924,12 @@ }, "parameters": [ { - "$id": "485", + "$id": "473", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "127" + "$ref": "115" }, "location": "Header", "isApiVersion": false, @@ -7087,7 +6943,7 @@ ], "response": { "type": { - "$ref": "200" + "$ref": "188" } }, "isOverride": false, @@ -7096,26 +6952,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll" }, { - "$id": "486", + "$id": "474", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "487", + "$id": "475", "name": "getDefault", "resourceName": "BooleanLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "488", + "$id": "476", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "129" + "$ref": "117" }, "isApiVersion": false, "optional": false, @@ -7132,7 +6988,7 @@ 200 ], "bodyType": { - "$ref": "200" + "$ref": "188" }, "headers": [], "isErrorResponse": false, @@ -7152,12 +7008,12 @@ }, "parameters": [ { - "$id": "489", + "$id": "477", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "129" + "$ref": "117" }, "location": "Header", "isApiVersion": false, @@ -7171,7 +7027,7 @@ ], "response": { "type": { - "$ref": "200" + "$ref": "188" } }, "isOverride": false, @@ -7180,27 +7036,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault" }, { - "$id": "490", + "$id": "478", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "491", + "$id": "479", "name": "putAll", "resourceName": "BooleanLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "492", + "$id": "480", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "131" + "$ref": "119" }, "isApiVersion": false, "optional": false, @@ -7211,12 +7067,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll.contentType" }, { - "$id": "493", + "$id": "481", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "200" + "$ref": "188" }, "isApiVersion": false, "contentTypes": [ @@ -7253,12 +7109,12 @@ }, "parameters": [ { - "$id": "494", + "$id": "482", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "200" + "$ref": "188" }, "location": "Body", "isApiVersion": false, @@ -7270,13 +7126,13 @@ "decorators": [] }, { - "$id": "495", + "$id": "483", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "131" + "$ref": "119" }, "location": "Header", "isApiVersion": false, @@ -7295,27 +7151,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll" }, { - "$id": "496", + "$id": "484", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "497", + "$id": "485", "name": "putDefault", "resourceName": "BooleanLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "498", + "$id": "486", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "133" + "$ref": "121" }, "isApiVersion": false, "optional": false, @@ -7326,12 +7182,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putDefault.contentType" }, { - "$id": "499", + "$id": "487", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "200" + "$ref": "188" }, "isApiVersion": false, "contentTypes": [ @@ -7368,12 +7224,12 @@ }, "parameters": [ { - "$id": "500", + "$id": "488", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "200" + "$ref": "188" }, "location": "Body", "isApiVersion": false, @@ -7385,13 +7241,13 @@ "decorators": [] }, { - "$id": "501", + "$id": "489", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "133" + "$ref": "121" }, "location": "Header", "isApiVersion": false, @@ -7412,13 +7268,13 @@ ], "parameters": [ { - "$id": "502", + "$id": "490", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "503", + "$id": "491", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7429,7 +7285,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "504", + "$id": "492", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7446,36 +7302,36 @@ "crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "505", + "$id": "493", "kind": "client", "name": "UnionStringLiteral", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "506", + "$id": "494", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "507", + "$id": "495", "name": "getAll", "resourceName": "UnionStringLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "508", + "$id": "496", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "135" + "$ref": "123" }, "isApiVersion": false, "optional": false, @@ -7492,7 +7348,7 @@ 200 ], "bodyType": { - "$ref": "202" + "$ref": "190" }, "headers": [], "isErrorResponse": false, @@ -7512,12 +7368,12 @@ }, "parameters": [ { - "$id": "509", + "$id": "497", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "135" + "$ref": "123" }, "location": "Header", "isApiVersion": false, @@ -7531,7 +7387,7 @@ ], "response": { "type": { - "$ref": "202" + "$ref": "190" } }, "isOverride": false, @@ -7540,26 +7396,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll" }, { - "$id": "510", + "$id": "498", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "511", + "$id": "499", "name": "getDefault", "resourceName": "UnionStringLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "512", + "$id": "500", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "137" + "$ref": "125" }, "isApiVersion": false, "optional": false, @@ -7576,7 +7432,7 @@ 200 ], "bodyType": { - "$ref": "202" + "$ref": "190" }, "headers": [], "isErrorResponse": false, @@ -7596,12 +7452,12 @@ }, "parameters": [ { - "$id": "513", + "$id": "501", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "137" + "$ref": "125" }, "location": "Header", "isApiVersion": false, @@ -7615,7 +7471,7 @@ ], "response": { "type": { - "$ref": "202" + "$ref": "190" } }, "isOverride": false, @@ -7624,27 +7480,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault" }, { - "$id": "514", + "$id": "502", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "515", + "$id": "503", "name": "putAll", "resourceName": "UnionStringLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "516", + "$id": "504", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "139" + "$ref": "127" }, "isApiVersion": false, "optional": false, @@ -7655,12 +7511,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll.contentType" }, { - "$id": "517", + "$id": "505", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "202" + "$ref": "190" }, "isApiVersion": false, "contentTypes": [ @@ -7697,12 +7553,12 @@ }, "parameters": [ { - "$id": "518", + "$id": "506", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "202" + "$ref": "190" }, "location": "Body", "isApiVersion": false, @@ -7714,13 +7570,13 @@ "decorators": [] }, { - "$id": "519", + "$id": "507", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "139" + "$ref": "127" }, "location": "Header", "isApiVersion": false, @@ -7739,27 +7595,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll" }, { - "$id": "520", + "$id": "508", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "521", + "$id": "509", "name": "putDefault", "resourceName": "UnionStringLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "522", + "$id": "510", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "141" + "$ref": "129" }, "isApiVersion": false, "optional": false, @@ -7770,12 +7626,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putDefault.contentType" }, { - "$id": "523", + "$id": "511", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "202" + "$ref": "190" }, "isApiVersion": false, "contentTypes": [ @@ -7812,12 +7668,12 @@ }, "parameters": [ { - "$id": "524", + "$id": "512", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "202" + "$ref": "190" }, "location": "Body", "isApiVersion": false, @@ -7829,13 +7685,13 @@ "decorators": [] }, { - "$id": "525", + "$id": "513", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "141" + "$ref": "129" }, "location": "Header", "isApiVersion": false, @@ -7856,13 +7712,13 @@ ], "parameters": [ { - "$id": "526", + "$id": "514", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "527", + "$id": "515", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7873,7 +7729,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "528", + "$id": "516", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7890,36 +7746,36 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "529", + "$id": "517", "kind": "client", "name": "UnionIntLiteral", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "530", + "$id": "518", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "531", + "$id": "519", "name": "getAll", "resourceName": "UnionIntLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "532", + "$id": "520", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "143" + "$ref": "131" }, "isApiVersion": false, "optional": false, @@ -7936,7 +7792,7 @@ 200 ], "bodyType": { - "$ref": "204" + "$ref": "192" }, "headers": [], "isErrorResponse": false, @@ -7956,12 +7812,12 @@ }, "parameters": [ { - "$id": "533", + "$id": "521", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "143" + "$ref": "131" }, "location": "Header", "isApiVersion": false, @@ -7975,7 +7831,7 @@ ], "response": { "type": { - "$ref": "204" + "$ref": "192" } }, "isOverride": false, @@ -7984,26 +7840,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll" }, { - "$id": "534", + "$id": "522", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "535", + "$id": "523", "name": "getDefault", "resourceName": "UnionIntLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "536", + "$id": "524", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "145" + "$ref": "133" }, "isApiVersion": false, "optional": false, @@ -8020,7 +7876,7 @@ 200 ], "bodyType": { - "$ref": "204" + "$ref": "192" }, "headers": [], "isErrorResponse": false, @@ -8040,12 +7896,12 @@ }, "parameters": [ { - "$id": "537", + "$id": "525", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "145" + "$ref": "133" }, "location": "Header", "isApiVersion": false, @@ -8059,7 +7915,7 @@ ], "response": { "type": { - "$ref": "204" + "$ref": "192" } }, "isOverride": false, @@ -8068,27 +7924,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault" }, { - "$id": "538", + "$id": "526", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "539", + "$id": "527", "name": "putAll", "resourceName": "UnionIntLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "540", + "$id": "528", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "147" + "$ref": "135" }, "isApiVersion": false, "optional": false, @@ -8099,12 +7955,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll.contentType" }, { - "$id": "541", + "$id": "529", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "204" + "$ref": "192" }, "isApiVersion": false, "contentTypes": [ @@ -8141,12 +7997,12 @@ }, "parameters": [ { - "$id": "542", + "$id": "530", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "204" + "$ref": "192" }, "location": "Body", "isApiVersion": false, @@ -8158,13 +8014,13 @@ "decorators": [] }, { - "$id": "543", + "$id": "531", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "147" + "$ref": "135" }, "location": "Header", "isApiVersion": false, @@ -8183,27 +8039,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll" }, { - "$id": "544", + "$id": "532", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "545", + "$id": "533", "name": "putDefault", "resourceName": "UnionIntLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "546", + "$id": "534", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "149" + "$ref": "137" }, "isApiVersion": false, "optional": false, @@ -8214,12 +8070,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putDefault.contentType" }, { - "$id": "547", + "$id": "535", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "204" + "$ref": "192" }, "isApiVersion": false, "contentTypes": [ @@ -8256,12 +8112,12 @@ }, "parameters": [ { - "$id": "548", + "$id": "536", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "204" + "$ref": "192" }, "location": "Body", "isApiVersion": false, @@ -8273,13 +8129,13 @@ "decorators": [] }, { - "$id": "549", + "$id": "537", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "149" + "$ref": "137" }, "location": "Header", "isApiVersion": false, @@ -8300,13 +8156,13 @@ ], "parameters": [ { - "$id": "550", + "$id": "538", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "551", + "$id": "539", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8317,7 +8173,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "552", + "$id": "540", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8334,36 +8190,36 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "553", + "$id": "541", "kind": "client", "name": "UnionFloatLiteral", "namespace": "Type.Property.Optional", "methods": [ { - "$id": "554", + "$id": "542", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "555", + "$id": "543", "name": "getAll", "resourceName": "UnionFloatLiteral", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "556", + "$id": "544", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "151" + "$ref": "139" }, "isApiVersion": false, "optional": false, @@ -8380,7 +8236,7 @@ 200 ], "bodyType": { - "$ref": "206" + "$ref": "194" }, "headers": [], "isErrorResponse": false, @@ -8400,12 +8256,12 @@ }, "parameters": [ { - "$id": "557", + "$id": "545", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "151" + "$ref": "139" }, "location": "Header", "isApiVersion": false, @@ -8419,7 +8275,7 @@ ], "response": { "type": { - "$ref": "206" + "$ref": "194" } }, "isOverride": false, @@ -8428,26 +8284,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll" }, { - "$id": "558", + "$id": "546", "kind": "basic", "name": "getDefault", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return the default object", "operation": { - "$id": "559", + "$id": "547", "name": "getDefault", "resourceName": "UnionFloatLiteral", "doc": "Get models that will return the default object", "accessibility": "public", "parameters": [ { - "$id": "560", + "$id": "548", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "153" + "$ref": "141" }, "isApiVersion": false, "optional": false, @@ -8464,7 +8320,7 @@ 200 ], "bodyType": { - "$ref": "206" + "$ref": "194" }, "headers": [], "isErrorResponse": false, @@ -8484,12 +8340,12 @@ }, "parameters": [ { - "$id": "561", + "$id": "549", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "153" + "$ref": "141" }, "location": "Header", "isApiVersion": false, @@ -8503,7 +8359,7 @@ ], "response": { "type": { - "$ref": "206" + "$ref": "194" } }, "isOverride": false, @@ -8512,27 +8368,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault" }, { - "$id": "562", + "$id": "550", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "563", + "$id": "551", "name": "putAll", "resourceName": "UnionFloatLiteral", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "564", + "$id": "552", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "155" + "$ref": "143" }, "isApiVersion": false, "optional": false, @@ -8543,12 +8399,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll.contentType" }, { - "$id": "565", + "$id": "553", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "206" + "$ref": "194" }, "isApiVersion": false, "contentTypes": [ @@ -8585,12 +8441,12 @@ }, "parameters": [ { - "$id": "566", + "$id": "554", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "206" + "$ref": "194" }, "location": "Body", "isApiVersion": false, @@ -8602,13 +8458,13 @@ "decorators": [] }, { - "$id": "567", + "$id": "555", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "155" + "$ref": "143" }, "location": "Header", "isApiVersion": false, @@ -8627,27 +8483,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll" }, { - "$id": "568", + "$id": "556", "kind": "basic", "name": "putDefault", "accessibility": "public", "apiVersions": [], "doc": "Put a body with default properties.", "operation": { - "$id": "569", + "$id": "557", "name": "putDefault", "resourceName": "UnionFloatLiteral", "doc": "Put a body with default properties.", "accessibility": "public", "parameters": [ { - "$id": "570", + "$id": "558", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "157" + "$ref": "145" }, "isApiVersion": false, "optional": false, @@ -8658,12 +8514,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putDefault.contentType" }, { - "$id": "571", + "$id": "559", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "206" + "$ref": "194" }, "isApiVersion": false, "contentTypes": [ @@ -8700,12 +8556,12 @@ }, "parameters": [ { - "$id": "572", + "$id": "560", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "206" + "$ref": "194" }, "location": "Body", "isApiVersion": false, @@ -8717,13 +8573,13 @@ "decorators": [] }, { - "$id": "573", + "$id": "561", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "157" + "$ref": "145" }, "location": "Header", "isApiVersion": false, @@ -8744,13 +8600,13 @@ ], "parameters": [ { - "$id": "574", + "$id": "562", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "575", + "$id": "563", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8761,7 +8617,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "576", + "$id": "564", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8778,37 +8634,37 @@ "crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } }, { - "$id": "577", + "$id": "565", "kind": "client", "name": "RequiredAndOptional", "namespace": "Type.Property.Optional", "doc": "Test optional and required properties", "methods": [ { - "$id": "578", + "$id": "566", "kind": "basic", "name": "getAll", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return all properties in the model", "operation": { - "$id": "579", + "$id": "567", "name": "getAll", "resourceName": "RequiredAndOptional", "doc": "Get models that will return all properties in the model", "accessibility": "public", "parameters": [ { - "$id": "580", + "$id": "568", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "159" + "$ref": "147" }, "isApiVersion": false, "optional": false, @@ -8825,7 +8681,7 @@ 200 ], "bodyType": { - "$ref": "208" + "$ref": "196" }, "headers": [], "isErrorResponse": false, @@ -8845,12 +8701,12 @@ }, "parameters": [ { - "$id": "581", + "$id": "569", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "159" + "$ref": "147" }, "location": "Header", "isApiVersion": false, @@ -8864,7 +8720,7 @@ ], "response": { "type": { - "$ref": "208" + "$ref": "196" } }, "isOverride": false, @@ -8873,26 +8729,26 @@ "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getAll" }, { - "$id": "582", + "$id": "570", "kind": "basic", "name": "getRequiredOnly", "accessibility": "public", "apiVersions": [], "doc": "Get models that will return only the required properties", "operation": { - "$id": "583", + "$id": "571", "name": "getRequiredOnly", "resourceName": "RequiredAndOptional", "doc": "Get models that will return only the required properties", "accessibility": "public", "parameters": [ { - "$id": "584", + "$id": "572", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "161" + "$ref": "149" }, "isApiVersion": false, "optional": false, @@ -8909,7 +8765,7 @@ 200 ], "bodyType": { - "$ref": "208" + "$ref": "196" }, "headers": [], "isErrorResponse": false, @@ -8929,12 +8785,12 @@ }, "parameters": [ { - "$id": "585", + "$id": "573", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "161" + "$ref": "149" }, "location": "Header", "isApiVersion": false, @@ -8948,7 +8804,7 @@ ], "response": { "type": { - "$ref": "208" + "$ref": "196" } }, "isOverride": false, @@ -8957,27 +8813,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly" }, { - "$id": "586", + "$id": "574", "kind": "basic", "name": "putAll", "accessibility": "public", "apiVersions": [], "doc": "Put a body with all properties present.", "operation": { - "$id": "587", + "$id": "575", "name": "putAll", "resourceName": "RequiredAndOptional", "doc": "Put a body with all properties present.", "accessibility": "public", "parameters": [ { - "$id": "588", + "$id": "576", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "163" + "$ref": "151" }, "isApiVersion": false, "optional": false, @@ -8988,12 +8844,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll.contentType" }, { - "$id": "589", + "$id": "577", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "208" + "$ref": "196" }, "isApiVersion": false, "contentTypes": [ @@ -9030,12 +8886,12 @@ }, "parameters": [ { - "$id": "590", + "$id": "578", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "208" + "$ref": "196" }, "location": "Body", "isApiVersion": false, @@ -9047,13 +8903,13 @@ "decorators": [] }, { - "$id": "591", + "$id": "579", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "163" + "$ref": "151" }, "location": "Header", "isApiVersion": false, @@ -9072,27 +8928,27 @@ "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll" }, { - "$id": "592", + "$id": "580", "kind": "basic", "name": "putRequiredOnly", "accessibility": "public", "apiVersions": [], "doc": "Put a body with only required properties.", "operation": { - "$id": "593", + "$id": "581", "name": "putRequiredOnly", "resourceName": "RequiredAndOptional", "doc": "Put a body with only required properties.", "accessibility": "public", "parameters": [ { - "$id": "594", + "$id": "582", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "165" + "$ref": "153" }, "isApiVersion": false, "optional": false, @@ -9103,12 +8959,12 @@ "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putRequiredOnly.contentType" }, { - "$id": "595", + "$id": "583", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "208" + "$ref": "196" }, "isApiVersion": false, "contentTypes": [ @@ -9145,12 +9001,12 @@ }, "parameters": [ { - "$id": "596", + "$id": "584", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "208" + "$ref": "196" }, "location": "Body", "isApiVersion": false, @@ -9162,13 +9018,13 @@ "decorators": [] }, { - "$id": "597", + "$id": "585", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "165" + "$ref": "153" }, "location": "Header", "isApiVersion": false, @@ -9189,13 +9045,13 @@ ], "parameters": [ { - "$id": "598", + "$id": "586", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "599", + "$id": "587", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9206,7 +9062,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "600", + "$id": "588", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9223,7 +9079,7 @@ "crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional", "apiVersions": [], "parent": { - "$ref": "213" + "$ref": "201" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json index b76006293cc8..f6416fad1943 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json @@ -24,65 +24,13 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "FixedInnerEnum", - "isGeneratedName": false, - "namespace": "Type.Property.ValueTypes", - "doc": "Enum that will be used as a property for model EnumProperty. Non-extensible.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "ValueOne", - "value": "ValueOne", - "doc": "First value.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "ValueTwo", - "value": "ValueTwo", - "doc": "Second value.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.FixedInnerEnum", - "apiVersions": [], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "First value.", "decorators": [] }, { - "$id": "8", + "$id": "4", "kind": "enumvalue", "name": "ValueTwo", "value": "ValueTwo", @@ -90,7 +38,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "Second value.", "decorators": [] @@ -104,12 +52,12 @@ "decorators": [] }, { - "$id": "9", + "$id": "5", "kind": "enum", "name": "InnerEnum", "crossLanguageDefinitionId": "Type.Property.ValueTypes.InnerEnum", "valueType": { - "$id": "10", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -117,81 +65,29 @@ }, "values": [ { - "$id": "11", + "$id": "7", "kind": "enumvalue", "name": "ValueOne", "value": "ValueOne", "valueType": { - "$ref": "10" + "$ref": "6" }, "enumType": { - "$id": "12", - "kind": "enum", - "decorators": [], - "name": "InnerEnum", - "isGeneratedName": false, - "namespace": "Type.Property.ValueTypes", - "doc": "Enum that will be used as a property for model EnumProperty. Extensible.", - "valueType": { - "$id": "13", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "14", - "kind": "enumvalue", - "decorators": [], - "name": "ValueOne", - "doc": "First value.", - "value": "ValueOne", - "valueType": { - "$ref": "13" - }, - "enumType": { - "$ref": "12" - } - }, - { - "$id": "15", - "kind": "enumvalue", - "decorators": [], - "name": "ValueTwo", - "doc": "Second value.", - "value": "ValueTwo", - "valueType": { - "$ref": "13" - }, - "enumType": { - "$ref": "12" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.InnerEnum", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "5" }, "doc": "First value.", "decorators": [] }, { - "$id": "16", + "$id": "8", "kind": "enumvalue", "name": "ValueTwo", "value": "ValueTwo", "valueType": { - "$ref": "10" + "$ref": "6" }, "enumType": { - "$ref": "12" + "$ref": "5" }, "doc": "Second value.", "decorators": [] @@ -205,12 +101,12 @@ "decorators": [] }, { - "$id": "17", + "$id": "9", "kind": "enum", "name": "UnionStringLiteralPropertyProperty", "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteralProperty.property.anonymous", "valueType": { - "$id": "18", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -218,77 +114,28 @@ }, "values": [ { - "$id": "19", + "$id": "11", "kind": "enumvalue", "name": "hello", "value": "hello", "valueType": { - "$ref": "18" + "$ref": "10" }, "enumType": { - "$id": "20", - "kind": "enum", - "decorators": [], - "name": "UnionStringLiteralPropertyProperty", - "isGeneratedName": true, - "namespace": "Type.Property.ValueTypes", - "valueType": { - "$id": "21", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "22", - "kind": "enumvalue", - "decorators": [], - "name": "hello", - "value": "hello", - "valueType": { - "$ref": "21" - }, - "enumType": { - "$ref": "20" - } - }, - { - "$id": "23", - "kind": "enumvalue", - "decorators": [], - "name": "world", - "value": "world", - "valueType": { - "$ref": "21" - }, - "enumType": { - "$ref": "20" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteralProperty.property.anonymous", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "9" }, "decorators": [] }, { - "$id": "24", + "$id": "12", "kind": "enumvalue", "name": "world", "value": "world", "valueType": { - "$ref": "18" + "$ref": "10" }, "enumType": { - "$ref": "20" + "$ref": "9" }, "decorators": [] } @@ -300,12 +147,12 @@ "decorators": [] }, { - "$id": "25", + "$id": "13", "kind": "enum", "name": "UnionIntLiteralPropertyProperty", "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteralProperty.property.anonymous", "valueType": { - "$id": "26", + "$id": "14", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -313,77 +160,28 @@ }, "values": [ { - "$id": "27", + "$id": "15", "kind": "enumvalue", "name": "42", "value": 42, "valueType": { - "$ref": "26" + "$ref": "14" }, "enumType": { - "$id": "28", - "kind": "enum", - "decorators": [], - "name": "UnionIntLiteralPropertyProperty", - "isGeneratedName": true, - "namespace": "Type.Property.ValueTypes", - "valueType": { - "$id": "29", - "kind": "int32", - "decorators": [], - "name": "int32", - "doc": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", - "crossLanguageDefinitionId": "TypeSpec.int32" - }, - "values": [ - { - "$id": "30", - "kind": "enumvalue", - "decorators": [], - "name": "42", - "value": 42, - "valueType": { - "$ref": "29" - }, - "enumType": { - "$ref": "28" - } - }, - { - "$id": "31", - "kind": "enumvalue", - "decorators": [], - "name": "43", - "value": 43, - "valueType": { - "$ref": "29" - }, - "enumType": { - "$ref": "28" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteralProperty.property.anonymous", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "13" }, "decorators": [] }, { - "$id": "32", + "$id": "16", "kind": "enumvalue", "name": "43", "value": 43, "valueType": { - "$ref": "26" + "$ref": "14" }, "enumType": { - "$ref": "28" + "$ref": "13" }, "decorators": [] } @@ -395,12 +193,12 @@ "decorators": [] }, { - "$id": "33", + "$id": "17", "kind": "enum", "name": "UnionFloatLiteralPropertyProperty", "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteralProperty.property.anonymous", "valueType": { - "$id": "34", + "$id": "18", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -408,77 +206,28 @@ }, "values": [ { - "$id": "35", + "$id": "19", "kind": "enumvalue", "name": "43.125", "value": 43.125, "valueType": { - "$ref": "34" + "$ref": "18" }, "enumType": { - "$id": "36", - "kind": "enum", - "decorators": [], - "name": "UnionFloatLiteralPropertyProperty", - "isGeneratedName": true, - "namespace": "Type.Property.ValueTypes", - "valueType": { - "$id": "37", - "kind": "float32", - "decorators": [], - "name": "float32", - "doc": "A 32 bit floating point number. (`±1.5 x 10^−45` to `±3.4 x 10^38`)", - "crossLanguageDefinitionId": "TypeSpec.float32" - }, - "values": [ - { - "$id": "38", - "kind": "enumvalue", - "decorators": [], - "name": "43.125", - "value": 43.125, - "valueType": { - "$ref": "37" - }, - "enumType": { - "$ref": "36" - } - }, - { - "$id": "39", - "kind": "enumvalue", - "decorators": [], - "name": "46.875", - "value": 46.875, - "valueType": { - "$ref": "37" - }, - "enumType": { - "$ref": "36" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteralProperty.property.anonymous", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "17" }, "decorators": [] }, { - "$id": "40", + "$id": "20", "kind": "enumvalue", "name": "46.875", "value": 46.875, "valueType": { - "$ref": "34" + "$ref": "18" }, "enumType": { - "$ref": "36" + "$ref": "17" }, "decorators": [] } @@ -490,12 +239,12 @@ "decorators": [] }, { - "$id": "41", + "$id": "21", "kind": "enum", "name": "ExtendedEnum", "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtendedEnum", "valueType": { - "$id": "42", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -503,51 +252,15 @@ }, "values": [ { - "$id": "43", + "$id": "23", "kind": "enumvalue", "name": "EnumValue2", "value": "value2", "valueType": { - "$ref": "42" + "$ref": "22" }, "enumType": { - "$id": "44", - "kind": "enum", - "decorators": [], - "name": "ExtendedEnum", - "isGeneratedName": false, - "namespace": "Type.Property.ValueTypes", - "valueType": { - "$id": "45", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "46", - "kind": "enumvalue", - "decorators": [], - "name": "EnumValue2", - "value": "value2", - "valueType": { - "$ref": "45" - }, - "enumType": { - "$ref": "44" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtendedEnum", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "21" }, "decorators": [] } @@ -561,13 +274,13 @@ ], "constants": [ { - "$id": "47", + "$id": "24", "kind": "constant", "name": "StringLiteralPropertyProperty", "namespace": "Type.Property.ValueTypes", "usage": "Input,Output,Json", "valueType": { - "$id": "48", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -577,13 +290,13 @@ "decorators": [] }, { - "$id": "49", + "$id": "26", "kind": "constant", "name": "IntLiteralPropertyProperty", "namespace": "Type.Property.ValueTypes", "usage": "Input,Output,Json", "valueType": { - "$id": "50", + "$id": "27", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -593,13 +306,13 @@ "decorators": [] }, { - "$id": "51", + "$id": "28", "kind": "constant", "name": "FloatLiteralPropertyProperty", "namespace": "Type.Property.ValueTypes", "usage": "Input,Output,Json", "valueType": { - "$id": "52", + "$id": "29", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -609,13 +322,13 @@ "decorators": [] }, { - "$id": "53", + "$id": "30", "kind": "constant", "name": "BooleanLiteralPropertyProperty", "namespace": "Type.Property.ValueTypes", "usage": "Input,Output,Json", "valueType": { - "$id": "54", + "$id": "31", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -625,13 +338,13 @@ "decorators": [] }, { - "$id": "55", + "$id": "32", "kind": "constant", "name": "getContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "56", + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -641,13 +354,13 @@ "decorators": [] }, { - "$id": "57", + "$id": "34", "kind": "constant", "name": "putContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "58", + "$id": "35", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -657,13 +370,13 @@ "decorators": [] }, { - "$id": "59", + "$id": "36", "kind": "constant", "name": "getContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "60", + "$id": "37", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -673,13 +386,13 @@ "decorators": [] }, { - "$id": "61", + "$id": "38", "kind": "constant", "name": "putContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "62", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -689,13 +402,13 @@ "decorators": [] }, { - "$id": "63", + "$id": "40", "kind": "constant", "name": "getContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "64", + "$id": "41", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -705,13 +418,13 @@ "decorators": [] }, { - "$id": "65", + "$id": "42", "kind": "constant", "name": "putContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "66", + "$id": "43", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -721,13 +434,13 @@ "decorators": [] }, { - "$id": "67", + "$id": "44", "kind": "constant", "name": "getContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "68", + "$id": "45", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -737,13 +450,13 @@ "decorators": [] }, { - "$id": "69", + "$id": "46", "kind": "constant", "name": "putContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "70", + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -753,13 +466,13 @@ "decorators": [] }, { - "$id": "71", + "$id": "48", "kind": "constant", "name": "getContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "72", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -769,13 +482,13 @@ "decorators": [] }, { - "$id": "73", + "$id": "50", "kind": "constant", "name": "putContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "74", + "$id": "51", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -785,13 +498,13 @@ "decorators": [] }, { - "$id": "75", + "$id": "52", "kind": "constant", "name": "getContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "76", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -801,13 +514,13 @@ "decorators": [] }, { - "$id": "77", + "$id": "54", "kind": "constant", "name": "putContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "78", + "$id": "55", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -817,13 +530,13 @@ "decorators": [] }, { - "$id": "79", + "$id": "56", "kind": "constant", "name": "getContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "80", + "$id": "57", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -833,13 +546,13 @@ "decorators": [] }, { - "$id": "81", + "$id": "58", "kind": "constant", "name": "putContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "82", + "$id": "59", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -849,13 +562,13 @@ "decorators": [] }, { - "$id": "83", + "$id": "60", "kind": "constant", "name": "getContentType7", "namespace": "", "usage": "None", "valueType": { - "$id": "84", + "$id": "61", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -865,13 +578,13 @@ "decorators": [] }, { - "$id": "85", + "$id": "62", "kind": "constant", "name": "putContentType7", "namespace": "", "usage": "None", "valueType": { - "$id": "86", + "$id": "63", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -881,13 +594,13 @@ "decorators": [] }, { - "$id": "87", + "$id": "64", "kind": "constant", "name": "getContentType8", "namespace": "", "usage": "None", "valueType": { - "$id": "88", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -897,13 +610,13 @@ "decorators": [] }, { - "$id": "89", + "$id": "66", "kind": "constant", "name": "putContentType8", "namespace": "", "usage": "None", "valueType": { - "$id": "90", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -913,13 +626,13 @@ "decorators": [] }, { - "$id": "91", + "$id": "68", "kind": "constant", "name": "getContentType9", "namespace": "", "usage": "None", "valueType": { - "$id": "92", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -929,13 +642,13 @@ "decorators": [] }, { - "$id": "93", + "$id": "70", "kind": "constant", "name": "putContentType9", "namespace": "", "usage": "None", "valueType": { - "$id": "94", + "$id": "71", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -945,13 +658,13 @@ "decorators": [] }, { - "$id": "95", + "$id": "72", "kind": "constant", "name": "getContentType10", "namespace": "", "usage": "None", "valueType": { - "$id": "96", + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -961,13 +674,13 @@ "decorators": [] }, { - "$id": "97", + "$id": "74", "kind": "constant", "name": "putContentType10", "namespace": "", "usage": "None", "valueType": { - "$id": "98", + "$id": "75", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -977,13 +690,13 @@ "decorators": [] }, { - "$id": "99", + "$id": "76", "kind": "constant", "name": "getContentType11", "namespace": "", "usage": "None", "valueType": { - "$id": "100", + "$id": "77", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -993,13 +706,13 @@ "decorators": [] }, { - "$id": "101", + "$id": "78", "kind": "constant", "name": "putContentType11", "namespace": "", "usage": "None", "valueType": { - "$id": "102", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1009,13 +722,13 @@ "decorators": [] }, { - "$id": "103", + "$id": "80", "kind": "constant", "name": "getContentType12", "namespace": "", "usage": "None", "valueType": { - "$id": "104", + "$id": "81", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1025,13 +738,13 @@ "decorators": [] }, { - "$id": "105", + "$id": "82", "kind": "constant", "name": "putContentType12", "namespace": "", "usage": "None", "valueType": { - "$id": "106", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1041,13 +754,13 @@ "decorators": [] }, { - "$id": "107", + "$id": "84", "kind": "constant", "name": "getContentType13", "namespace": "", "usage": "None", "valueType": { - "$id": "108", + "$id": "85", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1057,13 +770,13 @@ "decorators": [] }, { - "$id": "109", + "$id": "86", "kind": "constant", "name": "putContentType13", "namespace": "", "usage": "None", "valueType": { - "$id": "110", + "$id": "87", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1073,13 +786,13 @@ "decorators": [] }, { - "$id": "111", + "$id": "88", "kind": "constant", "name": "getContentType14", "namespace": "", "usage": "None", "valueType": { - "$id": "112", + "$id": "89", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1089,13 +802,13 @@ "decorators": [] }, { - "$id": "113", + "$id": "90", "kind": "constant", "name": "putContentType14", "namespace": "", "usage": "None", "valueType": { - "$id": "114", + "$id": "91", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1105,13 +818,13 @@ "decorators": [] }, { - "$id": "115", + "$id": "92", "kind": "constant", "name": "getContentType15", "namespace": "", "usage": "None", "valueType": { - "$id": "116", + "$id": "93", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1121,13 +834,13 @@ "decorators": [] }, { - "$id": "117", + "$id": "94", "kind": "constant", "name": "putContentType15", "namespace": "", "usage": "None", "valueType": { - "$id": "118", + "$id": "95", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1137,13 +850,13 @@ "decorators": [] }, { - "$id": "119", + "$id": "96", "kind": "constant", "name": "getContentType16", "namespace": "", "usage": "None", "valueType": { - "$id": "120", + "$id": "97", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1153,13 +866,13 @@ "decorators": [] }, { - "$id": "121", + "$id": "98", "kind": "constant", "name": "putContentType16", "namespace": "", "usage": "None", "valueType": { - "$id": "122", + "$id": "99", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1169,13 +882,13 @@ "decorators": [] }, { - "$id": "123", + "$id": "100", "kind": "constant", "name": "getContentType17", "namespace": "", "usage": "None", "valueType": { - "$id": "124", + "$id": "101", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1185,13 +898,13 @@ "decorators": [] }, { - "$id": "125", + "$id": "102", "kind": "constant", "name": "putContentType17", "namespace": "", "usage": "None", "valueType": { - "$id": "126", + "$id": "103", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1201,13 +914,13 @@ "decorators": [] }, { - "$id": "127", + "$id": "104", "kind": "constant", "name": "getContentType18", "namespace": "", "usage": "None", "valueType": { - "$id": "128", + "$id": "105", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1217,13 +930,13 @@ "decorators": [] }, { - "$id": "129", + "$id": "106", "kind": "constant", "name": "putContentType18", "namespace": "", "usage": "None", "valueType": { - "$id": "130", + "$id": "107", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1233,13 +946,13 @@ "decorators": [] }, { - "$id": "131", + "$id": "108", "kind": "constant", "name": "getContentType19", "namespace": "", "usage": "None", "valueType": { - "$id": "132", + "$id": "109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1249,13 +962,13 @@ "decorators": [] }, { - "$id": "133", + "$id": "110", "kind": "constant", "name": "putContentType19", "namespace": "", "usage": "None", "valueType": { - "$id": "134", + "$id": "111", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1265,13 +978,13 @@ "decorators": [] }, { - "$id": "135", + "$id": "112", "kind": "constant", "name": "getContentType20", "namespace": "", "usage": "None", "valueType": { - "$id": "136", + "$id": "113", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1281,13 +994,13 @@ "decorators": [] }, { - "$id": "137", + "$id": "114", "kind": "constant", "name": "putContentType20", "namespace": "", "usage": "None", "valueType": { - "$id": "138", + "$id": "115", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1297,13 +1010,13 @@ "decorators": [] }, { - "$id": "139", + "$id": "116", "kind": "constant", "name": "getContentType21", "namespace": "", "usage": "None", "valueType": { - "$id": "140", + "$id": "117", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1313,13 +1026,13 @@ "decorators": [] }, { - "$id": "141", + "$id": "118", "kind": "constant", "name": "putContentType21", "namespace": "", "usage": "None", "valueType": { - "$id": "142", + "$id": "119", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1329,13 +1042,13 @@ "decorators": [] }, { - "$id": "143", + "$id": "120", "kind": "constant", "name": "getContentType22", "namespace": "", "usage": "None", "valueType": { - "$id": "144", + "$id": "121", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1345,13 +1058,13 @@ "decorators": [] }, { - "$id": "145", + "$id": "122", "kind": "constant", "name": "putContentType22", "namespace": "", "usage": "None", "valueType": { - "$id": "146", + "$id": "123", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1361,13 +1074,13 @@ "decorators": [] }, { - "$id": "147", + "$id": "124", "kind": "constant", "name": "getContentType23", "namespace": "", "usage": "None", "valueType": { - "$id": "148", + "$id": "125", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1377,13 +1090,13 @@ "decorators": [] }, { - "$id": "149", + "$id": "126", "kind": "constant", "name": "putContentType23", "namespace": "", "usage": "None", "valueType": { - "$id": "150", + "$id": "127", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1393,13 +1106,13 @@ "decorators": [] }, { - "$id": "151", + "$id": "128", "kind": "constant", "name": "getContentType24", "namespace": "", "usage": "None", "valueType": { - "$id": "152", + "$id": "129", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1409,13 +1122,13 @@ "decorators": [] }, { - "$id": "153", + "$id": "130", "kind": "constant", "name": "putContentType24", "namespace": "", "usage": "None", "valueType": { - "$id": "154", + "$id": "131", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1425,13 +1138,13 @@ "decorators": [] }, { - "$id": "155", + "$id": "132", "kind": "constant", "name": "getContentType25", "namespace": "", "usage": "None", "valueType": { - "$id": "156", + "$id": "133", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1441,13 +1154,13 @@ "decorators": [] }, { - "$id": "157", + "$id": "134", "kind": "constant", "name": "putContentType25", "namespace": "", "usage": "None", "valueType": { - "$id": "158", + "$id": "135", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1457,13 +1170,13 @@ "decorators": [] }, { - "$id": "159", + "$id": "136", "kind": "constant", "name": "getContentType26", "namespace": "", "usage": "None", "valueType": { - "$id": "160", + "$id": "137", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1473,13 +1186,13 @@ "decorators": [] }, { - "$id": "161", + "$id": "138", "kind": "constant", "name": "putContentType26", "namespace": "", "usage": "None", "valueType": { - "$id": "162", + "$id": "139", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1489,13 +1202,13 @@ "decorators": [] }, { - "$id": "163", + "$id": "140", "kind": "constant", "name": "getContentType27", "namespace": "", "usage": "None", "valueType": { - "$id": "164", + "$id": "141", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1505,13 +1218,13 @@ "decorators": [] }, { - "$id": "165", + "$id": "142", "kind": "constant", "name": "putContentType27", "namespace": "", "usage": "None", "valueType": { - "$id": "166", + "$id": "143", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1521,13 +1234,13 @@ "decorators": [] }, { - "$id": "167", + "$id": "144", "kind": "constant", "name": "getContentType28", "namespace": "", "usage": "None", "valueType": { - "$id": "168", + "$id": "145", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1537,13 +1250,13 @@ "decorators": [] }, { - "$id": "169", + "$id": "146", "kind": "constant", "name": "putContentType28", "namespace": "", "usage": "None", "valueType": { - "$id": "170", + "$id": "147", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1555,7 +1268,7 @@ ], "models": [ { - "$id": "171", + "$id": "148", "kind": "model", "name": "BooleanProperty", "namespace": "Type.Property.ValueTypes", @@ -1565,13 +1278,13 @@ "decorators": [], "properties": [ { - "$id": "172", + "$id": "149", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "173", + "$id": "150", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -1593,7 +1306,7 @@ ] }, { - "$id": "174", + "$id": "151", "kind": "model", "name": "StringProperty", "namespace": "Type.Property.ValueTypes", @@ -1603,13 +1316,13 @@ "decorators": [], "properties": [ { - "$id": "175", + "$id": "152", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "176", + "$id": "153", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1631,7 +1344,7 @@ ] }, { - "$id": "177", + "$id": "154", "kind": "model", "name": "BytesProperty", "namespace": "Type.Property.ValueTypes", @@ -1641,13 +1354,13 @@ "decorators": [], "properties": [ { - "$id": "178", + "$id": "155", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "179", + "$id": "156", "kind": "bytes", "name": "bytes", "encode": "base64", @@ -1670,7 +1383,7 @@ ] }, { - "$id": "180", + "$id": "157", "kind": "model", "name": "IntProperty", "namespace": "Type.Property.ValueTypes", @@ -1680,13 +1393,13 @@ "decorators": [], "properties": [ { - "$id": "181", + "$id": "158", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "182", + "$id": "159", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -1708,7 +1421,7 @@ ] }, { - "$id": "183", + "$id": "160", "kind": "model", "name": "FloatProperty", "namespace": "Type.Property.ValueTypes", @@ -1718,13 +1431,13 @@ "decorators": [], "properties": [ { - "$id": "184", + "$id": "161", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "185", + "$id": "162", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -1746,7 +1459,7 @@ ] }, { - "$id": "186", + "$id": "163", "kind": "model", "name": "DecimalProperty", "namespace": "Type.Property.ValueTypes", @@ -1756,13 +1469,13 @@ "decorators": [], "properties": [ { - "$id": "187", + "$id": "164", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "188", + "$id": "165", "kind": "decimal", "name": "decimal", "crossLanguageDefinitionId": "TypeSpec.decimal", @@ -1784,7 +1497,7 @@ ] }, { - "$id": "189", + "$id": "166", "kind": "model", "name": "Decimal128Property", "namespace": "Type.Property.ValueTypes", @@ -1794,13 +1507,13 @@ "decorators": [], "properties": [ { - "$id": "190", + "$id": "167", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "191", + "$id": "168", "kind": "decimal128", "name": "decimal128", "crossLanguageDefinitionId": "TypeSpec.decimal128", @@ -1822,7 +1535,7 @@ ] }, { - "$id": "192", + "$id": "169", "kind": "model", "name": "DatetimeProperty", "namespace": "Type.Property.ValueTypes", @@ -1832,18 +1545,18 @@ "decorators": [], "properties": [ { - "$id": "193", + "$id": "170", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "194", + "$id": "171", "kind": "utcDateTime", "name": "utcDateTime", "encode": "rfc3339", "wireType": { - "$id": "195", + "$id": "172", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1868,7 +1581,7 @@ ] }, { - "$id": "196", + "$id": "173", "kind": "model", "name": "DurationProperty", "namespace": "Type.Property.ValueTypes", @@ -1878,18 +1591,18 @@ "decorators": [], "properties": [ { - "$id": "197", + "$id": "174", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "198", + "$id": "175", "kind": "duration", "name": "duration", "encode": "ISO8601", "wireType": { - "$id": "199", + "$id": "176", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1914,7 +1627,7 @@ ] }, { - "$id": "200", + "$id": "177", "kind": "model", "name": "EnumProperty", "namespace": "Type.Property.ValueTypes", @@ -1924,7 +1637,7 @@ "decorators": [], "properties": [ { - "$id": "201", + "$id": "178", "kind": "property", "name": "property", "serializedName": "property", @@ -1948,7 +1661,7 @@ ] }, { - "$id": "202", + "$id": "179", "kind": "model", "name": "ExtensibleEnumProperty", "namespace": "Type.Property.ValueTypes", @@ -1958,13 +1671,13 @@ "decorators": [], "properties": [ { - "$id": "203", + "$id": "180", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "9" + "$ref": "5" }, "optional": false, "readOnly": false, @@ -1982,7 +1695,7 @@ ] }, { - "$id": "204", + "$id": "181", "kind": "model", "name": "ModelProperty", "namespace": "Type.Property.ValueTypes", @@ -1992,13 +1705,13 @@ "decorators": [], "properties": [ { - "$id": "205", + "$id": "182", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "206", + "$id": "183", "kind": "model", "name": "InnerModel", "namespace": "Type.Property.ValueTypes", @@ -2008,13 +1721,13 @@ "decorators": [], "properties": [ { - "$id": "207", + "$id": "184", "kind": "property", "name": "property", "serializedName": "property", "doc": "Required string property", "type": { - "$id": "208", + "$id": "185", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2051,10 +1764,10 @@ ] }, { - "$ref": "206" + "$ref": "183" }, { - "$id": "209", + "$id": "186", "kind": "model", "name": "CollectionsStringProperty", "namespace": "Type.Property.ValueTypes", @@ -2064,17 +1777,17 @@ "decorators": [], "properties": [ { - "$id": "210", + "$id": "187", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "211", + "$id": "188", "kind": "array", "name": "Array", "valueType": { - "$id": "212", + "$id": "189", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2099,7 +1812,7 @@ ] }, { - "$id": "213", + "$id": "190", "kind": "model", "name": "CollectionsIntProperty", "namespace": "Type.Property.ValueTypes", @@ -2109,17 +1822,17 @@ "decorators": [], "properties": [ { - "$id": "214", + "$id": "191", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "215", + "$id": "192", "kind": "array", "name": "Array1", "valueType": { - "$id": "216", + "$id": "193", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -2144,7 +1857,7 @@ ] }, { - "$id": "217", + "$id": "194", "kind": "model", "name": "CollectionsModelProperty", "namespace": "Type.Property.ValueTypes", @@ -2154,17 +1867,17 @@ "decorators": [], "properties": [ { - "$id": "218", + "$id": "195", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "219", + "$id": "196", "kind": "array", "name": "ArrayInnerModel", "valueType": { - "$ref": "206" + "$ref": "183" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2185,7 +1898,7 @@ ] }, { - "$id": "220", + "$id": "197", "kind": "model", "name": "DictionaryStringProperty", "namespace": "Type.Property.ValueTypes", @@ -2195,23 +1908,23 @@ "decorators": [], "properties": [ { - "$id": "221", + "$id": "198", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "222", + "$id": "199", "kind": "dict", "keyType": { - "$id": "223", + "$id": "200", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, "valueType": { - "$id": "224", + "$id": "201", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -2235,7 +1948,7 @@ ] }, { - "$id": "225", + "$id": "202", "kind": "model", "name": "NeverProperty", "namespace": "Type.Property.ValueTypes", @@ -2246,7 +1959,7 @@ "properties": [] }, { - "$id": "226", + "$id": "203", "kind": "model", "name": "UnknownStringProperty", "namespace": "Type.Property.ValueTypes", @@ -2256,13 +1969,13 @@ "decorators": [], "properties": [ { - "$id": "227", + "$id": "204", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "228", + "$id": "205", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2284,7 +1997,7 @@ ] }, { - "$id": "229", + "$id": "206", "kind": "model", "name": "UnknownIntProperty", "namespace": "Type.Property.ValueTypes", @@ -2294,13 +2007,13 @@ "decorators": [], "properties": [ { - "$id": "230", + "$id": "207", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "231", + "$id": "208", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2322,7 +2035,7 @@ ] }, { - "$id": "232", + "$id": "209", "kind": "model", "name": "UnknownDictProperty", "namespace": "Type.Property.ValueTypes", @@ -2332,13 +2045,13 @@ "decorators": [], "properties": [ { - "$id": "233", + "$id": "210", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "234", + "$id": "211", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2360,7 +2073,7 @@ ] }, { - "$id": "235", + "$id": "212", "kind": "model", "name": "UnknownArrayProperty", "namespace": "Type.Property.ValueTypes", @@ -2370,13 +2083,13 @@ "decorators": [], "properties": [ { - "$id": "236", + "$id": "213", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$id": "237", + "$id": "214", "kind": "unknown", "name": "unknown", "crossLanguageDefinitionId": "", @@ -2398,7 +2111,7 @@ ] }, { - "$id": "238", + "$id": "215", "kind": "model", "name": "StringLiteralProperty", "namespace": "Type.Property.ValueTypes", @@ -2408,13 +2121,13 @@ "decorators": [], "properties": [ { - "$id": "239", + "$id": "216", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "47" + "$ref": "24" }, "optional": false, "readOnly": false, @@ -2432,7 +2145,7 @@ ] }, { - "$id": "240", + "$id": "217", "kind": "model", "name": "IntLiteralProperty", "namespace": "Type.Property.ValueTypes", @@ -2442,13 +2155,13 @@ "decorators": [], "properties": [ { - "$id": "241", + "$id": "218", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "49" + "$ref": "26" }, "optional": false, "readOnly": false, @@ -2466,7 +2179,7 @@ ] }, { - "$id": "242", + "$id": "219", "kind": "model", "name": "FloatLiteralProperty", "namespace": "Type.Property.ValueTypes", @@ -2476,13 +2189,13 @@ "decorators": [], "properties": [ { - "$id": "243", + "$id": "220", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "51" + "$ref": "28" }, "optional": false, "readOnly": false, @@ -2500,7 +2213,7 @@ ] }, { - "$id": "244", + "$id": "221", "kind": "model", "name": "BooleanLiteralProperty", "namespace": "Type.Property.ValueTypes", @@ -2510,13 +2223,13 @@ "decorators": [], "properties": [ { - "$id": "245", + "$id": "222", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "53" + "$ref": "30" }, "optional": false, "readOnly": false, @@ -2534,7 +2247,7 @@ ] }, { - "$id": "246", + "$id": "223", "kind": "model", "name": "UnionStringLiteralProperty", "namespace": "Type.Property.ValueTypes", @@ -2544,13 +2257,13 @@ "decorators": [], "properties": [ { - "$id": "247", + "$id": "224", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "17" + "$ref": "9" }, "optional": false, "readOnly": false, @@ -2568,7 +2281,7 @@ ] }, { - "$id": "248", + "$id": "225", "kind": "model", "name": "UnionIntLiteralProperty", "namespace": "Type.Property.ValueTypes", @@ -2578,13 +2291,13 @@ "decorators": [], "properties": [ { - "$id": "249", + "$id": "226", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "25" + "$ref": "13" }, "optional": false, "readOnly": false, @@ -2602,7 +2315,7 @@ ] }, { - "$id": "250", + "$id": "227", "kind": "model", "name": "UnionFloatLiteralProperty", "namespace": "Type.Property.ValueTypes", @@ -2612,13 +2325,13 @@ "decorators": [], "properties": [ { - "$id": "251", + "$id": "228", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "33" + "$ref": "17" }, "optional": false, "readOnly": false, @@ -2636,7 +2349,7 @@ ] }, { - "$id": "252", + "$id": "229", "kind": "model", "name": "UnionEnumValueProperty", "namespace": "Type.Property.ValueTypes", @@ -2646,13 +2359,59 @@ "decorators": [], "properties": [ { - "$id": "253", + "$id": "230", "kind": "property", "name": "property", "serializedName": "property", "doc": "Property", "type": { - "$ref": "43" + "$id": "231", + "kind": "enumvalue", + "name": "EnumValue2", + "value": "value2", + "valueType": { + "$ref": "22" + }, + "enumType": { + "$id": "232", + "kind": "enum", + "decorators": [], + "name": "ExtendedEnum", + "isGeneratedName": false, + "namespace": "Type.Property.ValueTypes", + "valueType": { + "$id": "233", + "kind": "string", + "decorators": [], + "name": "string", + "doc": "A sequence of textual characters.", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "values": [ + { + "$id": "234", + "kind": "enumvalue", + "decorators": [], + "name": "EnumValue2", + "value": "value2", + "valueType": { + "$ref": "233" + }, + "enumType": { + "$ref": "232" + } + } + ], + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "access": "public", + "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtendedEnum", + "apiVersions": [], + "isUnionAsEnum": true, + "__accessSet": true + }, + "decorators": [] }, "optional": false, "readOnly": false, @@ -2672,7 +2431,7 @@ ], "clients": [ { - "$id": "254", + "$id": "235", "kind": "client", "name": "ValueTypesClient", "namespace": "Type.Property.ValueTypes", @@ -2680,13 +2439,13 @@ "methods": [], "parameters": [ { - "$id": "255", + "$id": "236", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "256", + "$id": "237", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2697,7 +2456,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "257", + "$id": "238", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2715,32 +2474,32 @@ "apiVersions": [], "children": [ { - "$id": "258", + "$id": "239", "kind": "client", "name": "Boolean", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "259", + "$id": "240", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "260", + "$id": "241", "name": "get", "resourceName": "Boolean", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "261", + "$id": "242", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "55" + "$ref": "32" }, "isApiVersion": false, "optional": false, @@ -2757,7 +2516,7 @@ 200 ], "bodyType": { - "$ref": "171" + "$ref": "148" }, "headers": [], "isErrorResponse": false, @@ -2777,12 +2536,12 @@ }, "parameters": [ { - "$id": "262", + "$id": "243", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "55" + "$ref": "32" }, "location": "Header", "isApiVersion": false, @@ -2796,7 +2555,7 @@ ], "response": { "type": { - "$ref": "171" + "$ref": "148" } }, "isOverride": false, @@ -2805,27 +2564,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get" }, { - "$id": "263", + "$id": "244", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "264", + "$id": "245", "name": "put", "resourceName": "Boolean", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "265", + "$id": "246", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "57" + "$ref": "34" }, "isApiVersion": false, "optional": false, @@ -2836,13 +2595,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.put.contentType" }, { - "$id": "266", + "$id": "247", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "171" + "$ref": "148" }, "isApiVersion": false, "contentTypes": [ @@ -2879,13 +2638,13 @@ }, "parameters": [ { - "$id": "267", + "$id": "248", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "171" + "$ref": "148" }, "location": "Body", "isApiVersion": false, @@ -2897,13 +2656,13 @@ "decorators": [] }, { - "$id": "268", + "$id": "249", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "57" + "$ref": "34" }, "location": "Header", "isApiVersion": false, @@ -2924,13 +2683,13 @@ ], "parameters": [ { - "$id": "269", + "$id": "250", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "270", + "$id": "251", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2941,7 +2700,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "271", + "$id": "252", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2958,36 +2717,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "272", + "$id": "253", "kind": "client", "name": "String", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "273", + "$id": "254", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "274", + "$id": "255", "name": "get", "resourceName": "String", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "275", + "$id": "256", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "59" + "$ref": "36" }, "isApiVersion": false, "optional": false, @@ -3004,7 +2763,7 @@ 200 ], "bodyType": { - "$ref": "174" + "$ref": "151" }, "headers": [], "isErrorResponse": false, @@ -3024,12 +2783,12 @@ }, "parameters": [ { - "$id": "276", + "$id": "257", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "59" + "$ref": "36" }, "location": "Header", "isApiVersion": false, @@ -3043,7 +2802,7 @@ ], "response": { "type": { - "$ref": "174" + "$ref": "151" } }, "isOverride": false, @@ -3052,27 +2811,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.get" }, { - "$id": "277", + "$id": "258", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "278", + "$id": "259", "name": "put", "resourceName": "String", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "279", + "$id": "260", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "61" + "$ref": "38" }, "isApiVersion": false, "optional": false, @@ -3083,13 +2842,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.String.put.contentType" }, { - "$id": "280", + "$id": "261", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "174" + "$ref": "151" }, "isApiVersion": false, "contentTypes": [ @@ -3126,13 +2885,13 @@ }, "parameters": [ { - "$id": "281", + "$id": "262", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "174" + "$ref": "151" }, "location": "Body", "isApiVersion": false, @@ -3144,13 +2903,13 @@ "decorators": [] }, { - "$id": "282", + "$id": "263", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "61" + "$ref": "38" }, "location": "Header", "isApiVersion": false, @@ -3171,13 +2930,13 @@ ], "parameters": [ { - "$id": "283", + "$id": "264", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "284", + "$id": "265", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3188,7 +2947,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "285", + "$id": "266", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3205,36 +2964,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.String", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "286", + "$id": "267", "kind": "client", "name": "Bytes", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "287", + "$id": "268", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "288", + "$id": "269", "name": "get", "resourceName": "Bytes", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "289", + "$id": "270", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "63" + "$ref": "40" }, "isApiVersion": false, "optional": false, @@ -3251,7 +3010,7 @@ 200 ], "bodyType": { - "$ref": "177" + "$ref": "154" }, "headers": [], "isErrorResponse": false, @@ -3271,12 +3030,12 @@ }, "parameters": [ { - "$id": "290", + "$id": "271", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "63" + "$ref": "40" }, "location": "Header", "isApiVersion": false, @@ -3290,7 +3049,7 @@ ], "response": { "type": { - "$ref": "177" + "$ref": "154" } }, "isOverride": false, @@ -3299,27 +3058,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get" }, { - "$id": "291", + "$id": "272", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "292", + "$id": "273", "name": "put", "resourceName": "Bytes", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "293", + "$id": "274", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "65" + "$ref": "42" }, "isApiVersion": false, "optional": false, @@ -3330,13 +3089,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.put.contentType" }, { - "$id": "294", + "$id": "275", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "177" + "$ref": "154" }, "isApiVersion": false, "contentTypes": [ @@ -3373,13 +3132,13 @@ }, "parameters": [ { - "$id": "295", + "$id": "276", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "177" + "$ref": "154" }, "location": "Body", "isApiVersion": false, @@ -3391,13 +3150,13 @@ "decorators": [] }, { - "$id": "296", + "$id": "277", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "65" + "$ref": "42" }, "location": "Header", "isApiVersion": false, @@ -3418,13 +3177,13 @@ ], "parameters": [ { - "$id": "297", + "$id": "278", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "298", + "$id": "279", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3435,7 +3194,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "299", + "$id": "280", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3452,36 +3211,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "300", + "$id": "281", "kind": "client", "name": "Int", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "301", + "$id": "282", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "302", + "$id": "283", "name": "get", "resourceName": "Int", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "303", + "$id": "284", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "67" + "$ref": "44" }, "isApiVersion": false, "optional": false, @@ -3498,7 +3257,7 @@ 200 ], "bodyType": { - "$ref": "180" + "$ref": "157" }, "headers": [], "isErrorResponse": false, @@ -3518,12 +3277,12 @@ }, "parameters": [ { - "$id": "304", + "$id": "285", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "67" + "$ref": "44" }, "location": "Header", "isApiVersion": false, @@ -3537,7 +3296,7 @@ ], "response": { "type": { - "$ref": "180" + "$ref": "157" } }, "isOverride": false, @@ -3546,27 +3305,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get" }, { - "$id": "305", + "$id": "286", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "306", + "$id": "287", "name": "put", "resourceName": "Int", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "307", + "$id": "288", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "69" + "$ref": "46" }, "isApiVersion": false, "optional": false, @@ -3577,13 +3336,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.put.contentType" }, { - "$id": "308", + "$id": "289", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "180" + "$ref": "157" }, "isApiVersion": false, "contentTypes": [ @@ -3620,13 +3379,13 @@ }, "parameters": [ { - "$id": "309", + "$id": "290", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "180" + "$ref": "157" }, "location": "Body", "isApiVersion": false, @@ -3638,13 +3397,13 @@ "decorators": [] }, { - "$id": "310", + "$id": "291", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "69" + "$ref": "46" }, "location": "Header", "isApiVersion": false, @@ -3665,13 +3424,13 @@ ], "parameters": [ { - "$id": "311", + "$id": "292", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "312", + "$id": "293", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3682,7 +3441,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "313", + "$id": "294", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3699,36 +3458,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Int", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "314", + "$id": "295", "kind": "client", "name": "Float", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "315", + "$id": "296", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "316", + "$id": "297", "name": "get", "resourceName": "Float", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "317", + "$id": "298", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "71" + "$ref": "48" }, "isApiVersion": false, "optional": false, @@ -3745,7 +3504,7 @@ 200 ], "bodyType": { - "$ref": "183" + "$ref": "160" }, "headers": [], "isErrorResponse": false, @@ -3765,12 +3524,12 @@ }, "parameters": [ { - "$id": "318", + "$id": "299", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "71" + "$ref": "48" }, "location": "Header", "isApiVersion": false, @@ -3784,7 +3543,7 @@ ], "response": { "type": { - "$ref": "183" + "$ref": "160" } }, "isOverride": false, @@ -3793,27 +3552,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get" }, { - "$id": "319", + "$id": "300", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "320", + "$id": "301", "name": "put", "resourceName": "Float", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "321", + "$id": "302", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "73" + "$ref": "50" }, "isApiVersion": false, "optional": false, @@ -3824,13 +3583,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.put.contentType" }, { - "$id": "322", + "$id": "303", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "183" + "$ref": "160" }, "isApiVersion": false, "contentTypes": [ @@ -3867,13 +3626,13 @@ }, "parameters": [ { - "$id": "323", + "$id": "304", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "183" + "$ref": "160" }, "location": "Body", "isApiVersion": false, @@ -3885,13 +3644,13 @@ "decorators": [] }, { - "$id": "324", + "$id": "305", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "73" + "$ref": "50" }, "location": "Header", "isApiVersion": false, @@ -3912,13 +3671,13 @@ ], "parameters": [ { - "$id": "325", + "$id": "306", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "326", + "$id": "307", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3929,7 +3688,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "327", + "$id": "308", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3946,36 +3705,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Float", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "328", + "$id": "309", "kind": "client", "name": "Decimal", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "329", + "$id": "310", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "330", + "$id": "311", "name": "get", "resourceName": "Decimal", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "331", + "$id": "312", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "75" + "$ref": "52" }, "isApiVersion": false, "optional": false, @@ -3992,7 +3751,7 @@ 200 ], "bodyType": { - "$ref": "186" + "$ref": "163" }, "headers": [], "isErrorResponse": false, @@ -4012,12 +3771,12 @@ }, "parameters": [ { - "$id": "332", + "$id": "313", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "75" + "$ref": "52" }, "location": "Header", "isApiVersion": false, @@ -4031,7 +3790,7 @@ ], "response": { "type": { - "$ref": "186" + "$ref": "163" } }, "isOverride": false, @@ -4040,27 +3799,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get" }, { - "$id": "333", + "$id": "314", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "334", + "$id": "315", "name": "put", "resourceName": "Decimal", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "335", + "$id": "316", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "77" + "$ref": "54" }, "isApiVersion": false, "optional": false, @@ -4071,13 +3830,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.put.contentType" }, { - "$id": "336", + "$id": "317", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "186" + "$ref": "163" }, "isApiVersion": false, "contentTypes": [ @@ -4114,13 +3873,13 @@ }, "parameters": [ { - "$id": "337", + "$id": "318", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "186" + "$ref": "163" }, "location": "Body", "isApiVersion": false, @@ -4132,13 +3891,13 @@ "decorators": [] }, { - "$id": "338", + "$id": "319", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "77" + "$ref": "54" }, "location": "Header", "isApiVersion": false, @@ -4159,13 +3918,13 @@ ], "parameters": [ { - "$id": "339", + "$id": "320", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "340", + "$id": "321", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4176,7 +3935,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "341", + "$id": "322", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4193,36 +3952,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "342", + "$id": "323", "kind": "client", "name": "Decimal128", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "343", + "$id": "324", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "344", + "$id": "325", "name": "get", "resourceName": "Decimal128", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "345", + "$id": "326", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "79" + "$ref": "56" }, "isApiVersion": false, "optional": false, @@ -4239,7 +3998,7 @@ 200 ], "bodyType": { - "$ref": "189" + "$ref": "166" }, "headers": [], "isErrorResponse": false, @@ -4259,12 +4018,12 @@ }, "parameters": [ { - "$id": "346", + "$id": "327", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "79" + "$ref": "56" }, "location": "Header", "isApiVersion": false, @@ -4278,7 +4037,7 @@ ], "response": { "type": { - "$ref": "189" + "$ref": "166" } }, "isOverride": false, @@ -4287,27 +4046,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get" }, { - "$id": "347", + "$id": "328", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "348", + "$id": "329", "name": "put", "resourceName": "Decimal128", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "349", + "$id": "330", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "81" + "$ref": "58" }, "isApiVersion": false, "optional": false, @@ -4318,13 +4077,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.put.contentType" }, { - "$id": "350", + "$id": "331", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "189" + "$ref": "166" }, "isApiVersion": false, "contentTypes": [ @@ -4361,13 +4120,13 @@ }, "parameters": [ { - "$id": "351", + "$id": "332", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "189" + "$ref": "166" }, "location": "Body", "isApiVersion": false, @@ -4379,13 +4138,13 @@ "decorators": [] }, { - "$id": "352", + "$id": "333", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "81" + "$ref": "58" }, "location": "Header", "isApiVersion": false, @@ -4406,13 +4165,13 @@ ], "parameters": [ { - "$id": "353", + "$id": "334", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "354", + "$id": "335", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4423,7 +4182,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "355", + "$id": "336", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4440,36 +4199,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "356", + "$id": "337", "kind": "client", "name": "Datetime", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "357", + "$id": "338", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "358", + "$id": "339", "name": "get", "resourceName": "Datetime", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "359", + "$id": "340", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "83" + "$ref": "60" }, "isApiVersion": false, "optional": false, @@ -4486,7 +4245,7 @@ 200 ], "bodyType": { - "$ref": "192" + "$ref": "169" }, "headers": [], "isErrorResponse": false, @@ -4506,12 +4265,12 @@ }, "parameters": [ { - "$id": "360", + "$id": "341", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "83" + "$ref": "60" }, "location": "Header", "isApiVersion": false, @@ -4525,7 +4284,7 @@ ], "response": { "type": { - "$ref": "192" + "$ref": "169" } }, "isOverride": false, @@ -4534,27 +4293,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get" }, { - "$id": "361", + "$id": "342", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "362", + "$id": "343", "name": "put", "resourceName": "Datetime", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "363", + "$id": "344", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "85" + "$ref": "62" }, "isApiVersion": false, "optional": false, @@ -4565,13 +4324,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.put.contentType" }, { - "$id": "364", + "$id": "345", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "192" + "$ref": "169" }, "isApiVersion": false, "contentTypes": [ @@ -4608,13 +4367,13 @@ }, "parameters": [ { - "$id": "365", + "$id": "346", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "192" + "$ref": "169" }, "location": "Body", "isApiVersion": false, @@ -4626,13 +4385,13 @@ "decorators": [] }, { - "$id": "366", + "$id": "347", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "85" + "$ref": "62" }, "location": "Header", "isApiVersion": false, @@ -4653,13 +4412,13 @@ ], "parameters": [ { - "$id": "367", + "$id": "348", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "368", + "$id": "349", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4670,7 +4429,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "369", + "$id": "350", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4687,36 +4446,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "370", + "$id": "351", "kind": "client", "name": "Duration", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "371", + "$id": "352", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "372", + "$id": "353", "name": "get", "resourceName": "Duration", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "373", + "$id": "354", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "87" + "$ref": "64" }, "isApiVersion": false, "optional": false, @@ -4733,7 +4492,7 @@ 200 ], "bodyType": { - "$ref": "196" + "$ref": "173" }, "headers": [], "isErrorResponse": false, @@ -4753,12 +4512,12 @@ }, "parameters": [ { - "$id": "374", + "$id": "355", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "87" + "$ref": "64" }, "location": "Header", "isApiVersion": false, @@ -4772,7 +4531,7 @@ ], "response": { "type": { - "$ref": "196" + "$ref": "173" } }, "isOverride": false, @@ -4781,27 +4540,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get" }, { - "$id": "375", + "$id": "356", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "376", + "$id": "357", "name": "put", "resourceName": "Duration", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "377", + "$id": "358", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "89" + "$ref": "66" }, "isApiVersion": false, "optional": false, @@ -4812,13 +4571,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.put.contentType" }, { - "$id": "378", + "$id": "359", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "196" + "$ref": "173" }, "isApiVersion": false, "contentTypes": [ @@ -4855,13 +4614,13 @@ }, "parameters": [ { - "$id": "379", + "$id": "360", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "196" + "$ref": "173" }, "location": "Body", "isApiVersion": false, @@ -4873,13 +4632,13 @@ "decorators": [] }, { - "$id": "380", + "$id": "361", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "89" + "$ref": "66" }, "location": "Header", "isApiVersion": false, @@ -4900,13 +4659,13 @@ ], "parameters": [ { - "$id": "381", + "$id": "362", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "382", + "$id": "363", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4917,7 +4676,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "383", + "$id": "364", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4934,36 +4693,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "384", + "$id": "365", "kind": "client", "name": "Enum", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "385", + "$id": "366", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "386", + "$id": "367", "name": "get", "resourceName": "Enum", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "387", + "$id": "368", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "91" + "$ref": "68" }, "isApiVersion": false, "optional": false, @@ -4980,7 +4739,7 @@ 200 ], "bodyType": { - "$ref": "200" + "$ref": "177" }, "headers": [], "isErrorResponse": false, @@ -5000,12 +4759,12 @@ }, "parameters": [ { - "$id": "388", + "$id": "369", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "91" + "$ref": "68" }, "location": "Header", "isApiVersion": false, @@ -5019,7 +4778,7 @@ ], "response": { "type": { - "$ref": "200" + "$ref": "177" } }, "isOverride": false, @@ -5028,27 +4787,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get" }, { - "$id": "389", + "$id": "370", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "390", + "$id": "371", "name": "put", "resourceName": "Enum", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "391", + "$id": "372", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "93" + "$ref": "70" }, "isApiVersion": false, "optional": false, @@ -5059,13 +4818,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.put.contentType" }, { - "$id": "392", + "$id": "373", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "200" + "$ref": "177" }, "isApiVersion": false, "contentTypes": [ @@ -5102,13 +4861,13 @@ }, "parameters": [ { - "$id": "393", + "$id": "374", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "200" + "$ref": "177" }, "location": "Body", "isApiVersion": false, @@ -5120,13 +4879,13 @@ "decorators": [] }, { - "$id": "394", + "$id": "375", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "93" + "$ref": "70" }, "location": "Header", "isApiVersion": false, @@ -5147,13 +4906,13 @@ ], "parameters": [ { - "$id": "395", + "$id": "376", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "396", + "$id": "377", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5164,7 +4923,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "397", + "$id": "378", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5181,36 +4940,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "398", + "$id": "379", "kind": "client", "name": "ExtensibleEnum", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "399", + "$id": "380", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "400", + "$id": "381", "name": "get", "resourceName": "ExtensibleEnum", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "401", + "$id": "382", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "95" + "$ref": "72" }, "isApiVersion": false, "optional": false, @@ -5227,7 +4986,7 @@ 200 ], "bodyType": { - "$ref": "202" + "$ref": "179" }, "headers": [], "isErrorResponse": false, @@ -5247,12 +5006,12 @@ }, "parameters": [ { - "$id": "402", + "$id": "383", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "95" + "$ref": "72" }, "location": "Header", "isApiVersion": false, @@ -5266,7 +5025,7 @@ ], "response": { "type": { - "$ref": "202" + "$ref": "179" } }, "isOverride": false, @@ -5275,27 +5034,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get" }, { - "$id": "403", + "$id": "384", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "404", + "$id": "385", "name": "put", "resourceName": "ExtensibleEnum", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "405", + "$id": "386", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "97" + "$ref": "74" }, "isApiVersion": false, "optional": false, @@ -5306,13 +5065,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.put.contentType" }, { - "$id": "406", + "$id": "387", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "202" + "$ref": "179" }, "isApiVersion": false, "contentTypes": [ @@ -5349,13 +5108,13 @@ }, "parameters": [ { - "$id": "407", + "$id": "388", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "202" + "$ref": "179" }, "location": "Body", "isApiVersion": false, @@ -5367,13 +5126,13 @@ "decorators": [] }, { - "$id": "408", + "$id": "389", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "97" + "$ref": "74" }, "location": "Header", "isApiVersion": false, @@ -5394,13 +5153,13 @@ ], "parameters": [ { - "$id": "409", + "$id": "390", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "410", + "$id": "391", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5411,7 +5170,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "411", + "$id": "392", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5428,36 +5187,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "412", + "$id": "393", "kind": "client", "name": "Model", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "413", + "$id": "394", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "414", + "$id": "395", "name": "get", "resourceName": "Model", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "415", + "$id": "396", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "99" + "$ref": "76" }, "isApiVersion": false, "optional": false, @@ -5474,7 +5233,7 @@ 200 ], "bodyType": { - "$ref": "204" + "$ref": "181" }, "headers": [], "isErrorResponse": false, @@ -5494,12 +5253,12 @@ }, "parameters": [ { - "$id": "416", + "$id": "397", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "99" + "$ref": "76" }, "location": "Header", "isApiVersion": false, @@ -5513,7 +5272,7 @@ ], "response": { "type": { - "$ref": "204" + "$ref": "181" } }, "isOverride": false, @@ -5522,27 +5281,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get" }, { - "$id": "417", + "$id": "398", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "418", + "$id": "399", "name": "put", "resourceName": "Model", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "419", + "$id": "400", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "101" + "$ref": "78" }, "isApiVersion": false, "optional": false, @@ -5553,13 +5312,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.put.contentType" }, { - "$id": "420", + "$id": "401", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "204" + "$ref": "181" }, "isApiVersion": false, "contentTypes": [ @@ -5596,13 +5355,13 @@ }, "parameters": [ { - "$id": "421", + "$id": "402", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "204" + "$ref": "181" }, "location": "Body", "isApiVersion": false, @@ -5614,13 +5373,13 @@ "decorators": [] }, { - "$id": "422", + "$id": "403", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "101" + "$ref": "78" }, "location": "Header", "isApiVersion": false, @@ -5641,13 +5400,13 @@ ], "parameters": [ { - "$id": "423", + "$id": "404", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "424", + "$id": "405", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5658,7 +5417,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "425", + "$id": "406", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5675,36 +5434,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Model", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "426", + "$id": "407", "kind": "client", "name": "CollectionsString", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "427", + "$id": "408", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "428", + "$id": "409", "name": "get", "resourceName": "CollectionsString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "429", + "$id": "410", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "103" + "$ref": "80" }, "isApiVersion": false, "optional": false, @@ -5721,7 +5480,7 @@ 200 ], "bodyType": { - "$ref": "209" + "$ref": "186" }, "headers": [], "isErrorResponse": false, @@ -5741,12 +5500,12 @@ }, "parameters": [ { - "$id": "430", + "$id": "411", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "103" + "$ref": "80" }, "location": "Header", "isApiVersion": false, @@ -5760,7 +5519,7 @@ ], "response": { "type": { - "$ref": "209" + "$ref": "186" } }, "isOverride": false, @@ -5769,27 +5528,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get" }, { - "$id": "431", + "$id": "412", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "432", + "$id": "413", "name": "put", "resourceName": "CollectionsString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "433", + "$id": "414", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "105" + "$ref": "82" }, "isApiVersion": false, "optional": false, @@ -5800,13 +5559,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.put.contentType" }, { - "$id": "434", + "$id": "415", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "209" + "$ref": "186" }, "isApiVersion": false, "contentTypes": [ @@ -5843,13 +5602,13 @@ }, "parameters": [ { - "$id": "435", + "$id": "416", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "209" + "$ref": "186" }, "location": "Body", "isApiVersion": false, @@ -5861,13 +5620,13 @@ "decorators": [] }, { - "$id": "436", + "$id": "417", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "105" + "$ref": "82" }, "location": "Header", "isApiVersion": false, @@ -5888,13 +5647,13 @@ ], "parameters": [ { - "$id": "437", + "$id": "418", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "438", + "$id": "419", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -5905,7 +5664,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "439", + "$id": "420", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -5922,36 +5681,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "440", + "$id": "421", "kind": "client", "name": "CollectionsInt", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "441", + "$id": "422", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "442", + "$id": "423", "name": "get", "resourceName": "CollectionsInt", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "443", + "$id": "424", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "107" + "$ref": "84" }, "isApiVersion": false, "optional": false, @@ -5968,7 +5727,7 @@ 200 ], "bodyType": { - "$ref": "213" + "$ref": "190" }, "headers": [], "isErrorResponse": false, @@ -5988,12 +5747,12 @@ }, "parameters": [ { - "$id": "444", + "$id": "425", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "107" + "$ref": "84" }, "location": "Header", "isApiVersion": false, @@ -6007,7 +5766,7 @@ ], "response": { "type": { - "$ref": "213" + "$ref": "190" } }, "isOverride": false, @@ -6016,27 +5775,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get" }, { - "$id": "445", + "$id": "426", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "446", + "$id": "427", "name": "put", "resourceName": "CollectionsInt", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "447", + "$id": "428", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "109" + "$ref": "86" }, "isApiVersion": false, "optional": false, @@ -6047,13 +5806,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.put.contentType" }, { - "$id": "448", + "$id": "429", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "213" + "$ref": "190" }, "isApiVersion": false, "contentTypes": [ @@ -6090,13 +5849,13 @@ }, "parameters": [ { - "$id": "449", + "$id": "430", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "213" + "$ref": "190" }, "location": "Body", "isApiVersion": false, @@ -6108,13 +5867,13 @@ "decorators": [] }, { - "$id": "450", + "$id": "431", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "109" + "$ref": "86" }, "location": "Header", "isApiVersion": false, @@ -6135,13 +5894,13 @@ ], "parameters": [ { - "$id": "451", + "$id": "432", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "452", + "$id": "433", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6152,7 +5911,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "453", + "$id": "434", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6169,36 +5928,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "454", + "$id": "435", "kind": "client", "name": "CollectionsModel", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "455", + "$id": "436", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "456", + "$id": "437", "name": "get", "resourceName": "CollectionsModel", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "457", + "$id": "438", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "111" + "$ref": "88" }, "isApiVersion": false, "optional": false, @@ -6215,7 +5974,7 @@ 200 ], "bodyType": { - "$ref": "217" + "$ref": "194" }, "headers": [], "isErrorResponse": false, @@ -6235,12 +5994,12 @@ }, "parameters": [ { - "$id": "458", + "$id": "439", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "111" + "$ref": "88" }, "location": "Header", "isApiVersion": false, @@ -6254,7 +6013,7 @@ ], "response": { "type": { - "$ref": "217" + "$ref": "194" } }, "isOverride": false, @@ -6263,27 +6022,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get" }, { - "$id": "459", + "$id": "440", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "460", + "$id": "441", "name": "put", "resourceName": "CollectionsModel", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "461", + "$id": "442", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "113" + "$ref": "90" }, "isApiVersion": false, "optional": false, @@ -6294,13 +6053,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.put.contentType" }, { - "$id": "462", + "$id": "443", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "217" + "$ref": "194" }, "isApiVersion": false, "contentTypes": [ @@ -6337,13 +6096,13 @@ }, "parameters": [ { - "$id": "463", + "$id": "444", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "217" + "$ref": "194" }, "location": "Body", "isApiVersion": false, @@ -6355,13 +6114,13 @@ "decorators": [] }, { - "$id": "464", + "$id": "445", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "113" + "$ref": "90" }, "location": "Header", "isApiVersion": false, @@ -6382,13 +6141,13 @@ ], "parameters": [ { - "$id": "465", + "$id": "446", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "466", + "$id": "447", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6399,7 +6158,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "467", + "$id": "448", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6416,36 +6175,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "468", + "$id": "449", "kind": "client", "name": "DictionaryString", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "469", + "$id": "450", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "470", + "$id": "451", "name": "get", "resourceName": "DictionaryString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "471", + "$id": "452", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "115" + "$ref": "92" }, "isApiVersion": false, "optional": false, @@ -6462,7 +6221,7 @@ 200 ], "bodyType": { - "$ref": "220" + "$ref": "197" }, "headers": [], "isErrorResponse": false, @@ -6482,12 +6241,12 @@ }, "parameters": [ { - "$id": "472", + "$id": "453", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "115" + "$ref": "92" }, "location": "Header", "isApiVersion": false, @@ -6501,7 +6260,7 @@ ], "response": { "type": { - "$ref": "220" + "$ref": "197" } }, "isOverride": false, @@ -6510,27 +6269,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get" }, { - "$id": "473", + "$id": "454", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "474", + "$id": "455", "name": "put", "resourceName": "DictionaryString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "475", + "$id": "456", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "117" + "$ref": "94" }, "isApiVersion": false, "optional": false, @@ -6541,13 +6300,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.put.contentType" }, { - "$id": "476", + "$id": "457", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "220" + "$ref": "197" }, "isApiVersion": false, "contentTypes": [ @@ -6584,13 +6343,13 @@ }, "parameters": [ { - "$id": "477", + "$id": "458", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "220" + "$ref": "197" }, "location": "Body", "isApiVersion": false, @@ -6602,13 +6361,13 @@ "decorators": [] }, { - "$id": "478", + "$id": "459", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "117" + "$ref": "94" }, "location": "Header", "isApiVersion": false, @@ -6629,13 +6388,13 @@ ], "parameters": [ { - "$id": "479", + "$id": "460", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "480", + "$id": "461", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6646,7 +6405,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "481", + "$id": "462", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6663,36 +6422,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "482", + "$id": "463", "kind": "client", "name": "Never", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "483", + "$id": "464", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "484", + "$id": "465", "name": "get", "resourceName": "Never", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "485", + "$id": "466", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "119" + "$ref": "96" }, "isApiVersion": false, "optional": false, @@ -6709,7 +6468,7 @@ 200 ], "bodyType": { - "$ref": "225" + "$ref": "202" }, "headers": [], "isErrorResponse": false, @@ -6729,12 +6488,12 @@ }, "parameters": [ { - "$id": "486", + "$id": "467", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "119" + "$ref": "96" }, "location": "Header", "isApiVersion": false, @@ -6748,7 +6507,7 @@ ], "response": { "type": { - "$ref": "225" + "$ref": "202" } }, "isOverride": false, @@ -6757,27 +6516,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get" }, { - "$id": "487", + "$id": "468", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "488", + "$id": "469", "name": "put", "resourceName": "Never", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "489", + "$id": "470", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "121" + "$ref": "98" }, "isApiVersion": false, "optional": false, @@ -6788,13 +6547,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.put.contentType" }, { - "$id": "490", + "$id": "471", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "225" + "$ref": "202" }, "isApiVersion": false, "contentTypes": [ @@ -6831,13 +6590,13 @@ }, "parameters": [ { - "$id": "491", + "$id": "472", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "225" + "$ref": "202" }, "location": "Body", "isApiVersion": false, @@ -6849,13 +6608,13 @@ "decorators": [] }, { - "$id": "492", + "$id": "473", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "121" + "$ref": "98" }, "location": "Header", "isApiVersion": false, @@ -6876,13 +6635,13 @@ ], "parameters": [ { - "$id": "493", + "$id": "474", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "494", + "$id": "475", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -6893,7 +6652,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "495", + "$id": "476", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -6910,36 +6669,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.Never", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "496", + "$id": "477", "kind": "client", "name": "UnknownString", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "497", + "$id": "478", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "498", + "$id": "479", "name": "get", "resourceName": "UnknownString", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "499", + "$id": "480", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "123" + "$ref": "100" }, "isApiVersion": false, "optional": false, @@ -6956,7 +6715,7 @@ 200 ], "bodyType": { - "$ref": "226" + "$ref": "203" }, "headers": [], "isErrorResponse": false, @@ -6976,12 +6735,12 @@ }, "parameters": [ { - "$id": "500", + "$id": "481", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "123" + "$ref": "100" }, "location": "Header", "isApiVersion": false, @@ -6995,7 +6754,7 @@ ], "response": { "type": { - "$ref": "226" + "$ref": "203" } }, "isOverride": false, @@ -7004,27 +6763,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get" }, { - "$id": "501", + "$id": "482", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "502", + "$id": "483", "name": "put", "resourceName": "UnknownString", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "503", + "$id": "484", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "125" + "$ref": "102" }, "isApiVersion": false, "optional": false, @@ -7035,13 +6794,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.put.contentType" }, { - "$id": "504", + "$id": "485", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "226" + "$ref": "203" }, "isApiVersion": false, "contentTypes": [ @@ -7078,13 +6837,13 @@ }, "parameters": [ { - "$id": "505", + "$id": "486", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "226" + "$ref": "203" }, "location": "Body", "isApiVersion": false, @@ -7096,13 +6855,13 @@ "decorators": [] }, { - "$id": "506", + "$id": "487", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "125" + "$ref": "102" }, "location": "Header", "isApiVersion": false, @@ -7123,13 +6882,13 @@ ], "parameters": [ { - "$id": "507", + "$id": "488", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "508", + "$id": "489", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7140,7 +6899,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "509", + "$id": "490", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7157,36 +6916,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "510", + "$id": "491", "kind": "client", "name": "UnknownInt", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "511", + "$id": "492", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "512", + "$id": "493", "name": "get", "resourceName": "UnknownInt", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "513", + "$id": "494", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "127" + "$ref": "104" }, "isApiVersion": false, "optional": false, @@ -7203,7 +6962,7 @@ 200 ], "bodyType": { - "$ref": "229" + "$ref": "206" }, "headers": [], "isErrorResponse": false, @@ -7223,12 +6982,12 @@ }, "parameters": [ { - "$id": "514", + "$id": "495", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "127" + "$ref": "104" }, "location": "Header", "isApiVersion": false, @@ -7242,7 +7001,7 @@ ], "response": { "type": { - "$ref": "229" + "$ref": "206" } }, "isOverride": false, @@ -7251,27 +7010,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get" }, { - "$id": "515", + "$id": "496", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "516", + "$id": "497", "name": "put", "resourceName": "UnknownInt", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "517", + "$id": "498", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "129" + "$ref": "106" }, "isApiVersion": false, "optional": false, @@ -7282,13 +7041,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.put.contentType" }, { - "$id": "518", + "$id": "499", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "229" + "$ref": "206" }, "isApiVersion": false, "contentTypes": [ @@ -7325,13 +7084,13 @@ }, "parameters": [ { - "$id": "519", + "$id": "500", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "229" + "$ref": "206" }, "location": "Body", "isApiVersion": false, @@ -7343,13 +7102,13 @@ "decorators": [] }, { - "$id": "520", + "$id": "501", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "129" + "$ref": "106" }, "location": "Header", "isApiVersion": false, @@ -7370,13 +7129,13 @@ ], "parameters": [ { - "$id": "521", + "$id": "502", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "522", + "$id": "503", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7387,7 +7146,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "523", + "$id": "504", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7404,36 +7163,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "524", + "$id": "505", "kind": "client", "name": "UnknownDict", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "525", + "$id": "506", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "526", + "$id": "507", "name": "get", "resourceName": "UnknownDict", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "527", + "$id": "508", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "131" + "$ref": "108" }, "isApiVersion": false, "optional": false, @@ -7450,7 +7209,7 @@ 200 ], "bodyType": { - "$ref": "232" + "$ref": "209" }, "headers": [], "isErrorResponse": false, @@ -7470,12 +7229,12 @@ }, "parameters": [ { - "$id": "528", + "$id": "509", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "131" + "$ref": "108" }, "location": "Header", "isApiVersion": false, @@ -7489,7 +7248,7 @@ ], "response": { "type": { - "$ref": "232" + "$ref": "209" } }, "isOverride": false, @@ -7498,27 +7257,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get" }, { - "$id": "529", + "$id": "510", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "530", + "$id": "511", "name": "put", "resourceName": "UnknownDict", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "531", + "$id": "512", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "133" + "$ref": "110" }, "isApiVersion": false, "optional": false, @@ -7529,13 +7288,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.put.contentType" }, { - "$id": "532", + "$id": "513", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "232" + "$ref": "209" }, "isApiVersion": false, "contentTypes": [ @@ -7572,13 +7331,13 @@ }, "parameters": [ { - "$id": "533", + "$id": "514", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "232" + "$ref": "209" }, "location": "Body", "isApiVersion": false, @@ -7590,13 +7349,13 @@ "decorators": [] }, { - "$id": "534", + "$id": "515", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "133" + "$ref": "110" }, "location": "Header", "isApiVersion": false, @@ -7617,13 +7376,13 @@ ], "parameters": [ { - "$id": "535", + "$id": "516", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "536", + "$id": "517", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7634,7 +7393,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "537", + "$id": "518", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7651,36 +7410,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "538", + "$id": "519", "kind": "client", "name": "UnknownArray", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "539", + "$id": "520", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "540", + "$id": "521", "name": "get", "resourceName": "UnknownArray", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "541", + "$id": "522", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "135" + "$ref": "112" }, "isApiVersion": false, "optional": false, @@ -7697,7 +7456,7 @@ 200 ], "bodyType": { - "$ref": "235" + "$ref": "212" }, "headers": [], "isErrorResponse": false, @@ -7717,12 +7476,12 @@ }, "parameters": [ { - "$id": "542", + "$id": "523", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "135" + "$ref": "112" }, "location": "Header", "isApiVersion": false, @@ -7736,7 +7495,7 @@ ], "response": { "type": { - "$ref": "235" + "$ref": "212" } }, "isOverride": false, @@ -7745,27 +7504,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get" }, { - "$id": "543", + "$id": "524", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "544", + "$id": "525", "name": "put", "resourceName": "UnknownArray", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "545", + "$id": "526", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "137" + "$ref": "114" }, "isApiVersion": false, "optional": false, @@ -7776,13 +7535,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.put.contentType" }, { - "$id": "546", + "$id": "527", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "235" + "$ref": "212" }, "isApiVersion": false, "contentTypes": [ @@ -7819,13 +7578,13 @@ }, "parameters": [ { - "$id": "547", + "$id": "528", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "235" + "$ref": "212" }, "location": "Body", "isApiVersion": false, @@ -7837,13 +7596,13 @@ "decorators": [] }, { - "$id": "548", + "$id": "529", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "137" + "$ref": "114" }, "location": "Header", "isApiVersion": false, @@ -7864,13 +7623,13 @@ ], "parameters": [ { - "$id": "549", + "$id": "530", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "550", + "$id": "531", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -7881,7 +7640,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "551", + "$id": "532", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -7898,36 +7657,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "552", + "$id": "533", "kind": "client", "name": "StringLiteral", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "553", + "$id": "534", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "554", + "$id": "535", "name": "get", "resourceName": "StringLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "555", + "$id": "536", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "139" + "$ref": "116" }, "isApiVersion": false, "optional": false, @@ -7944,7 +7703,7 @@ 200 ], "bodyType": { - "$ref": "238" + "$ref": "215" }, "headers": [], "isErrorResponse": false, @@ -7964,12 +7723,12 @@ }, "parameters": [ { - "$id": "556", + "$id": "537", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "139" + "$ref": "116" }, "location": "Header", "isApiVersion": false, @@ -7983,7 +7742,7 @@ ], "response": { "type": { - "$ref": "238" + "$ref": "215" } }, "isOverride": false, @@ -7992,27 +7751,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get" }, { - "$id": "557", + "$id": "538", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "558", + "$id": "539", "name": "put", "resourceName": "StringLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "559", + "$id": "540", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "141" + "$ref": "118" }, "isApiVersion": false, "optional": false, @@ -8023,13 +7782,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.put.contentType" }, { - "$id": "560", + "$id": "541", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "238" + "$ref": "215" }, "isApiVersion": false, "contentTypes": [ @@ -8066,13 +7825,13 @@ }, "parameters": [ { - "$id": "561", + "$id": "542", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "238" + "$ref": "215" }, "location": "Body", "isApiVersion": false, @@ -8084,13 +7843,13 @@ "decorators": [] }, { - "$id": "562", + "$id": "543", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "141" + "$ref": "118" }, "location": "Header", "isApiVersion": false, @@ -8111,13 +7870,13 @@ ], "parameters": [ { - "$id": "563", + "$id": "544", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "564", + "$id": "545", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8128,7 +7887,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "565", + "$id": "546", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8145,36 +7904,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "566", + "$id": "547", "kind": "client", "name": "IntLiteral", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "567", + "$id": "548", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "568", + "$id": "549", "name": "get", "resourceName": "IntLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "569", + "$id": "550", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "143" + "$ref": "120" }, "isApiVersion": false, "optional": false, @@ -8191,7 +7950,7 @@ 200 ], "bodyType": { - "$ref": "240" + "$ref": "217" }, "headers": [], "isErrorResponse": false, @@ -8211,12 +7970,12 @@ }, "parameters": [ { - "$id": "570", + "$id": "551", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "143" + "$ref": "120" }, "location": "Header", "isApiVersion": false, @@ -8230,7 +7989,7 @@ ], "response": { "type": { - "$ref": "240" + "$ref": "217" } }, "isOverride": false, @@ -8239,27 +7998,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get" }, { - "$id": "571", + "$id": "552", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "572", + "$id": "553", "name": "put", "resourceName": "IntLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "573", + "$id": "554", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "145" + "$ref": "122" }, "isApiVersion": false, "optional": false, @@ -8270,13 +8029,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.put.contentType" }, { - "$id": "574", + "$id": "555", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "240" + "$ref": "217" }, "isApiVersion": false, "contentTypes": [ @@ -8313,13 +8072,13 @@ }, "parameters": [ { - "$id": "575", + "$id": "556", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "240" + "$ref": "217" }, "location": "Body", "isApiVersion": false, @@ -8331,13 +8090,13 @@ "decorators": [] }, { - "$id": "576", + "$id": "557", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "145" + "$ref": "122" }, "location": "Header", "isApiVersion": false, @@ -8358,13 +8117,13 @@ ], "parameters": [ { - "$id": "577", + "$id": "558", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "578", + "$id": "559", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8375,7 +8134,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "579", + "$id": "560", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8392,36 +8151,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "580", + "$id": "561", "kind": "client", "name": "FloatLiteral", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "581", + "$id": "562", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "582", + "$id": "563", "name": "get", "resourceName": "FloatLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "583", + "$id": "564", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "147" + "$ref": "124" }, "isApiVersion": false, "optional": false, @@ -8438,7 +8197,7 @@ 200 ], "bodyType": { - "$ref": "242" + "$ref": "219" }, "headers": [], "isErrorResponse": false, @@ -8458,12 +8217,12 @@ }, "parameters": [ { - "$id": "584", + "$id": "565", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "147" + "$ref": "124" }, "location": "Header", "isApiVersion": false, @@ -8477,7 +8236,7 @@ ], "response": { "type": { - "$ref": "242" + "$ref": "219" } }, "isOverride": false, @@ -8486,27 +8245,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get" }, { - "$id": "585", + "$id": "566", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "586", + "$id": "567", "name": "put", "resourceName": "FloatLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "587", + "$id": "568", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "149" + "$ref": "126" }, "isApiVersion": false, "optional": false, @@ -8517,13 +8276,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.put.contentType" }, { - "$id": "588", + "$id": "569", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "242" + "$ref": "219" }, "isApiVersion": false, "contentTypes": [ @@ -8560,13 +8319,13 @@ }, "parameters": [ { - "$id": "589", + "$id": "570", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "242" + "$ref": "219" }, "location": "Body", "isApiVersion": false, @@ -8578,13 +8337,13 @@ "decorators": [] }, { - "$id": "590", + "$id": "571", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "149" + "$ref": "126" }, "location": "Header", "isApiVersion": false, @@ -8605,13 +8364,13 @@ ], "parameters": [ { - "$id": "591", + "$id": "572", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "592", + "$id": "573", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8622,7 +8381,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "593", + "$id": "574", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8639,36 +8398,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "594", + "$id": "575", "kind": "client", "name": "BooleanLiteral", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "595", + "$id": "576", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "596", + "$id": "577", "name": "get", "resourceName": "BooleanLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "597", + "$id": "578", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "151" + "$ref": "128" }, "isApiVersion": false, "optional": false, @@ -8685,7 +8444,7 @@ 200 ], "bodyType": { - "$ref": "244" + "$ref": "221" }, "headers": [], "isErrorResponse": false, @@ -8705,12 +8464,12 @@ }, "parameters": [ { - "$id": "598", + "$id": "579", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "151" + "$ref": "128" }, "location": "Header", "isApiVersion": false, @@ -8724,7 +8483,7 @@ ], "response": { "type": { - "$ref": "244" + "$ref": "221" } }, "isOverride": false, @@ -8733,27 +8492,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get" }, { - "$id": "599", + "$id": "580", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "600", + "$id": "581", "name": "put", "resourceName": "BooleanLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "601", + "$id": "582", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "153" + "$ref": "130" }, "isApiVersion": false, "optional": false, @@ -8764,13 +8523,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.put.contentType" }, { - "$id": "602", + "$id": "583", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "244" + "$ref": "221" }, "isApiVersion": false, "contentTypes": [ @@ -8807,13 +8566,13 @@ }, "parameters": [ { - "$id": "603", + "$id": "584", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "244" + "$ref": "221" }, "location": "Body", "isApiVersion": false, @@ -8825,13 +8584,13 @@ "decorators": [] }, { - "$id": "604", + "$id": "585", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "153" + "$ref": "130" }, "location": "Header", "isApiVersion": false, @@ -8852,13 +8611,13 @@ ], "parameters": [ { - "$id": "605", + "$id": "586", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "606", + "$id": "587", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -8869,7 +8628,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "607", + "$id": "588", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -8886,36 +8645,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "608", + "$id": "589", "kind": "client", "name": "UnionStringLiteral", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "609", + "$id": "590", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "610", + "$id": "591", "name": "get", "resourceName": "UnionStringLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "611", + "$id": "592", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "155" + "$ref": "132" }, "isApiVersion": false, "optional": false, @@ -8932,7 +8691,7 @@ 200 ], "bodyType": { - "$ref": "246" + "$ref": "223" }, "headers": [], "isErrorResponse": false, @@ -8952,12 +8711,12 @@ }, "parameters": [ { - "$id": "612", + "$id": "593", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "155" + "$ref": "132" }, "location": "Header", "isApiVersion": false, @@ -8971,7 +8730,7 @@ ], "response": { "type": { - "$ref": "246" + "$ref": "223" } }, "isOverride": false, @@ -8980,27 +8739,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get" }, { - "$id": "613", + "$id": "594", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "614", + "$id": "595", "name": "put", "resourceName": "UnionStringLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "615", + "$id": "596", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "157" + "$ref": "134" }, "isApiVersion": false, "optional": false, @@ -9011,13 +8770,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.put.contentType" }, { - "$id": "616", + "$id": "597", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "246" + "$ref": "223" }, "isApiVersion": false, "contentTypes": [ @@ -9054,13 +8813,13 @@ }, "parameters": [ { - "$id": "617", + "$id": "598", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "246" + "$ref": "223" }, "location": "Body", "isApiVersion": false, @@ -9072,13 +8831,13 @@ "decorators": [] }, { - "$id": "618", + "$id": "599", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "157" + "$ref": "134" }, "location": "Header", "isApiVersion": false, @@ -9099,13 +8858,13 @@ ], "parameters": [ { - "$id": "619", + "$id": "600", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "620", + "$id": "601", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9116,7 +8875,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "621", + "$id": "602", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9133,36 +8892,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "622", + "$id": "603", "kind": "client", "name": "UnionIntLiteral", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "623", + "$id": "604", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "624", + "$id": "605", "name": "get", "resourceName": "UnionIntLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "625", + "$id": "606", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "159" + "$ref": "136" }, "isApiVersion": false, "optional": false, @@ -9179,7 +8938,7 @@ 200 ], "bodyType": { - "$ref": "248" + "$ref": "225" }, "headers": [], "isErrorResponse": false, @@ -9199,12 +8958,12 @@ }, "parameters": [ { - "$id": "626", + "$id": "607", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "159" + "$ref": "136" }, "location": "Header", "isApiVersion": false, @@ -9218,7 +8977,7 @@ ], "response": { "type": { - "$ref": "248" + "$ref": "225" } }, "isOverride": false, @@ -9227,27 +8986,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get" }, { - "$id": "627", + "$id": "608", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "628", + "$id": "609", "name": "put", "resourceName": "UnionIntLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "629", + "$id": "610", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "161" + "$ref": "138" }, "isApiVersion": false, "optional": false, @@ -9258,13 +9017,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.put.contentType" }, { - "$id": "630", + "$id": "611", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "248" + "$ref": "225" }, "isApiVersion": false, "contentTypes": [ @@ -9301,13 +9060,13 @@ }, "parameters": [ { - "$id": "631", + "$id": "612", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "248" + "$ref": "225" }, "location": "Body", "isApiVersion": false, @@ -9319,13 +9078,13 @@ "decorators": [] }, { - "$id": "632", + "$id": "613", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "161" + "$ref": "138" }, "location": "Header", "isApiVersion": false, @@ -9346,13 +9105,13 @@ ], "parameters": [ { - "$id": "633", + "$id": "614", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "634", + "$id": "615", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9363,7 +9122,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "635", + "$id": "616", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9380,36 +9139,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "636", + "$id": "617", "kind": "client", "name": "UnionFloatLiteral", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "637", + "$id": "618", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "638", + "$id": "619", "name": "get", "resourceName": "UnionFloatLiteral", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "639", + "$id": "620", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "163" + "$ref": "140" }, "isApiVersion": false, "optional": false, @@ -9426,7 +9185,7 @@ 200 ], "bodyType": { - "$ref": "250" + "$ref": "227" }, "headers": [], "isErrorResponse": false, @@ -9446,12 +9205,12 @@ }, "parameters": [ { - "$id": "640", + "$id": "621", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "163" + "$ref": "140" }, "location": "Header", "isApiVersion": false, @@ -9465,7 +9224,7 @@ ], "response": { "type": { - "$ref": "250" + "$ref": "227" } }, "isOverride": false, @@ -9474,27 +9233,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get" }, { - "$id": "641", + "$id": "622", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "642", + "$id": "623", "name": "put", "resourceName": "UnionFloatLiteral", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "643", + "$id": "624", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "165" + "$ref": "142" }, "isApiVersion": false, "optional": false, @@ -9505,13 +9264,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.put.contentType" }, { - "$id": "644", + "$id": "625", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "250" + "$ref": "227" }, "isApiVersion": false, "contentTypes": [ @@ -9548,13 +9307,13 @@ }, "parameters": [ { - "$id": "645", + "$id": "626", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "250" + "$ref": "227" }, "location": "Body", "isApiVersion": false, @@ -9566,13 +9325,13 @@ "decorators": [] }, { - "$id": "646", + "$id": "627", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "165" + "$ref": "142" }, "location": "Header", "isApiVersion": false, @@ -9593,13 +9352,13 @@ ], "parameters": [ { - "$id": "647", + "$id": "628", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "648", + "$id": "629", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9610,7 +9369,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "649", + "$id": "630", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9627,36 +9386,36 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } }, { - "$id": "650", + "$id": "631", "kind": "client", "name": "UnionEnumValue", "namespace": "Type.Property.ValueTypes", "methods": [ { - "$id": "651", + "$id": "632", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "doc": "Get call", "operation": { - "$id": "652", + "$id": "633", "name": "get", "resourceName": "UnionEnumValue", "doc": "Get call", "accessibility": "public", "parameters": [ { - "$id": "653", + "$id": "634", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "167" + "$ref": "144" }, "isApiVersion": false, "optional": false, @@ -9673,7 +9432,7 @@ 200 ], "bodyType": { - "$ref": "252" + "$ref": "229" }, "headers": [], "isErrorResponse": false, @@ -9693,12 +9452,12 @@ }, "parameters": [ { - "$id": "654", + "$id": "635", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "167" + "$ref": "144" }, "location": "Header", "isApiVersion": false, @@ -9712,7 +9471,7 @@ ], "response": { "type": { - "$ref": "252" + "$ref": "229" } }, "isOverride": false, @@ -9721,27 +9480,27 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get" }, { - "$id": "655", + "$id": "636", "kind": "basic", "name": "put", "accessibility": "public", "apiVersions": [], "doc": "Put operation", "operation": { - "$id": "656", + "$id": "637", "name": "put", "resourceName": "UnionEnumValue", "doc": "Put operation", "accessibility": "public", "parameters": [ { - "$id": "657", + "$id": "638", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "169" + "$ref": "146" }, "isApiVersion": false, "optional": false, @@ -9752,13 +9511,13 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.put.contentType" }, { - "$id": "658", + "$id": "639", "kind": "body", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "252" + "$ref": "229" }, "isApiVersion": false, "contentTypes": [ @@ -9795,13 +9554,13 @@ }, "parameters": [ { - "$id": "659", + "$id": "640", "kind": "method", "name": "body", "serializedName": "body", "doc": "body", "type": { - "$ref": "252" + "$ref": "229" }, "location": "Body", "isApiVersion": false, @@ -9813,13 +9572,13 @@ "decorators": [] }, { - "$id": "660", + "$id": "641", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "169" + "$ref": "146" }, "location": "Header", "isApiVersion": false, @@ -9840,13 +9599,13 @@ ], "parameters": [ { - "$id": "661", + "$id": "642", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "662", + "$id": "643", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -9857,7 +9616,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "663", + "$id": "644", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -9874,7 +9633,7 @@ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue", "apiVersions": [], "parent": { - "$ref": "254" + "$ref": "235" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json index 7339fee5f33a..6eaa7269637f 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json @@ -24,74 +24,12 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "GetResponseProp", - "isGeneratedName": true, - "namespace": "Type.Union", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "a", - "value": "a", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "b", - "value": "b", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - }, - { - "$id": "8", - "kind": "enumvalue", - "decorators": [], - "name": "c", - "value": "c", - "valueType": { - "$ref": "5" - }, - "enumType": { - "$ref": "4" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "1" }, "decorators": [] }, { - "$id": "9", + "$id": "4", "kind": "enumvalue", "name": "b", "value": "b", @@ -99,12 +37,12 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] }, { - "$id": "10", + "$id": "5", "kind": "enumvalue", "name": "c", "value": "c", @@ -112,7 +50,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] } @@ -124,12 +62,12 @@ "decorators": [] }, { - "$id": "11", + "$id": "6", "kind": "enum", "name": "GetResponseProp1", "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", "valueType": { - "$id": "12", + "$id": "7", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -137,77 +75,28 @@ }, "values": [ { - "$id": "13", + "$id": "8", "kind": "enumvalue", "name": "b", "value": "b", "valueType": { - "$ref": "12" + "$ref": "7" }, "enumType": { - "$id": "14", - "kind": "enum", - "decorators": [], - "name": "GetResponseProp1", - "isGeneratedName": true, - "namespace": "Type.Union", - "valueType": { - "$id": "15", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "16", - "kind": "enumvalue", - "decorators": [], - "name": "b", - "value": "b", - "valueType": { - "$ref": "15" - }, - "enumType": { - "$ref": "14" - } - }, - { - "$id": "17", - "kind": "enumvalue", - "decorators": [], - "name": "c", - "value": "c", - "valueType": { - "$ref": "15" - }, - "enumType": { - "$ref": "14" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "6" }, "decorators": [] }, { - "$id": "18", + "$id": "9", "kind": "enumvalue", "name": "c", "value": "c", "valueType": { - "$ref": "12" + "$ref": "7" }, "enumType": { - "$ref": "14" + "$ref": "6" }, "decorators": [] } @@ -219,12 +108,12 @@ "decorators": [] }, { - "$id": "19", + "$id": "10", "kind": "enum", "name": "StringExtensibleNamedUnion", "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamedUnion", "valueType": { - "$id": "20", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -232,77 +121,28 @@ }, "values": [ { - "$id": "21", + "$id": "12", "kind": "enumvalue", "name": "OptionB", "value": "b", "valueType": { - "$ref": "20" + "$ref": "11" }, "enumType": { - "$id": "22", - "kind": "enum", - "decorators": [], - "name": "StringExtensibleNamedUnion", - "isGeneratedName": false, - "namespace": "Type.Union", - "valueType": { - "$id": "23", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "24", - "kind": "enumvalue", - "decorators": [], - "name": "OptionB", - "value": "b", - "valueType": { - "$ref": "23" - }, - "enumType": { - "$ref": "22" - } - }, - { - "$id": "25", - "kind": "enumvalue", - "decorators": [], - "name": "c", - "value": "c", - "valueType": { - "$ref": "23" - }, - "enumType": { - "$ref": "22" - } - } - ], - "isFixed": false, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamedUnion", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "10" }, "decorators": [] }, { - "$id": "26", + "$id": "13", "kind": "enumvalue", "name": "c", "value": "c", "valueType": { - "$ref": "20" + "$ref": "11" }, "enumType": { - "$ref": "22" + "$ref": "10" }, "decorators": [] } @@ -314,12 +154,12 @@ "decorators": [] }, { - "$id": "27", + "$id": "14", "kind": "enum", "name": "GetResponseProp2", "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", "valueType": { - "$id": "28", + "$id": "15", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -327,103 +167,41 @@ }, "values": [ { - "$id": "29", + "$id": "16", "kind": "enumvalue", "name": "1", "value": 1, "valueType": { - "$ref": "28" + "$ref": "15" }, "enumType": { - "$id": "30", - "kind": "enum", - "decorators": [], - "name": "GetResponseProp2", - "isGeneratedName": true, - "namespace": "Type.Union", - "valueType": { - "$id": "31", - "kind": "int32", - "decorators": [], - "name": "int32", - "doc": "A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`)", - "crossLanguageDefinitionId": "TypeSpec.int32" - }, - "values": [ - { - "$id": "32", - "kind": "enumvalue", - "decorators": [], - "name": "1", - "value": 1, - "valueType": { - "$ref": "31" - }, - "enumType": { - "$ref": "30" - } - }, - { - "$id": "33", - "kind": "enumvalue", - "decorators": [], - "name": "2", - "value": 2, - "valueType": { - "$ref": "31" - }, - "enumType": { - "$ref": "30" - } - }, - { - "$id": "34", - "kind": "enumvalue", - "decorators": [], - "name": "3", - "value": 3, - "valueType": { - "$ref": "31" - }, - "enumType": { - "$ref": "30" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "14" }, "decorators": [] }, { - "$id": "35", + "$id": "17", "kind": "enumvalue", "name": "2", "value": 2, "valueType": { - "$ref": "28" + "$ref": "15" }, "enumType": { - "$ref": "30" + "$ref": "14" }, "decorators": [] }, { - "$id": "36", + "$id": "18", "kind": "enumvalue", "name": "3", "value": 3, "valueType": { - "$ref": "28" + "$ref": "15" }, "enumType": { - "$ref": "30" + "$ref": "14" }, "decorators": [] } @@ -435,12 +213,12 @@ "decorators": [] }, { - "$id": "37", + "$id": "19", "kind": "enum", "name": "GetResponseProp3", "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", "valueType": { - "$id": "38", + "$id": "20", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -448,103 +226,41 @@ }, "values": [ { - "$id": "39", + "$id": "21", "kind": "enumvalue", "name": "1.1", "value": 1.1, "valueType": { - "$ref": "38" + "$ref": "20" }, "enumType": { - "$id": "40", - "kind": "enum", - "decorators": [], - "name": "GetResponseProp3", - "isGeneratedName": true, - "namespace": "Type.Union", - "valueType": { - "$id": "41", - "kind": "float32", - "decorators": [], - "name": "float32", - "doc": "A 32 bit floating point number. (`±1.5 x 10^−45` to `±3.4 x 10^38`)", - "crossLanguageDefinitionId": "TypeSpec.float32" - }, - "values": [ - { - "$id": "42", - "kind": "enumvalue", - "decorators": [], - "name": "1.1", - "value": 1.1, - "valueType": { - "$ref": "41" - }, - "enumType": { - "$ref": "40" - } - }, - { - "$id": "43", - "kind": "enumvalue", - "decorators": [], - "name": "2.2", - "value": 2.2, - "valueType": { - "$ref": "41" - }, - "enumType": { - "$ref": "40" - } - }, - { - "$id": "44", - "kind": "enumvalue", - "decorators": [], - "name": "3.3", - "value": 3.3, - "valueType": { - "$ref": "41" - }, - "enumType": { - "$ref": "40" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Union.get.Response.prop.anonymous", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "19" }, "decorators": [] }, { - "$id": "45", + "$id": "22", "kind": "enumvalue", "name": "2.2", "value": 2.2, "valueType": { - "$ref": "38" + "$ref": "20" }, "enumType": { - "$ref": "40" + "$ref": "19" }, "decorators": [] }, { - "$id": "46", + "$id": "23", "kind": "enumvalue", "name": "3.3", "value": 3.3, "valueType": { - "$ref": "38" + "$ref": "20" }, "enumType": { - "$ref": "40" + "$ref": "19" }, "decorators": [] } @@ -556,12 +272,12 @@ "decorators": [] }, { - "$id": "47", + "$id": "24", "kind": "enum", "name": "EnumsOnlyCasesLr", "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.lr.anonymous", "valueType": { - "$id": "48", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -569,129 +285,54 @@ }, "values": [ { - "$id": "49", + "$id": "26", "kind": "enumvalue", "name": "left", "value": "left", "valueType": { - "$ref": "48" + "$ref": "25" }, "enumType": { - "$id": "50", - "kind": "enum", - "decorators": [], - "name": "EnumsOnlyCasesLr", - "isGeneratedName": true, - "namespace": "Type.Union", - "valueType": { - "$id": "51", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "52", - "kind": "enumvalue", - "decorators": [], - "name": "left", - "value": "left", - "valueType": { - "$ref": "51" - }, - "enumType": { - "$ref": "50" - } - }, - { - "$id": "53", - "kind": "enumvalue", - "decorators": [], - "name": "right", - "value": "right", - "valueType": { - "$ref": "51" - }, - "enumType": { - "$ref": "50" - } - }, - { - "$id": "54", - "kind": "enumvalue", - "decorators": [], - "name": "up", - "value": "up", - "valueType": { - "$ref": "51" - }, - "enumType": { - "$ref": "50" - } - }, - { - "$id": "55", - "kind": "enumvalue", - "decorators": [], - "name": "down", - "value": "down", - "valueType": { - "$ref": "51" - }, - "enumType": { - "$ref": "50" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.lr.anonymous", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "24" }, "decorators": [] }, { - "$id": "56", + "$id": "27", "kind": "enumvalue", "name": "right", "value": "right", "valueType": { - "$ref": "48" + "$ref": "25" }, "enumType": { - "$ref": "50" + "$ref": "24" }, "decorators": [] }, { - "$id": "57", + "$id": "28", "kind": "enumvalue", "name": "up", "value": "up", "valueType": { - "$ref": "48" + "$ref": "25" }, "enumType": { - "$ref": "50" + "$ref": "24" }, "decorators": [] }, { - "$id": "58", + "$id": "29", "kind": "enumvalue", "name": "down", "value": "down", "valueType": { - "$ref": "48" + "$ref": "25" }, "enumType": { - "$ref": "50" + "$ref": "24" }, "decorators": [] } @@ -703,12 +344,12 @@ "decorators": [] }, { - "$id": "59", + "$id": "30", "kind": "enum", "name": "EnumsOnlyCasesUd", "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.ud.anonymous", "valueType": { - "$id": "60", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -716,77 +357,28 @@ }, "values": [ { - "$id": "61", + "$id": "32", "kind": "enumvalue", "name": "up", "value": "up", "valueType": { - "$ref": "60" + "$ref": "31" }, "enumType": { - "$id": "62", - "kind": "enum", - "decorators": [], - "name": "EnumsOnlyCasesUd", - "isGeneratedName": true, - "namespace": "Type.Union", - "valueType": { - "$id": "63", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "64", - "kind": "enumvalue", - "decorators": [], - "name": "up", - "value": "up", - "valueType": { - "$ref": "63" - }, - "enumType": { - "$ref": "62" - } - }, - { - "$id": "65", - "kind": "enumvalue", - "decorators": [], - "name": "down", - "value": "down", - "valueType": { - "$ref": "63" - }, - "enumType": { - "$ref": "62" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.ud.anonymous", - "apiVersions": [], - "isUnionAsEnum": true, - "__accessSet": true + "$ref": "30" }, "decorators": [] }, { - "$id": "66", + "$id": "33", "kind": "enumvalue", "name": "down", "value": "down", "valueType": { - "$ref": "60" + "$ref": "31" }, "enumType": { - "$ref": "62" + "$ref": "30" }, "decorators": [] } @@ -800,13 +392,13 @@ ], "constants": [ { - "$id": "67", + "$id": "34", "kind": "constant", "name": "MixedLiteralsCasesStringLiteral1", "namespace": "", "usage": "None", "valueType": { - "$id": "68", + "$id": "35", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -816,13 +408,13 @@ "decorators": [] }, { - "$id": "69", + "$id": "36", "kind": "constant", "name": "MixedLiteralsCasesStringLiteral2", "namespace": "", "usage": "None", "valueType": { - "$id": "70", + "$id": "37", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -832,13 +424,13 @@ "decorators": [] }, { - "$id": "71", + "$id": "38", "kind": "constant", "name": "MixedLiteralsCasesStringLiteral3", "namespace": "", "usage": "None", "valueType": { - "$id": "72", + "$id": "39", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -848,13 +440,13 @@ "decorators": [] }, { - "$id": "73", + "$id": "40", "kind": "constant", "name": "MixedLiteralsCasesStringLiteral4", "namespace": "", "usage": "None", "valueType": { - "$id": "74", + "$id": "41", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -864,13 +456,13 @@ "decorators": [] }, { - "$id": "75", + "$id": "42", "kind": "constant", "name": "MixedLiteralsCasesStringLiteral11", "namespace": "", "usage": "None", "valueType": { - "$id": "76", + "$id": "43", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -880,13 +472,13 @@ "decorators": [] }, { - "$id": "77", + "$id": "44", "kind": "constant", "name": "getContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "78", + "$id": "45", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -896,13 +488,13 @@ "decorators": [] }, { - "$id": "79", + "$id": "46", "kind": "constant", "name": "sendContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "80", + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -912,13 +504,13 @@ "decorators": [] }, { - "$id": "81", + "$id": "48", "kind": "constant", "name": "getContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "82", + "$id": "49", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -928,13 +520,13 @@ "decorators": [] }, { - "$id": "83", + "$id": "50", "kind": "constant", "name": "sendContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "84", + "$id": "51", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -944,13 +536,13 @@ "decorators": [] }, { - "$id": "85", + "$id": "52", "kind": "constant", "name": "getContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "86", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -960,13 +552,13 @@ "decorators": [] }, { - "$id": "87", + "$id": "54", "kind": "constant", "name": "sendContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "88", + "$id": "55", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -976,13 +568,13 @@ "decorators": [] }, { - "$id": "89", + "$id": "56", "kind": "constant", "name": "getContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "90", + "$id": "57", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -992,13 +584,13 @@ "decorators": [] }, { - "$id": "91", + "$id": "58", "kind": "constant", "name": "sendContentType3", "namespace": "", "usage": "None", "valueType": { - "$id": "92", + "$id": "59", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1008,13 +600,13 @@ "decorators": [] }, { - "$id": "93", + "$id": "60", "kind": "constant", "name": "getContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "94", + "$id": "61", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1024,13 +616,13 @@ "decorators": [] }, { - "$id": "95", + "$id": "62", "kind": "constant", "name": "sendContentType4", "namespace": "", "usage": "None", "valueType": { - "$id": "96", + "$id": "63", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1040,13 +632,13 @@ "decorators": [] }, { - "$id": "97", + "$id": "64", "kind": "constant", "name": "getContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "98", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1056,13 +648,13 @@ "decorators": [] }, { - "$id": "99", + "$id": "66", "kind": "constant", "name": "sendContentType5", "namespace": "", "usage": "None", "valueType": { - "$id": "100", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1072,13 +664,13 @@ "decorators": [] }, { - "$id": "101", + "$id": "68", "kind": "constant", "name": "getContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "102", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1088,13 +680,13 @@ "decorators": [] }, { - "$id": "103", + "$id": "70", "kind": "constant", "name": "sendContentType6", "namespace": "", "usage": "None", "valueType": { - "$id": "104", + "$id": "71", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1104,13 +696,13 @@ "decorators": [] }, { - "$id": "105", + "$id": "72", "kind": "constant", "name": "getContentType7", "namespace": "", "usage": "None", "valueType": { - "$id": "106", + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1120,13 +712,13 @@ "decorators": [] }, { - "$id": "107", + "$id": "74", "kind": "constant", "name": "sendContentType7", "namespace": "", "usage": "None", "valueType": { - "$id": "108", + "$id": "75", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1136,13 +728,13 @@ "decorators": [] }, { - "$id": "109", + "$id": "76", "kind": "constant", "name": "getContentType8", "namespace": "", "usage": "None", "valueType": { - "$id": "110", + "$id": "77", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1152,13 +744,13 @@ "decorators": [] }, { - "$id": "111", + "$id": "78", "kind": "constant", "name": "sendContentType8", "namespace": "", "usage": "None", "valueType": { - "$id": "112", + "$id": "79", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1168,13 +760,13 @@ "decorators": [] }, { - "$id": "113", + "$id": "80", "kind": "constant", "name": "getContentType9", "namespace": "", "usage": "None", "valueType": { - "$id": "114", + "$id": "81", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1184,13 +776,13 @@ "decorators": [] }, { - "$id": "115", + "$id": "82", "kind": "constant", "name": "sendContentType9", "namespace": "", "usage": "None", "valueType": { - "$id": "116", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1202,7 +794,7 @@ ], "models": [ { - "$id": "117", + "$id": "84", "kind": "model", "name": "GetResponse", "namespace": "Type.Union", @@ -1211,7 +803,7 @@ "decorators": [], "properties": [ { - "$id": "118", + "$id": "85", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1234,7 +826,7 @@ ] }, { - "$id": "119", + "$id": "86", "kind": "model", "name": "SendRequest", "namespace": "Type.Union", @@ -1243,7 +835,7 @@ "decorators": [], "properties": [ { - "$id": "120", + "$id": "87", "kind": "property", "name": "prop", "serializedName": "prop", @@ -1266,7 +858,7 @@ ] }, { - "$id": "121", + "$id": "88", "kind": "model", "name": "GetResponse1", "namespace": "Type.Union", @@ -1275,12 +867,12 @@ "decorators": [], "properties": [ { - "$id": "122", + "$id": "89", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "11" + "$ref": "6" }, "optional": false, "readOnly": false, @@ -1298,7 +890,7 @@ ] }, { - "$id": "123", + "$id": "90", "kind": "model", "name": "SendRequest1", "namespace": "Type.Union", @@ -1307,12 +899,12 @@ "decorators": [], "properties": [ { - "$id": "124", + "$id": "91", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "11" + "$ref": "6" }, "optional": false, "readOnly": false, @@ -1330,7 +922,7 @@ ] }, { - "$id": "125", + "$id": "92", "kind": "model", "name": "GetResponse2", "namespace": "Type.Union", @@ -1339,12 +931,12 @@ "decorators": [], "properties": [ { - "$id": "126", + "$id": "93", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "19" + "$ref": "10" }, "optional": false, "readOnly": false, @@ -1362,7 +954,7 @@ ] }, { - "$id": "127", + "$id": "94", "kind": "model", "name": "SendRequest2", "namespace": "Type.Union", @@ -1371,12 +963,12 @@ "decorators": [], "properties": [ { - "$id": "128", + "$id": "95", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "19" + "$ref": "10" }, "optional": false, "readOnly": false, @@ -1394,7 +986,7 @@ ] }, { - "$id": "129", + "$id": "96", "kind": "model", "name": "GetResponse3", "namespace": "Type.Union", @@ -1403,12 +995,12 @@ "decorators": [], "properties": [ { - "$id": "130", + "$id": "97", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "27" + "$ref": "14" }, "optional": false, "readOnly": false, @@ -1426,7 +1018,7 @@ ] }, { - "$id": "131", + "$id": "98", "kind": "model", "name": "SendRequest3", "namespace": "Type.Union", @@ -1435,12 +1027,12 @@ "decorators": [], "properties": [ { - "$id": "132", + "$id": "99", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "27" + "$ref": "14" }, "optional": false, "readOnly": false, @@ -1458,7 +1050,7 @@ ] }, { - "$id": "133", + "$id": "100", "kind": "model", "name": "GetResponse4", "namespace": "Type.Union", @@ -1467,12 +1059,12 @@ "decorators": [], "properties": [ { - "$id": "134", + "$id": "101", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "37" + "$ref": "19" }, "optional": false, "readOnly": false, @@ -1490,7 +1082,7 @@ ] }, { - "$id": "135", + "$id": "102", "kind": "model", "name": "SendRequest4", "namespace": "Type.Union", @@ -1499,12 +1091,12 @@ "decorators": [], "properties": [ { - "$id": "136", + "$id": "103", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "37" + "$ref": "19" }, "optional": false, "readOnly": false, @@ -1522,7 +1114,7 @@ ] }, { - "$id": "137", + "$id": "104", "kind": "model", "name": "GetResponse5", "namespace": "Type.Union", @@ -1531,17 +1123,17 @@ "decorators": [], "properties": [ { - "$id": "138", + "$id": "105", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "139", + "$id": "106", "kind": "union", "name": "GetResponseProp4", "variantTypes": [ { - "$id": "140", + "$id": "107", "kind": "model", "name": "Cat", "namespace": "Type.Union", @@ -1550,12 +1142,12 @@ "decorators": [], "properties": [ { - "$id": "141", + "$id": "108", "kind": "property", "name": "name", "serializedName": "name", "type": { - "$id": "142", + "$id": "109", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1577,7 +1169,7 @@ ] }, { - "$id": "143", + "$id": "110", "kind": "model", "name": "Dog", "namespace": "Type.Union", @@ -1586,12 +1178,12 @@ "decorators": [], "properties": [ { - "$id": "144", + "$id": "111", "kind": "property", "name": "bark", "serializedName": "bark", "type": { - "$id": "145", + "$id": "112", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1632,13 +1224,13 @@ ] }, { - "$ref": "140" + "$ref": "107" }, { - "$ref": "143" + "$ref": "110" }, { - "$id": "146", + "$id": "113", "kind": "model", "name": "SendRequest5", "namespace": "Type.Union", @@ -1647,12 +1239,12 @@ "decorators": [], "properties": [ { - "$id": "147", + "$id": "114", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "139" + "$ref": "106" }, "optional": false, "readOnly": false, @@ -1670,7 +1262,7 @@ ] }, { - "$id": "148", + "$id": "115", "kind": "model", "name": "GetResponse6", "namespace": "Type.Union", @@ -1679,12 +1271,12 @@ "decorators": [], "properties": [ { - "$id": "149", + "$id": "116", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "150", + "$id": "117", "kind": "model", "name": "EnumsOnlyCases", "namespace": "Type.Union", @@ -1693,13 +1285,13 @@ "decorators": [], "properties": [ { - "$id": "151", + "$id": "118", "kind": "property", "name": "lr", "serializedName": "lr", "doc": "This should be receive/send the left variant", "type": { - "$ref": "47" + "$ref": "24" }, "optional": false, "readOnly": false, @@ -1715,13 +1307,13 @@ "isHttpMetadata": false }, { - "$id": "152", + "$id": "119", "kind": "property", "name": "ud", "serializedName": "ud", "doc": "This should be receive/send the up variant", "type": { - "$ref": "59" + "$ref": "30" }, "optional": false, "readOnly": false, @@ -1754,10 +1346,10 @@ ] }, { - "$ref": "150" + "$ref": "117" }, { - "$id": "153", + "$id": "120", "kind": "model", "name": "SendRequest6", "namespace": "Type.Union", @@ -1766,12 +1358,12 @@ "decorators": [], "properties": [ { - "$id": "154", + "$id": "121", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "150" + "$ref": "117" }, "optional": false, "readOnly": false, @@ -1789,7 +1381,7 @@ ] }, { - "$id": "155", + "$id": "122", "kind": "model", "name": "GetResponse7", "namespace": "Type.Union", @@ -1798,12 +1390,12 @@ "decorators": [], "properties": [ { - "$id": "156", + "$id": "123", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "157", + "$id": "124", "kind": "model", "name": "StringAndArrayCases", "namespace": "Type.Union", @@ -1812,29 +1404,29 @@ "decorators": [], "properties": [ { - "$id": "158", + "$id": "125", "kind": "property", "name": "string", "serializedName": "string", "doc": "This should be receive/send the string variant", "type": { - "$id": "159", + "$id": "126", "kind": "union", "name": "StringAndArrayCasesString", "variantTypes": [ { - "$id": "160", + "$id": "127", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "161", + "$id": "128", "kind": "array", "name": "Array", "valueType": { - "$id": "162", + "$id": "129", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1861,25 +1453,25 @@ "isHttpMetadata": false }, { - "$id": "163", + "$id": "130", "kind": "property", "name": "array", "serializedName": "array", "doc": "This should be receive/send the array variant", "type": { - "$id": "164", + "$id": "131", "kind": "union", "name": "StringAndArrayCasesArray", "variantTypes": [ { - "$id": "165", + "$id": "132", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$ref": "161" + "$ref": "128" } ], "namespace": "Type.Union", @@ -1916,10 +1508,10 @@ ] }, { - "$ref": "157" + "$ref": "124" }, { - "$id": "166", + "$id": "133", "kind": "model", "name": "SendRequest7", "namespace": "Type.Union", @@ -1928,12 +1520,12 @@ "decorators": [], "properties": [ { - "$id": "167", + "$id": "134", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "157" + "$ref": "124" }, "optional": false, "readOnly": false, @@ -1951,7 +1543,7 @@ ] }, { - "$id": "168", + "$id": "135", "kind": "model", "name": "GetResponse8", "namespace": "Type.Union", @@ -1960,12 +1552,12 @@ "decorators": [], "properties": [ { - "$id": "169", + "$id": "136", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "170", + "$id": "137", "kind": "model", "name": "MixedLiteralsCases", "namespace": "Type.Union", @@ -1974,27 +1566,27 @@ "decorators": [], "properties": [ { - "$id": "171", + "$id": "138", "kind": "property", "name": "stringLiteral", "serializedName": "stringLiteral", "doc": "This should be receive/send the \"a\" variant", "type": { - "$id": "172", + "$id": "139", "kind": "union", "name": "MixedLiteralsCasesStringLiteral", "variantTypes": [ { - "$ref": "67" + "$ref": "34" }, { - "$ref": "69" + "$ref": "36" }, { - "$ref": "71" + "$ref": "38" }, { - "$ref": "73" + "$ref": "40" } ], "namespace": "Type.Union", @@ -2014,13 +1606,13 @@ "isHttpMetadata": false }, { - "$id": "173", + "$id": "140", "kind": "property", "name": "intLiteral", "serializedName": "intLiteral", "doc": "This should be receive/send the 2 variant", "type": { - "$ref": "172" + "$ref": "139" }, "optional": false, "readOnly": false, @@ -2036,13 +1628,13 @@ "isHttpMetadata": false }, { - "$id": "174", + "$id": "141", "kind": "property", "name": "floatLiteral", "serializedName": "floatLiteral", "doc": "This should be receive/send the 3.3 variant", "type": { - "$ref": "172" + "$ref": "139" }, "optional": false, "readOnly": false, @@ -2058,13 +1650,13 @@ "isHttpMetadata": false }, { - "$id": "175", + "$id": "142", "kind": "property", "name": "booleanLiteral", "serializedName": "booleanLiteral", "doc": "This should be receive/send the true variant", "type": { - "$ref": "172" + "$ref": "139" }, "optional": false, "readOnly": false, @@ -2097,10 +1689,10 @@ ] }, { - "$ref": "170" + "$ref": "137" }, { - "$id": "176", + "$id": "143", "kind": "model", "name": "SendRequest8", "namespace": "Type.Union", @@ -2109,12 +1701,12 @@ "decorators": [], "properties": [ { - "$id": "177", + "$id": "144", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "170" + "$ref": "137" }, "optional": false, "readOnly": false, @@ -2132,7 +1724,7 @@ ] }, { - "$id": "178", + "$id": "145", "kind": "model", "name": "GetResponse9", "namespace": "Type.Union", @@ -2141,12 +1733,12 @@ "decorators": [], "properties": [ { - "$id": "179", + "$id": "146", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "180", + "$id": "147", "kind": "model", "name": "MixedTypesCases", "namespace": "Type.Union", @@ -2155,31 +1747,31 @@ "decorators": [], "properties": [ { - "$id": "181", + "$id": "148", "kind": "property", "name": "model", "serializedName": "model", "doc": "This should be receive/send the Cat variant", "type": { - "$id": "182", + "$id": "149", "kind": "union", "name": "MixedTypesCasesModel", "variantTypes": [ { - "$ref": "140" + "$ref": "107" }, { - "$ref": "75" + "$ref": "42" }, { - "$id": "183", + "$id": "150", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", "decorators": [] }, { - "$id": "184", + "$id": "151", "kind": "boolean", "name": "boolean", "crossLanguageDefinitionId": "TypeSpec.boolean", @@ -2203,13 +1795,13 @@ "isHttpMetadata": false }, { - "$id": "185", + "$id": "152", "kind": "property", "name": "literal", "serializedName": "literal", "doc": "This should be receive/send the \"a\" variant", "type": { - "$ref": "182" + "$ref": "149" }, "optional": false, "readOnly": false, @@ -2225,13 +1817,13 @@ "isHttpMetadata": false }, { - "$id": "186", + "$id": "153", "kind": "property", "name": "int", "serializedName": "int", "doc": "This should be receive/send the int variant", "type": { - "$ref": "182" + "$ref": "149" }, "optional": false, "readOnly": false, @@ -2247,13 +1839,13 @@ "isHttpMetadata": false }, { - "$id": "187", + "$id": "154", "kind": "property", "name": "boolean", "serializedName": "boolean", "doc": "This should be receive/send the boolean variant", "type": { - "$ref": "182" + "$ref": "149" }, "optional": false, "readOnly": false, @@ -2269,17 +1861,17 @@ "isHttpMetadata": false }, { - "$id": "188", + "$id": "155", "kind": "property", "name": "array", "serializedName": "array", "doc": "This should be receive/send 4 element with Cat, \"a\", int, and boolean", "type": { - "$id": "189", + "$id": "156", "kind": "array", "name": "Array1", "valueType": { - "$ref": "182" + "$ref": "149" }, "crossLanguageDefinitionId": "TypeSpec.Array", "decorators": [] @@ -2315,10 +1907,10 @@ ] }, { - "$ref": "180" + "$ref": "147" }, { - "$id": "190", + "$id": "157", "kind": "model", "name": "SendRequest9", "namespace": "Type.Union", @@ -2327,12 +1919,12 @@ "decorators": [], "properties": [ { - "$id": "191", + "$id": "158", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$ref": "180" + "$ref": "147" }, "optional": false, "readOnly": false, @@ -2352,7 +1944,7 @@ ], "clients": [ { - "$id": "192", + "$id": "159", "kind": "client", "name": "UnionClient", "namespace": "Type.Union", @@ -2360,13 +1952,13 @@ "methods": [], "parameters": [ { - "$id": "193", + "$id": "160", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "194", + "$id": "161", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2377,7 +1969,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "195", + "$id": "162", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2395,31 +1987,31 @@ "apiVersions": [], "children": [ { - "$id": "196", + "$id": "163", "kind": "client", "name": "StringsOnly", "namespace": "Type.Union", "doc": "Describe union of string \"a\" | \"b\" | \"c\"", "methods": [ { - "$id": "197", + "$id": "164", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "198", + "$id": "165", "name": "get", "resourceName": "StringsOnly", "accessibility": "public", "parameters": [ { - "$id": "199", + "$id": "166", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "77" + "$ref": "44" }, "isApiVersion": false, "optional": false, @@ -2436,7 +2028,7 @@ 200 ], "bodyType": { - "$ref": "117" + "$ref": "84" }, "headers": [], "isErrorResponse": false, @@ -2456,12 +2048,12 @@ }, "parameters": [ { - "$id": "200", + "$id": "167", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "77" + "$ref": "44" }, "location": "Header", "isApiVersion": false, @@ -2475,7 +2067,7 @@ ], "response": { "type": { - "$ref": "117" + "$ref": "84" } }, "isOverride": false, @@ -2484,25 +2076,25 @@ "crossLanguageDefinitionId": "Type.Union.StringsOnly.get" }, { - "$id": "201", + "$id": "168", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "202", + "$id": "169", "name": "send", "resourceName": "StringsOnly", "accessibility": "public", "parameters": [ { - "$id": "203", + "$id": "170", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "79" + "$ref": "46" }, "isApiVersion": false, "optional": false, @@ -2513,12 +2105,12 @@ "crossLanguageDefinitionId": "Type.Union.StringsOnly.send.contentType" }, { - "$id": "204", + "$id": "171", "kind": "body", "name": "sendRequest", "serializedName": "sendRequest", "type": { - "$ref": "119" + "$ref": "86" }, "isApiVersion": false, "contentTypes": [ @@ -2555,7 +2147,7 @@ }, "parameters": [ { - "$id": "205", + "$id": "172", "kind": "method", "name": "prop", "serializedName": "prop", @@ -2572,13 +2164,13 @@ "decorators": [] }, { - "$id": "206", + "$id": "173", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "79" + "$ref": "46" }, "location": "Header", "isApiVersion": false, @@ -2599,13 +2191,13 @@ ], "parameters": [ { - "$id": "207", + "$id": "174", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "208", + "$id": "175", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2616,7 +2208,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "209", + "$id": "176", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2633,35 +2225,35 @@ "crossLanguageDefinitionId": "Type.Union.StringsOnly", "apiVersions": [], "parent": { - "$ref": "192" + "$ref": "159" } }, { - "$id": "210", + "$id": "177", "kind": "client", "name": "StringExtensible", "namespace": "Type.Union", "doc": "Describe union of string string | \"b\" | \"c\"", "methods": [ { - "$id": "211", + "$id": "178", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "212", + "$id": "179", "name": "get", "resourceName": "StringExtensible", "accessibility": "public", "parameters": [ { - "$id": "213", + "$id": "180", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "81" + "$ref": "48" }, "isApiVersion": false, "optional": false, @@ -2678,7 +2270,7 @@ 200 ], "bodyType": { - "$ref": "121" + "$ref": "88" }, "headers": [], "isErrorResponse": false, @@ -2698,12 +2290,12 @@ }, "parameters": [ { - "$id": "214", + "$id": "181", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "81" + "$ref": "48" }, "location": "Header", "isApiVersion": false, @@ -2717,7 +2309,7 @@ ], "response": { "type": { - "$ref": "121" + "$ref": "88" } }, "isOverride": false, @@ -2726,25 +2318,25 @@ "crossLanguageDefinitionId": "Type.Union.StringExtensible.get" }, { - "$id": "215", + "$id": "182", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "216", + "$id": "183", "name": "send", "resourceName": "StringExtensible", "accessibility": "public", "parameters": [ { - "$id": "217", + "$id": "184", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "83" + "$ref": "50" }, "isApiVersion": false, "optional": false, @@ -2755,12 +2347,12 @@ "crossLanguageDefinitionId": "Type.Union.StringExtensible.send.contentType" }, { - "$id": "218", + "$id": "185", "kind": "body", "name": "sendRequest1", "serializedName": "sendRequest1", "type": { - "$ref": "123" + "$ref": "90" }, "isApiVersion": false, "contentTypes": [ @@ -2797,12 +2389,12 @@ }, "parameters": [ { - "$id": "219", + "$id": "186", "kind": "method", "name": "prop", "serializedName": "prop", "type": { - "$ref": "11" + "$ref": "6" }, "location": "Body", "isApiVersion": false, @@ -2814,13 +2406,13 @@ "decorators": [] }, { - "$id": "220", + "$id": "187", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "83" + "$ref": "50" }, "location": "Header", "isApiVersion": false, @@ -2841,13 +2433,13 @@ ], "parameters": [ { - "$id": "221", + "$id": "188", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "222", + "$id": "189", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -2858,7 +2450,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "223", + "$id": "190", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -2875,35 +2467,35 @@ "crossLanguageDefinitionId": "Type.Union.StringExtensible", "apiVersions": [], "parent": { - "$ref": "192" + "$ref": "159" } }, { - "$id": "224", + "$id": "191", "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", "methods": [ { - "$id": "225", + "$id": "192", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "226", + "$id": "193", "name": "get", "resourceName": "StringExtensibleNamed", "accessibility": "public", "parameters": [ { - "$id": "227", + "$id": "194", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "85" + "$ref": "52" }, "isApiVersion": false, "optional": false, @@ -2920,7 +2512,7 @@ 200 ], "bodyType": { - "$ref": "125" + "$ref": "92" }, "headers": [], "isErrorResponse": false, @@ -2940,12 +2532,12 @@ }, "parameters": [ { - "$id": "228", + "$id": "195", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "85" + "$ref": "52" }, "location": "Header", "isApiVersion": false, @@ -2959,7 +2551,7 @@ ], "response": { "type": { - "$ref": "125" + "$ref": "92" } }, "isOverride": false, @@ -2968,25 +2560,25 @@ "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get" }, { - "$id": "229", + "$id": "196", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "230", + "$id": "197", "name": "send", "resourceName": "StringExtensibleNamed", "accessibility": "public", "parameters": [ { - "$id": "231", + "$id": "198", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "87" + "$ref": "54" }, "isApiVersion": false, "optional": false, @@ -2997,12 +2589,12 @@ "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send.contentType" }, { - "$id": "232", + "$id": "199", "kind": "body", "name": "sendRequest2", "serializedName": "sendRequest2", "type": { - "$ref": "127" + "$ref": "94" }, "isApiVersion": false, "contentTypes": [ @@ -3039,12 +2631,12 @@ }, "parameters": [ { - "$id": "233", + "$id": "200", "kind": "method", "name": "prop", "serializedName": "prop", "type": { - "$ref": "19" + "$ref": "10" }, "location": "Body", "isApiVersion": false, @@ -3056,13 +2648,13 @@ "decorators": [] }, { - "$id": "234", + "$id": "201", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "87" + "$ref": "54" }, "location": "Header", "isApiVersion": false, @@ -3083,13 +2675,13 @@ ], "parameters": [ { - "$id": "235", + "$id": "202", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "236", + "$id": "203", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3100,7 +2692,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "237", + "$id": "204", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3117,35 +2709,35 @@ "crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed", "apiVersions": [], "parent": { - "$ref": "192" + "$ref": "159" } }, { - "$id": "238", + "$id": "205", "kind": "client", "name": "IntsOnly", "namespace": "Type.Union", "doc": "Describe union of integer 1 | 2 | 3", "methods": [ { - "$id": "239", + "$id": "206", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "240", + "$id": "207", "name": "get", "resourceName": "IntsOnly", "accessibility": "public", "parameters": [ { - "$id": "241", + "$id": "208", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "89" + "$ref": "56" }, "isApiVersion": false, "optional": false, @@ -3162,7 +2754,7 @@ 200 ], "bodyType": { - "$ref": "129" + "$ref": "96" }, "headers": [], "isErrorResponse": false, @@ -3182,12 +2774,12 @@ }, "parameters": [ { - "$id": "242", + "$id": "209", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "89" + "$ref": "56" }, "location": "Header", "isApiVersion": false, @@ -3201,7 +2793,7 @@ ], "response": { "type": { - "$ref": "129" + "$ref": "96" } }, "isOverride": false, @@ -3210,25 +2802,25 @@ "crossLanguageDefinitionId": "Type.Union.IntsOnly.get" }, { - "$id": "243", + "$id": "210", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "244", + "$id": "211", "name": "send", "resourceName": "IntsOnly", "accessibility": "public", "parameters": [ { - "$id": "245", + "$id": "212", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "91" + "$ref": "58" }, "isApiVersion": false, "optional": false, @@ -3239,12 +2831,12 @@ "crossLanguageDefinitionId": "Type.Union.IntsOnly.send.contentType" }, { - "$id": "246", + "$id": "213", "kind": "body", "name": "sendRequest3", "serializedName": "sendRequest3", "type": { - "$ref": "131" + "$ref": "98" }, "isApiVersion": false, "contentTypes": [ @@ -3281,12 +2873,12 @@ }, "parameters": [ { - "$id": "247", + "$id": "214", "kind": "method", "name": "prop", "serializedName": "prop", "type": { - "$ref": "27" + "$ref": "14" }, "location": "Body", "isApiVersion": false, @@ -3298,13 +2890,13 @@ "decorators": [] }, { - "$id": "248", + "$id": "215", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "91" + "$ref": "58" }, "location": "Header", "isApiVersion": false, @@ -3325,13 +2917,13 @@ ], "parameters": [ { - "$id": "249", + "$id": "216", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "250", + "$id": "217", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3342,7 +2934,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "251", + "$id": "218", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3359,35 +2951,35 @@ "crossLanguageDefinitionId": "Type.Union.IntsOnly", "apiVersions": [], "parent": { - "$ref": "192" + "$ref": "159" } }, { - "$id": "252", + "$id": "219", "kind": "client", "name": "FloatsOnly", "namespace": "Type.Union", "doc": "Describe union of floats 1.1 | 2.2 | 3.3", "methods": [ { - "$id": "253", + "$id": "220", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "254", + "$id": "221", "name": "get", "resourceName": "FloatsOnly", "accessibility": "public", "parameters": [ { - "$id": "255", + "$id": "222", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "93" + "$ref": "60" }, "isApiVersion": false, "optional": false, @@ -3404,7 +2996,7 @@ 200 ], "bodyType": { - "$ref": "133" + "$ref": "100" }, "headers": [], "isErrorResponse": false, @@ -3424,12 +3016,12 @@ }, "parameters": [ { - "$id": "256", + "$id": "223", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "93" + "$ref": "60" }, "location": "Header", "isApiVersion": false, @@ -3443,7 +3035,7 @@ ], "response": { "type": { - "$ref": "133" + "$ref": "100" } }, "isOverride": false, @@ -3452,25 +3044,25 @@ "crossLanguageDefinitionId": "Type.Union.FloatsOnly.get" }, { - "$id": "257", + "$id": "224", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "258", + "$id": "225", "name": "send", "resourceName": "FloatsOnly", "accessibility": "public", "parameters": [ { - "$id": "259", + "$id": "226", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "95" + "$ref": "62" }, "isApiVersion": false, "optional": false, @@ -3481,12 +3073,12 @@ "crossLanguageDefinitionId": "Type.Union.FloatsOnly.send.contentType" }, { - "$id": "260", + "$id": "227", "kind": "body", "name": "sendRequest4", "serializedName": "sendRequest4", "type": { - "$ref": "135" + "$ref": "102" }, "isApiVersion": false, "contentTypes": [ @@ -3523,12 +3115,12 @@ }, "parameters": [ { - "$id": "261", + "$id": "228", "kind": "method", "name": "prop", "serializedName": "prop", "type": { - "$ref": "37" + "$ref": "19" }, "location": "Body", "isApiVersion": false, @@ -3540,13 +3132,13 @@ "decorators": [] }, { - "$id": "262", + "$id": "229", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "95" + "$ref": "62" }, "location": "Header", "isApiVersion": false, @@ -3567,13 +3159,13 @@ ], "parameters": [ { - "$id": "263", + "$id": "230", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "264", + "$id": "231", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3584,7 +3176,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "265", + "$id": "232", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3601,35 +3193,35 @@ "crossLanguageDefinitionId": "Type.Union.FloatsOnly", "apiVersions": [], "parent": { - "$ref": "192" + "$ref": "159" } }, { - "$id": "266", + "$id": "233", "kind": "client", "name": "ModelsOnly", "namespace": "Type.Union", "doc": "Describe union of models", "methods": [ { - "$id": "267", + "$id": "234", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "268", + "$id": "235", "name": "get", "resourceName": "ModelsOnly", "accessibility": "public", "parameters": [ { - "$id": "269", + "$id": "236", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "97" + "$ref": "64" }, "isApiVersion": false, "optional": false, @@ -3646,7 +3238,7 @@ 200 ], "bodyType": { - "$ref": "137" + "$ref": "104" }, "headers": [], "isErrorResponse": false, @@ -3666,12 +3258,12 @@ }, "parameters": [ { - "$id": "270", + "$id": "237", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "97" + "$ref": "64" }, "location": "Header", "isApiVersion": false, @@ -3685,7 +3277,7 @@ ], "response": { "type": { - "$ref": "137" + "$ref": "104" } }, "isOverride": false, @@ -3694,25 +3286,25 @@ "crossLanguageDefinitionId": "Type.Union.ModelsOnly.get" }, { - "$id": "271", + "$id": "238", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "272", + "$id": "239", "name": "send", "resourceName": "ModelsOnly", "accessibility": "public", "parameters": [ { - "$id": "273", + "$id": "240", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "99" + "$ref": "66" }, "isApiVersion": false, "optional": false, @@ -3723,12 +3315,12 @@ "crossLanguageDefinitionId": "Type.Union.ModelsOnly.send.contentType" }, { - "$id": "274", + "$id": "241", "kind": "body", "name": "sendRequest5", "serializedName": "sendRequest5", "type": { - "$ref": "146" + "$ref": "113" }, "isApiVersion": false, "contentTypes": [ @@ -3765,12 +3357,12 @@ }, "parameters": [ { - "$id": "275", + "$id": "242", "kind": "method", "name": "prop", "serializedName": "prop", "type": { - "$ref": "139" + "$ref": "106" }, "location": "Body", "isApiVersion": false, @@ -3782,13 +3374,13 @@ "decorators": [] }, { - "$id": "276", + "$id": "243", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "99" + "$ref": "66" }, "location": "Header", "isApiVersion": false, @@ -3809,13 +3401,13 @@ ], "parameters": [ { - "$id": "277", + "$id": "244", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "278", + "$id": "245", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -3826,7 +3418,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "279", + "$id": "246", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -3843,35 +3435,35 @@ "crossLanguageDefinitionId": "Type.Union.ModelsOnly", "apiVersions": [], "parent": { - "$ref": "192" + "$ref": "159" } }, { - "$id": "280", + "$id": "247", "kind": "client", "name": "EnumsOnly", "namespace": "Type.Union", "doc": "Describe union of 2 different enums", "methods": [ { - "$id": "281", + "$id": "248", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "282", + "$id": "249", "name": "get", "resourceName": "EnumsOnly", "accessibility": "public", "parameters": [ { - "$id": "283", + "$id": "250", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "101" + "$ref": "68" }, "isApiVersion": false, "optional": false, @@ -3888,7 +3480,7 @@ 200 ], "bodyType": { - "$ref": "148" + "$ref": "115" }, "headers": [], "isErrorResponse": false, @@ -3908,12 +3500,12 @@ }, "parameters": [ { - "$id": "284", + "$id": "251", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "101" + "$ref": "68" }, "location": "Header", "isApiVersion": false, @@ -3927,7 +3519,7 @@ ], "response": { "type": { - "$ref": "148" + "$ref": "115" } }, "isOverride": false, @@ -3936,25 +3528,25 @@ "crossLanguageDefinitionId": "Type.Union.EnumsOnly.get" }, { - "$id": "285", + "$id": "252", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "286", + "$id": "253", "name": "send", "resourceName": "EnumsOnly", "accessibility": "public", "parameters": [ { - "$id": "287", + "$id": "254", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "103" + "$ref": "70" }, "isApiVersion": false, "optional": false, @@ -3965,12 +3557,12 @@ "crossLanguageDefinitionId": "Type.Union.EnumsOnly.send.contentType" }, { - "$id": "288", + "$id": "255", "kind": "body", "name": "sendRequest6", "serializedName": "sendRequest6", "type": { - "$ref": "153" + "$ref": "120" }, "isApiVersion": false, "contentTypes": [ @@ -4007,12 +3599,12 @@ }, "parameters": [ { - "$id": "289", + "$id": "256", "kind": "method", "name": "prop", "serializedName": "prop", "type": { - "$ref": "150" + "$ref": "117" }, "location": "Body", "isApiVersion": false, @@ -4024,13 +3616,13 @@ "decorators": [] }, { - "$id": "290", + "$id": "257", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "103" + "$ref": "70" }, "location": "Header", "isApiVersion": false, @@ -4051,13 +3643,13 @@ ], "parameters": [ { - "$id": "291", + "$id": "258", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "292", + "$id": "259", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4068,7 +3660,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "293", + "$id": "260", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4085,35 +3677,35 @@ "crossLanguageDefinitionId": "Type.Union.EnumsOnly", "apiVersions": [], "parent": { - "$ref": "192" + "$ref": "159" } }, { - "$id": "294", + "$id": "261", "kind": "client", "name": "StringAndArray", "namespace": "Type.Union", "doc": "Describe union of a string and an array of strings", "methods": [ { - "$id": "295", + "$id": "262", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "296", + "$id": "263", "name": "get", "resourceName": "StringAndArray", "accessibility": "public", "parameters": [ { - "$id": "297", + "$id": "264", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "105" + "$ref": "72" }, "isApiVersion": false, "optional": false, @@ -4130,7 +3722,7 @@ 200 ], "bodyType": { - "$ref": "155" + "$ref": "122" }, "headers": [], "isErrorResponse": false, @@ -4150,12 +3742,12 @@ }, "parameters": [ { - "$id": "298", + "$id": "265", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "105" + "$ref": "72" }, "location": "Header", "isApiVersion": false, @@ -4169,7 +3761,7 @@ ], "response": { "type": { - "$ref": "155" + "$ref": "122" } }, "isOverride": false, @@ -4178,25 +3770,25 @@ "crossLanguageDefinitionId": "Type.Union.StringAndArray.get" }, { - "$id": "299", + "$id": "266", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "300", + "$id": "267", "name": "send", "resourceName": "StringAndArray", "accessibility": "public", "parameters": [ { - "$id": "301", + "$id": "268", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "107" + "$ref": "74" }, "isApiVersion": false, "optional": false, @@ -4207,12 +3799,12 @@ "crossLanguageDefinitionId": "Type.Union.StringAndArray.send.contentType" }, { - "$id": "302", + "$id": "269", "kind": "body", "name": "sendRequest7", "serializedName": "sendRequest7", "type": { - "$ref": "166" + "$ref": "133" }, "isApiVersion": false, "contentTypes": [ @@ -4249,12 +3841,12 @@ }, "parameters": [ { - "$id": "303", + "$id": "270", "kind": "method", "name": "prop", "serializedName": "prop", "type": { - "$ref": "157" + "$ref": "124" }, "location": "Body", "isApiVersion": false, @@ -4266,13 +3858,13 @@ "decorators": [] }, { - "$id": "304", + "$id": "271", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "107" + "$ref": "74" }, "location": "Header", "isApiVersion": false, @@ -4293,13 +3885,13 @@ ], "parameters": [ { - "$id": "305", + "$id": "272", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "306", + "$id": "273", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4310,7 +3902,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "307", + "$id": "274", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4327,35 +3919,35 @@ "crossLanguageDefinitionId": "Type.Union.StringAndArray", "apiVersions": [], "parent": { - "$ref": "192" + "$ref": "159" } }, { - "$id": "308", + "$id": "275", "kind": "client", "name": "MixedLiterals", "namespace": "Type.Union", "doc": "Describe union of floats \"a\" | 2 | 3.3", "methods": [ { - "$id": "309", + "$id": "276", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "310", + "$id": "277", "name": "get", "resourceName": "MixedLiterals", "accessibility": "public", "parameters": [ { - "$id": "311", + "$id": "278", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "109" + "$ref": "76" }, "isApiVersion": false, "optional": false, @@ -4372,7 +3964,7 @@ 200 ], "bodyType": { - "$ref": "168" + "$ref": "135" }, "headers": [], "isErrorResponse": false, @@ -4392,12 +3984,12 @@ }, "parameters": [ { - "$id": "312", + "$id": "279", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "109" + "$ref": "76" }, "location": "Header", "isApiVersion": false, @@ -4411,7 +4003,7 @@ ], "response": { "type": { - "$ref": "168" + "$ref": "135" } }, "isOverride": false, @@ -4420,25 +4012,25 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiterals.get" }, { - "$id": "313", + "$id": "280", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "314", + "$id": "281", "name": "send", "resourceName": "MixedLiterals", "accessibility": "public", "parameters": [ { - "$id": "315", + "$id": "282", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "111" + "$ref": "78" }, "isApiVersion": false, "optional": false, @@ -4449,12 +4041,12 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiterals.send.contentType" }, { - "$id": "316", + "$id": "283", "kind": "body", "name": "sendRequest8", "serializedName": "sendRequest8", "type": { - "$ref": "176" + "$ref": "143" }, "isApiVersion": false, "contentTypes": [ @@ -4491,12 +4083,12 @@ }, "parameters": [ { - "$id": "317", + "$id": "284", "kind": "method", "name": "prop", "serializedName": "prop", "type": { - "$ref": "170" + "$ref": "137" }, "location": "Body", "isApiVersion": false, @@ -4508,13 +4100,13 @@ "decorators": [] }, { - "$id": "318", + "$id": "285", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "111" + "$ref": "78" }, "location": "Header", "isApiVersion": false, @@ -4535,13 +4127,13 @@ ], "parameters": [ { - "$id": "319", + "$id": "286", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "320", + "$id": "287", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4552,7 +4144,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "321", + "$id": "288", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4569,35 +4161,35 @@ "crossLanguageDefinitionId": "Type.Union.MixedLiterals", "apiVersions": [], "parent": { - "$ref": "192" + "$ref": "159" } }, { - "$id": "322", + "$id": "289", "kind": "client", "name": "MixedTypes", "namespace": "Type.Union", "doc": "Describe union of floats \"a\" | 2 | 3.3", "methods": [ { - "$id": "323", + "$id": "290", "kind": "basic", "name": "get", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "324", + "$id": "291", "name": "get", "resourceName": "MixedTypes", "accessibility": "public", "parameters": [ { - "$id": "325", + "$id": "292", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "113" + "$ref": "80" }, "isApiVersion": false, "optional": false, @@ -4614,7 +4206,7 @@ 200 ], "bodyType": { - "$ref": "178" + "$ref": "145" }, "headers": [], "isErrorResponse": false, @@ -4634,12 +4226,12 @@ }, "parameters": [ { - "$id": "326", + "$id": "293", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "113" + "$ref": "80" }, "location": "Header", "isApiVersion": false, @@ -4653,7 +4245,7 @@ ], "response": { "type": { - "$ref": "178" + "$ref": "145" } }, "isOverride": false, @@ -4662,25 +4254,25 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypes.get" }, { - "$id": "327", + "$id": "294", "kind": "basic", "name": "send", "accessibility": "public", "apiVersions": [], "operation": { - "$id": "328", + "$id": "295", "name": "send", "resourceName": "MixedTypes", "accessibility": "public", "parameters": [ { - "$id": "329", + "$id": "296", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "115" + "$ref": "82" }, "isApiVersion": false, "optional": false, @@ -4691,12 +4283,12 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypes.send.contentType" }, { - "$id": "330", + "$id": "297", "kind": "body", "name": "sendRequest9", "serializedName": "sendRequest9", "type": { - "$ref": "190" + "$ref": "157" }, "isApiVersion": false, "contentTypes": [ @@ -4733,12 +4325,12 @@ }, "parameters": [ { - "$id": "331", + "$id": "298", "kind": "method", "name": "prop", "serializedName": "prop", "type": { - "$ref": "180" + "$ref": "147" }, "location": "Body", "isApiVersion": false, @@ -4750,13 +4342,13 @@ "decorators": [] }, { - "$id": "332", + "$id": "299", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "115" + "$ref": "82" }, "location": "Header", "isApiVersion": false, @@ -4777,13 +4369,13 @@ ], "parameters": [ { - "$id": "333", + "$id": "300", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Service host", "type": { - "$id": "334", + "$id": "301", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -4794,7 +4386,7 @@ "isEndpoint": true, "defaultValue": { "type": { - "$id": "335", + "$id": "302", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -4811,7 +4403,7 @@ "crossLanguageDefinitionId": "Type.Union.MixedTypes", "apiVersions": [], "parent": { - "$ref": "192" + "$ref": "159" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json index 3f21362ac08c..dbc8ef9192f2 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json @@ -26,45 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "EnumV1", - "isGeneratedName": false, - "namespace": "Versioning.Added", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "enumMemberV1", - "value": "enumMemberV1", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Added.EnumV1", - "apiVersions": [ - "v1" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "decorators": [] } @@ -76,12 +38,12 @@ "decorators": [] }, { - "$id": "7", + "$id": "4", "kind": "enum", "name": "Versions", "crossLanguageDefinitionId": "Versioning.Added.Versions", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -89,55 +51,15 @@ }, "values": [ { - "$id": "9", + "$id": "6", "kind": "enumvalue", "name": "v1", "value": "v1", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$id": "10", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Versioning.Added", - "doc": "The version of the API.", - "valueType": { - "$id": "11", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "12", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "The version v1.", - "enumType": { - "$ref": "10" - }, - "valueType": { - "$ref": "11" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Added.Versions", - "apiVersions": [ - "v1" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "4" }, "doc": "The version v1.", "decorators": [] @@ -153,13 +75,13 @@ ], "constants": [ { - "$id": "13", + "$id": "7", "kind": "constant", "name": "v1ContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "14", + "$id": "8", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -169,13 +91,13 @@ "decorators": [] }, { - "$id": "15", + "$id": "9", "kind": "constant", "name": "v1ContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "16", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -187,7 +109,7 @@ ], "models": [ { - "$id": "17", + "$id": "11", "kind": "model", "name": "ModelV1", "namespace": "Versioning.Added", @@ -196,12 +118,12 @@ "decorators": [], "properties": [ { - "$id": "18", + "$id": "12", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "19", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -221,7 +143,7 @@ "isHttpMetadata": false }, { - "$id": "20", + "$id": "14", "kind": "property", "name": "enumProp", "serializedName": "enumProp", @@ -246,14 +168,14 @@ ], "clients": [ { - "$id": "21", + "$id": "15", "kind": "client", "name": "AddedClient", "namespace": "Versioning.Added", "doc": "Test for the `@added` decorator.", "methods": [ { - "$id": "22", + "$id": "16", "kind": "basic", "name": "v1", "accessibility": "public", @@ -261,19 +183,19 @@ "v1" ], "operation": { - "$id": "23", + "$id": "17", "name": "v1", "resourceName": "Added", "accessibility": "public", "parameters": [ { - "$id": "24", + "$id": "18", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "13" + "$ref": "7" }, "isApiVersion": false, "optional": false, @@ -284,12 +206,12 @@ "crossLanguageDefinitionId": "Versioning.Added.v1.contentType" }, { - "$id": "25", + "$id": "19", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "9" }, "isApiVersion": false, "optional": false, @@ -300,12 +222,12 @@ "crossLanguageDefinitionId": "Versioning.Added.v1.accept" }, { - "$id": "26", + "$id": "20", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "17" + "$ref": "11" }, "isApiVersion": false, "contentTypes": [ @@ -325,7 +247,7 @@ 200 ], "bodyType": { - "$ref": "17" + "$ref": "11" }, "headers": [], "isErrorResponse": false, @@ -348,12 +270,12 @@ }, "parameters": [ { - "$id": "27", + "$id": "21", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "17" + "$ref": "11" }, "location": "Body", "isApiVersion": false, @@ -365,13 +287,13 @@ "decorators": [] }, { - "$id": "28", + "$id": "22", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "13" + "$ref": "7" }, "location": "Header", "isApiVersion": false, @@ -383,12 +305,12 @@ "decorators": [] }, { - "$id": "29", + "$id": "23", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "9" }, "location": "Header", "isApiVersion": false, @@ -402,7 +324,7 @@ ], "response": { "type": { - "$ref": "17" + "$ref": "11" } }, "isOverride": false, @@ -413,13 +335,13 @@ ], "parameters": [ { - "$id": "30", + "$id": "24", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "31", + "$id": "25", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -434,13 +356,13 @@ "crossLanguageDefinitionId": "Versioning.Added.endpoint" }, { - "$id": "32", + "$id": "26", "kind": "endpoint", "name": "version", "serializedName": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "7" + "$ref": "4" }, "isApiVersion": true, "optional": false, @@ -448,7 +370,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "33", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json index 048b07933bfd..0dbfd641b731 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json @@ -27,64 +27,12 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "EnumV1", - "isGeneratedName": false, - "namespace": "Versioning.Added", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "enumMemberV1", - "value": "enumMemberV1", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "enumMemberV2", - "value": "enumMemberV2", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Added.EnumV1", - "apiVersions": [ - "v1", - "v2" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "decorators": [] }, { - "$id": "8", + "$id": "4", "kind": "enumvalue", "name": "enumMemberV2", "value": "enumMemberV2", @@ -92,7 +40,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "decorators": [] } @@ -104,12 +52,12 @@ "decorators": [] }, { - "$id": "9", + "$id": "5", "kind": "enum", "name": "EnumV2", "crossLanguageDefinitionId": "Versioning.Added.EnumV2", "valueType": { - "$id": "10", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -117,53 +65,15 @@ }, "values": [ { - "$id": "11", + "$id": "7", "kind": "enumvalue", "name": "enumMember", "value": "enumMember", "valueType": { - "$ref": "10" + "$ref": "6" }, "enumType": { - "$id": "12", - "kind": "enum", - "decorators": [], - "name": "EnumV2", - "isGeneratedName": false, - "namespace": "Versioning.Added", - "valueType": { - "$id": "13", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "14", - "kind": "enumvalue", - "decorators": [], - "name": "enumMember", - "value": "enumMember", - "enumType": { - "$ref": "12" - }, - "valueType": { - "$ref": "13" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Added.EnumV2", - "apiVersions": [ - "v2" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "5" }, "decorators": [] } @@ -175,12 +85,12 @@ "decorators": [] }, { - "$id": "15", + "$id": "8", "kind": "enum", "name": "Versions", "crossLanguageDefinitionId": "Versioning.Added.Versions", "valueType": { - "$id": "16", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -188,84 +98,29 @@ }, "values": [ { - "$id": "17", + "$id": "10", "kind": "enumvalue", "name": "v1", "value": "v1", "valueType": { - "$ref": "16" + "$ref": "9" }, "enumType": { - "$id": "18", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Versioning.Added", - "doc": "The version of the API.", - "valueType": { - "$id": "19", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "20", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "The version v1.", - "enumType": { - "$ref": "18" - }, - "valueType": { - "$ref": "19" - } - }, - { - "$id": "21", - "kind": "enumvalue", - "decorators": [], - "name": "v2", - "value": "v2", - "doc": "The version v2.", - "enumType": { - "$ref": "18" - }, - "valueType": { - "$ref": "19" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Added.Versions", - "apiVersions": [ - "v1", - "v2" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "8" }, "doc": "The version v1.", "decorators": [] }, { - "$id": "22", + "$id": "11", "kind": "enumvalue", "name": "v2", "value": "v2", "valueType": { - "$ref": "16" + "$ref": "9" }, "enumType": { - "$ref": "18" + "$ref": "8" }, "doc": "The version v2.", "decorators": [] @@ -281,13 +136,13 @@ ], "constants": [ { - "$id": "23", + "$id": "12", "kind": "constant", "name": "v1ContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "24", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -297,13 +152,13 @@ "decorators": [] }, { - "$id": "25", + "$id": "14", "kind": "constant", "name": "v1ContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "26", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -313,13 +168,13 @@ "decorators": [] }, { - "$id": "27", + "$id": "16", "kind": "constant", "name": "v2ContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "28", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -329,13 +184,13 @@ "decorators": [] }, { - "$id": "29", + "$id": "18", "kind": "constant", "name": "v2ContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "30", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -345,13 +200,13 @@ "decorators": [] }, { - "$id": "31", + "$id": "20", "kind": "constant", "name": "v2InInterfaceContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "32", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -361,13 +216,13 @@ "decorators": [] }, { - "$id": "33", + "$id": "22", "kind": "constant", "name": "v2InInterfaceContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "34", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -379,7 +234,7 @@ ], "models": [ { - "$id": "35", + "$id": "24", "kind": "model", "name": "ModelV1", "namespace": "Versioning.Added", @@ -388,12 +243,12 @@ "decorators": [], "properties": [ { - "$id": "36", + "$id": "25", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "37", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -413,7 +268,7 @@ "isHttpMetadata": false }, { - "$id": "38", + "$id": "27", "kind": "property", "name": "enumProp", "serializedName": "enumProp", @@ -434,29 +289,29 @@ "isHttpMetadata": false }, { - "$id": "39", + "$id": "28", "kind": "property", "name": "unionProp", "serializedName": "unionProp", "type": { - "$id": "40", + "$id": "29", "kind": "union", "name": "UnionV1", "variantTypes": [ { - "$id": "41", + "$id": "30", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "42", + "$id": "31", "kind": "int32", "name": "V2Scalar", "crossLanguageDefinitionId": "Versioning.Added.V2Scalar", "baseType": { - "$id": "43", + "$id": "32", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -484,7 +339,7 @@ ] }, { - "$id": "44", + "$id": "33", "kind": "model", "name": "ModelV2", "namespace": "Versioning.Added", @@ -493,12 +348,12 @@ "decorators": [], "properties": [ { - "$id": "45", + "$id": "34", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "46", + "$id": "35", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -518,12 +373,12 @@ "isHttpMetadata": false }, { - "$id": "47", + "$id": "36", "kind": "property", "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "9" + "$ref": "5" }, "optional": false, "readOnly": false, @@ -539,24 +394,24 @@ "isHttpMetadata": false }, { - "$id": "48", + "$id": "37", "kind": "property", "name": "unionProp", "serializedName": "unionProp", "type": { - "$id": "49", + "$id": "38", "kind": "union", "name": "UnionV2", "variantTypes": [ { - "$id": "50", + "$id": "39", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "51", + "$id": "40", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -584,14 +439,14 @@ ], "clients": [ { - "$id": "52", + "$id": "41", "kind": "client", "name": "AddedClient", "namespace": "Versioning.Added", "doc": "Test for the `@added` decorator.", "methods": [ { - "$id": "53", + "$id": "42", "kind": "basic", "name": "v1", "accessibility": "public", @@ -600,18 +455,18 @@ "v2" ], "operation": { - "$id": "54", + "$id": "43", "name": "v1", "resourceName": "Added", "accessibility": "public", "parameters": [ { - "$id": "55", + "$id": "44", "kind": "header", "name": "headerV2", "serializedName": "header-v2", "type": { - "$id": "56", + "$id": "45", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -626,13 +481,13 @@ "crossLanguageDefinitionId": "Versioning.Added.v1.headerV2" }, { - "$id": "57", + "$id": "46", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "23" + "$ref": "12" }, "isApiVersion": false, "optional": false, @@ -643,12 +498,12 @@ "crossLanguageDefinitionId": "Versioning.Added.v1.contentType" }, { - "$id": "58", + "$id": "47", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "25" + "$ref": "14" }, "isApiVersion": false, "optional": false, @@ -659,12 +514,12 @@ "crossLanguageDefinitionId": "Versioning.Added.v1.accept" }, { - "$id": "59", + "$id": "48", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "35" + "$ref": "24" }, "isApiVersion": false, "contentTypes": [ @@ -684,7 +539,7 @@ 200 ], "bodyType": { - "$ref": "35" + "$ref": "24" }, "headers": [], "isErrorResponse": false, @@ -707,12 +562,12 @@ }, "parameters": [ { - "$id": "60", + "$id": "49", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "35" + "$ref": "24" }, "location": "Body", "isApiVersion": false, @@ -724,12 +579,12 @@ "decorators": [] }, { - "$id": "61", + "$id": "50", "kind": "method", "name": "headerV2", "serializedName": "header-v2", "type": { - "$id": "62", + "$id": "51", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -745,13 +600,13 @@ "decorators": [] }, { - "$id": "63", + "$id": "52", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "23" + "$ref": "12" }, "location": "Header", "isApiVersion": false, @@ -763,12 +618,12 @@ "decorators": [] }, { - "$id": "64", + "$id": "53", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "25" + "$ref": "14" }, "location": "Header", "isApiVersion": false, @@ -782,7 +637,7 @@ ], "response": { "type": { - "$ref": "35" + "$ref": "24" } }, "isOverride": false, @@ -791,7 +646,7 @@ "crossLanguageDefinitionId": "Versioning.Added.v1" }, { - "$id": "65", + "$id": "54", "kind": "basic", "name": "v2", "accessibility": "public", @@ -799,19 +654,19 @@ "v2" ], "operation": { - "$id": "66", + "$id": "55", "name": "v2", "resourceName": "Added", "accessibility": "public", "parameters": [ { - "$id": "67", + "$id": "56", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "27" + "$ref": "16" }, "isApiVersion": false, "optional": false, @@ -822,12 +677,12 @@ "crossLanguageDefinitionId": "Versioning.Added.v2.contentType" }, { - "$id": "68", + "$id": "57", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "29" + "$ref": "18" }, "isApiVersion": false, "optional": false, @@ -838,12 +693,12 @@ "crossLanguageDefinitionId": "Versioning.Added.v2.accept" }, { - "$id": "69", + "$id": "58", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "44" + "$ref": "33" }, "isApiVersion": false, "contentTypes": [ @@ -863,7 +718,7 @@ 200 ], "bodyType": { - "$ref": "44" + "$ref": "33" }, "headers": [], "isErrorResponse": false, @@ -886,12 +741,12 @@ }, "parameters": [ { - "$id": "70", + "$id": "59", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "44" + "$ref": "33" }, "location": "Body", "isApiVersion": false, @@ -903,13 +758,13 @@ "decorators": [] }, { - "$id": "71", + "$id": "60", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "27" + "$ref": "16" }, "location": "Header", "isApiVersion": false, @@ -921,12 +776,12 @@ "decorators": [] }, { - "$id": "72", + "$id": "61", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "29" + "$ref": "18" }, "location": "Header", "isApiVersion": false, @@ -940,7 +795,7 @@ ], "response": { "type": { - "$ref": "44" + "$ref": "33" } }, "isOverride": false, @@ -951,13 +806,13 @@ ], "parameters": [ { - "$id": "73", + "$id": "62", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "74", + "$id": "63", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -972,13 +827,13 @@ "crossLanguageDefinitionId": "Versioning.Added.endpoint" }, { - "$id": "75", + "$id": "64", "kind": "endpoint", "name": "version", "serializedName": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "15" + "$ref": "8" }, "isApiVersion": true, "optional": false, @@ -986,7 +841,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "76", + "$id": "65", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1007,13 +862,13 @@ ], "children": [ { - "$id": "77", + "$id": "66", "kind": "client", "name": "InterfaceV2", "namespace": "Versioning.Added", "methods": [ { - "$id": "78", + "$id": "67", "kind": "basic", "name": "v2InInterface", "accessibility": "public", @@ -1021,19 +876,19 @@ "v2" ], "operation": { - "$id": "79", + "$id": "68", "name": "v2InInterface", "resourceName": "InterfaceV2", "accessibility": "public", "parameters": [ { - "$id": "80", + "$id": "69", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "31" + "$ref": "20" }, "isApiVersion": false, "optional": false, @@ -1044,12 +899,12 @@ "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface.contentType" }, { - "$id": "81", + "$id": "70", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "33" + "$ref": "22" }, "isApiVersion": false, "optional": false, @@ -1060,12 +915,12 @@ "crossLanguageDefinitionId": "Versioning.Added.InterfaceV2.v2InInterface.accept" }, { - "$id": "82", + "$id": "71", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "44" + "$ref": "33" }, "isApiVersion": false, "contentTypes": [ @@ -1085,7 +940,7 @@ 200 ], "bodyType": { - "$ref": "44" + "$ref": "33" }, "headers": [], "isErrorResponse": false, @@ -1108,12 +963,12 @@ }, "parameters": [ { - "$id": "83", + "$id": "72", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "44" + "$ref": "33" }, "location": "Body", "isApiVersion": false, @@ -1125,13 +980,13 @@ "decorators": [] }, { - "$id": "84", + "$id": "73", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "31" + "$ref": "20" }, "location": "Header", "isApiVersion": false, @@ -1143,12 +998,12 @@ "decorators": [] }, { - "$id": "85", + "$id": "74", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "33" + "$ref": "22" }, "location": "Header", "isApiVersion": false, @@ -1162,7 +1017,7 @@ ], "response": { "type": { - "$ref": "44" + "$ref": "33" } }, "isOverride": false, @@ -1173,13 +1028,13 @@ ], "parameters": [ { - "$id": "86", + "$id": "75", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "87", + "$id": "76", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1194,13 +1049,13 @@ "crossLanguageDefinitionId": "Versioning.Added.endpoint" }, { - "$id": "88", + "$id": "77", "kind": "endpoint", "name": "version", "serializedName": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "15" + "$ref": "8" }, "isApiVersion": true, "optional": false, @@ -1208,7 +1063,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "89", + "$id": "78", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1227,7 +1082,7 @@ "v2" ], "parent": { - "$ref": "52" + "$ref": "41" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json index 08ef0bbad4cc..157aed506ac2 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json @@ -26,47 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Versioning.MadeOptional", - "doc": "The version of the API.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "The version v1.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Versioning.MadeOptional.Versions", - "apiVersions": [ - "v1" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "The version v1.", "decorators": [] @@ -82,13 +42,13 @@ ], "constants": [ { - "$id": "7", + "$id": "4", "kind": "constant", "name": "testContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -98,13 +58,13 @@ "decorators": [] }, { - "$id": "9", + "$id": "6", "kind": "constant", "name": "testContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "10", + "$id": "7", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -116,7 +76,7 @@ ], "models": [ { - "$id": "11", + "$id": "8", "kind": "model", "name": "TestModel", "namespace": "Versioning.MadeOptional", @@ -125,12 +85,12 @@ "decorators": [], "properties": [ { - "$id": "12", + "$id": "9", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "13", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -150,12 +110,12 @@ "isHttpMetadata": false }, { - "$id": "14", + "$id": "11", "kind": "property", "name": "changedProp", "serializedName": "changedProp", "type": { - "$id": "15", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -179,14 +139,14 @@ ], "clients": [ { - "$id": "16", + "$id": "13", "kind": "client", "name": "MadeOptionalClient", "namespace": "Versioning.MadeOptional", "doc": "Test for the `@madeOptional` decorator.", "methods": [ { - "$id": "17", + "$id": "14", "kind": "basic", "name": "test", "accessibility": "public", @@ -194,18 +154,18 @@ "v1" ], "operation": { - "$id": "18", + "$id": "15", "name": "test", "resourceName": "MadeOptional", "accessibility": "public", "parameters": [ { - "$id": "19", + "$id": "16", "kind": "query", "name": "param", "serializedName": "param", "type": { - "$id": "20", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -220,13 +180,13 @@ "readOnly": false }, { - "$id": "21", + "$id": "18", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "7" + "$ref": "4" }, "isApiVersion": false, "optional": false, @@ -237,12 +197,12 @@ "crossLanguageDefinitionId": "Versioning.MadeOptional.test.contentType" }, { - "$id": "22", + "$id": "19", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "9" + "$ref": "6" }, "isApiVersion": false, "optional": false, @@ -253,12 +213,12 @@ "crossLanguageDefinitionId": "Versioning.MadeOptional.test.accept" }, { - "$id": "23", + "$id": "20", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "11" + "$ref": "8" }, "isApiVersion": false, "contentTypes": [ @@ -278,7 +238,7 @@ 200 ], "bodyType": { - "$ref": "11" + "$ref": "8" }, "headers": [], "isErrorResponse": false, @@ -301,12 +261,12 @@ }, "parameters": [ { - "$id": "24", + "$id": "21", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "11" + "$ref": "8" }, "location": "Body", "isApiVersion": false, @@ -318,12 +278,12 @@ "decorators": [] }, { - "$id": "25", + "$id": "22", "kind": "method", "name": "param", "serializedName": "param", "type": { - "$id": "26", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -339,13 +299,13 @@ "decorators": [] }, { - "$id": "27", + "$id": "24", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "7" + "$ref": "4" }, "location": "Header", "isApiVersion": false, @@ -357,12 +317,12 @@ "decorators": [] }, { - "$id": "28", + "$id": "25", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "9" + "$ref": "6" }, "location": "Header", "isApiVersion": false, @@ -376,7 +336,7 @@ ], "response": { "type": { - "$ref": "11" + "$ref": "8" } }, "isOverride": false, @@ -387,13 +347,13 @@ ], "parameters": [ { - "$id": "29", + "$id": "26", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "30", + "$id": "27", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -408,7 +368,7 @@ "crossLanguageDefinitionId": "Versioning.MadeOptional.endpoint" }, { - "$id": "31", + "$id": "28", "kind": "endpoint", "name": "version", "serializedName": "version", @@ -422,7 +382,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "32", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json index 73f10effd23a..76c8eca28b30 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json @@ -27,68 +27,13 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Versioning.MadeOptional", - "doc": "The version of the API.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "The version v1.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "v2", - "value": "v2", - "doc": "The version v2.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Versioning.MadeOptional.Versions", - "apiVersions": [ - "v1", - "v2" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "The version v1.", "decorators": [] }, { - "$id": "8", + "$id": "4", "kind": "enumvalue", "name": "v2", "value": "v2", @@ -96,7 +41,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "The version v2.", "decorators": [] @@ -112,13 +57,13 @@ ], "constants": [ { - "$id": "9", + "$id": "5", "kind": "constant", "name": "testContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "10", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -128,13 +73,13 @@ "decorators": [] }, { - "$id": "11", + "$id": "7", "kind": "constant", "name": "testContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "12", + "$id": "8", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -146,7 +91,7 @@ ], "models": [ { - "$id": "13", + "$id": "9", "kind": "model", "name": "TestModel", "namespace": "Versioning.MadeOptional", @@ -155,12 +100,12 @@ "decorators": [], "properties": [ { - "$id": "14", + "$id": "10", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "15", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -180,12 +125,12 @@ "isHttpMetadata": false }, { - "$id": "16", + "$id": "12", "kind": "property", "name": "changedProp", "serializedName": "changedProp", "type": { - "$id": "17", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -209,14 +154,14 @@ ], "clients": [ { - "$id": "18", + "$id": "14", "kind": "client", "name": "MadeOptionalClient", "namespace": "Versioning.MadeOptional", "doc": "Test for the `@madeOptional` decorator.", "methods": [ { - "$id": "19", + "$id": "15", "kind": "basic", "name": "test", "accessibility": "public", @@ -225,18 +170,18 @@ "v2" ], "operation": { - "$id": "20", + "$id": "16", "name": "test", "resourceName": "MadeOptional", "accessibility": "public", "parameters": [ { - "$id": "21", + "$id": "17", "kind": "query", "name": "param", "serializedName": "param", "type": { - "$id": "22", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -251,13 +196,13 @@ "readOnly": false }, { - "$id": "23", + "$id": "19", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "9" + "$ref": "5" }, "isApiVersion": false, "optional": false, @@ -268,12 +213,12 @@ "crossLanguageDefinitionId": "Versioning.MadeOptional.test.contentType" }, { - "$id": "24", + "$id": "20", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "11" + "$ref": "7" }, "isApiVersion": false, "optional": false, @@ -284,12 +229,12 @@ "crossLanguageDefinitionId": "Versioning.MadeOptional.test.accept" }, { - "$id": "25", + "$id": "21", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "13" + "$ref": "9" }, "isApiVersion": false, "contentTypes": [ @@ -309,7 +254,7 @@ 200 ], "bodyType": { - "$ref": "13" + "$ref": "9" }, "headers": [], "isErrorResponse": false, @@ -332,12 +277,12 @@ }, "parameters": [ { - "$id": "26", + "$id": "22", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "13" + "$ref": "9" }, "location": "Body", "isApiVersion": false, @@ -349,12 +294,12 @@ "decorators": [] }, { - "$id": "27", + "$id": "23", "kind": "method", "name": "param", "serializedName": "param", "type": { - "$id": "28", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -370,13 +315,13 @@ "decorators": [] }, { - "$id": "29", + "$id": "25", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "9" + "$ref": "5" }, "location": "Header", "isApiVersion": false, @@ -388,12 +333,12 @@ "decorators": [] }, { - "$id": "30", + "$id": "26", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "11" + "$ref": "7" }, "location": "Header", "isApiVersion": false, @@ -407,7 +352,7 @@ ], "response": { "type": { - "$ref": "13" + "$ref": "9" } }, "isOverride": false, @@ -418,13 +363,13 @@ ], "parameters": [ { - "$id": "31", + "$id": "27", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "32", + "$id": "28", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -439,7 +384,7 @@ "crossLanguageDefinitionId": "Versioning.MadeOptional.endpoint" }, { - "$id": "33", + "$id": "29", "kind": "endpoint", "name": "version", "serializedName": "version", @@ -453,7 +398,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "34", + "$id": "30", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json index 95d54509b9c6..d09ee945293b 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json @@ -26,45 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "EnumV1", - "isGeneratedName": false, - "namespace": "Versioning.Removed", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "enumMember", - "value": "enumMember", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV1", - "apiVersions": [ - "v1" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "decorators": [] } @@ -76,12 +38,12 @@ "decorators": [] }, { - "$id": "7", + "$id": "4", "kind": "enum", "name": "EnumV2", "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -89,79 +51,28 @@ }, "values": [ { - "$id": "9", + "$id": "6", "kind": "enumvalue", "name": "enumMemberV1", "value": "enumMemberV1", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$id": "10", - "kind": "enum", - "decorators": [], - "name": "EnumV2", - "isGeneratedName": false, - "namespace": "Versioning.Removed", - "valueType": { - "$id": "11", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "12", - "kind": "enumvalue", - "decorators": [], - "name": "enumMemberV1", - "value": "enumMemberV1", - "enumType": { - "$ref": "10" - }, - "valueType": { - "$ref": "11" - } - }, - { - "$id": "13", - "kind": "enumvalue", - "decorators": [], - "name": "enumMemberV2", - "value": "enumMemberV2", - "enumType": { - "$ref": "10" - }, - "valueType": { - "$ref": "11" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", - "apiVersions": [ - "v1" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "4" }, "decorators": [] }, { - "$id": "14", + "$id": "7", "kind": "enumvalue", "name": "enumMemberV2", "value": "enumMemberV2", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$ref": "10" + "$ref": "4" }, "decorators": [] } @@ -173,12 +84,12 @@ "decorators": [] }, { - "$id": "15", + "$id": "8", "kind": "enum", "name": "EnumV3", "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", "valueType": { - "$id": "16", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -186,79 +97,28 @@ }, "values": [ { - "$id": "17", + "$id": "10", "kind": "enumvalue", "name": "enumMemberV1", "value": "enumMemberV1", "valueType": { - "$ref": "16" + "$ref": "9" }, "enumType": { - "$id": "18", - "kind": "enum", - "decorators": [], - "name": "EnumV3", - "isGeneratedName": false, - "namespace": "Versioning.Removed", - "valueType": { - "$id": "19", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "20", - "kind": "enumvalue", - "decorators": [], - "name": "enumMemberV1", - "value": "enumMemberV1", - "enumType": { - "$ref": "18" - }, - "valueType": { - "$ref": "19" - } - }, - { - "$id": "21", - "kind": "enumvalue", - "decorators": [], - "name": "enumMemberV2Preview", - "value": "enumMemberV2Preview", - "enumType": { - "$ref": "18" - }, - "valueType": { - "$ref": "19" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", - "apiVersions": [ - "v1" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "8" }, "decorators": [] }, { - "$id": "22", + "$id": "11", "kind": "enumvalue", "name": "enumMemberV2Preview", "value": "enumMemberV2Preview", "valueType": { - "$ref": "16" + "$ref": "9" }, "enumType": { - "$ref": "18" + "$ref": "8" }, "decorators": [] } @@ -270,12 +130,12 @@ "decorators": [] }, { - "$id": "23", + "$id": "12", "kind": "enum", "name": "Versions", "crossLanguageDefinitionId": "Versioning.Removed.Versions", "valueType": { - "$id": "24", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -283,55 +143,15 @@ }, "values": [ { - "$id": "25", + "$id": "14", "kind": "enumvalue", "name": "v1", "value": "v1", "valueType": { - "$ref": "24" + "$ref": "13" }, "enumType": { - "$id": "26", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Versioning.Removed", - "doc": "The version of the API.", - "valueType": { - "$id": "27", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "28", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "The version v1.", - "enumType": { - "$ref": "26" - }, - "valueType": { - "$ref": "27" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Removed.Versions", - "apiVersions": [ - "v1" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "12" }, "doc": "The version v1.", "decorators": [] @@ -347,13 +167,13 @@ ], "constants": [ { - "$id": "29", + "$id": "15", "kind": "constant", "name": "v1ContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "30", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -363,13 +183,13 @@ "decorators": [] }, { - "$id": "31", + "$id": "17", "kind": "constant", "name": "v1ContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "32", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -379,13 +199,13 @@ "decorators": [] }, { - "$id": "33", + "$id": "19", "kind": "constant", "name": "v2ContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "34", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -395,13 +215,13 @@ "decorators": [] }, { - "$id": "35", + "$id": "21", "kind": "constant", "name": "v2ContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "36", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -411,13 +231,13 @@ "decorators": [] }, { - "$id": "37", + "$id": "23", "kind": "constant", "name": "modelV3ContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "38", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -427,13 +247,13 @@ "decorators": [] }, { - "$id": "39", + "$id": "25", "kind": "constant", "name": "modelV3ContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "40", + "$id": "26", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -443,13 +263,13 @@ "decorators": [] }, { - "$id": "41", + "$id": "27", "kind": "constant", "name": "v1InInterfaceContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "42", + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -459,13 +279,13 @@ "decorators": [] }, { - "$id": "43", + "$id": "29", "kind": "constant", "name": "v1InInterfaceContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "44", + "$id": "30", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -477,7 +297,7 @@ ], "models": [ { - "$id": "45", + "$id": "31", "kind": "model", "name": "ModelV1", "namespace": "Versioning.Removed", @@ -486,12 +306,12 @@ "decorators": [], "properties": [ { - "$id": "46", + "$id": "32", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "47", + "$id": "33", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -511,7 +331,7 @@ "isHttpMetadata": false }, { - "$id": "48", + "$id": "34", "kind": "property", "name": "enumProp", "serializedName": "enumProp", @@ -532,24 +352,24 @@ "isHttpMetadata": false }, { - "$id": "49", + "$id": "35", "kind": "property", "name": "unionProp", "serializedName": "unionProp", "type": { - "$id": "50", + "$id": "36", "kind": "union", "name": "UnionV1", "variantTypes": [ { - "$id": "51", + "$id": "37", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "52", + "$id": "38", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -575,7 +395,7 @@ ] }, { - "$id": "53", + "$id": "39", "kind": "model", "name": "ModelV2", "namespace": "Versioning.Removed", @@ -584,12 +404,12 @@ "decorators": [], "properties": [ { - "$id": "54", + "$id": "40", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "55", + "$id": "41", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -609,12 +429,12 @@ "isHttpMetadata": false }, { - "$id": "56", + "$id": "42", "kind": "property", "name": "removedProp", "serializedName": "removedProp", "type": { - "$id": "57", + "$id": "43", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -634,12 +454,12 @@ "isHttpMetadata": false }, { - "$id": "58", + "$id": "44", "kind": "property", "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "7" + "$ref": "4" }, "optional": false, "readOnly": false, @@ -655,36 +475,36 @@ "isHttpMetadata": false }, { - "$id": "59", + "$id": "45", "kind": "property", "name": "unionProp", "serializedName": "unionProp", "type": { - "$id": "60", + "$id": "46", "kind": "union", "name": "UnionV2", "variantTypes": [ { - "$id": "61", + "$id": "47", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "62", + "$id": "48", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", "decorators": [] }, { - "$id": "63", + "$id": "49", "kind": "int32", "name": "V1Scalar", "crossLanguageDefinitionId": "Versioning.Removed.V1Scalar", "baseType": { - "$id": "64", + "$id": "50", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -712,7 +532,7 @@ ] }, { - "$id": "65", + "$id": "51", "kind": "model", "name": "ModelV3", "namespace": "Versioning.Removed", @@ -721,12 +541,12 @@ "decorators": [], "properties": [ { - "$id": "66", + "$id": "52", "kind": "property", "name": "id", "serializedName": "id", "type": { - "$id": "67", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -746,12 +566,12 @@ "isHttpMetadata": false }, { - "$id": "68", + "$id": "54", "kind": "property", "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "15" + "$ref": "8" }, "optional": false, "readOnly": false, @@ -771,14 +591,14 @@ ], "clients": [ { - "$id": "69", + "$id": "55", "kind": "client", "name": "RemovedClient", "namespace": "Versioning.Removed", "doc": "Test for the `@removed` decorator.", "methods": [ { - "$id": "70", + "$id": "56", "kind": "basic", "name": "v1", "accessibility": "public", @@ -787,20 +607,20 @@ ], "doc": "This operation should not be generated with latest version's signature.", "operation": { - "$id": "71", + "$id": "57", "name": "v1", "resourceName": "Removed", "doc": "This operation should not be generated with latest version's signature.", "accessibility": "public", "parameters": [ { - "$id": "72", + "$id": "58", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "29" + "$ref": "15" }, "isApiVersion": false, "optional": false, @@ -811,12 +631,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.v1.contentType" }, { - "$id": "73", + "$id": "59", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "31" + "$ref": "17" }, "isApiVersion": false, "optional": false, @@ -827,12 +647,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.v1.accept" }, { - "$id": "74", + "$id": "60", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "45" + "$ref": "31" }, "isApiVersion": false, "contentTypes": [ @@ -852,7 +672,7 @@ 200 ], "bodyType": { - "$ref": "45" + "$ref": "31" }, "headers": [], "isErrorResponse": false, @@ -875,12 +695,12 @@ }, "parameters": [ { - "$id": "75", + "$id": "61", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "45" + "$ref": "31" }, "location": "Body", "isApiVersion": false, @@ -892,13 +712,13 @@ "decorators": [] }, { - "$id": "76", + "$id": "62", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "29" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -910,12 +730,12 @@ "decorators": [] }, { - "$id": "77", + "$id": "63", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "31" + "$ref": "17" }, "location": "Header", "isApiVersion": false, @@ -929,7 +749,7 @@ ], "response": { "type": { - "$ref": "45" + "$ref": "31" } }, "isOverride": false, @@ -938,7 +758,7 @@ "crossLanguageDefinitionId": "Versioning.Removed.v1" }, { - "$id": "78", + "$id": "64", "kind": "basic", "name": "v2", "accessibility": "public", @@ -946,18 +766,18 @@ "v1" ], "operation": { - "$id": "79", + "$id": "65", "name": "v2", "resourceName": "Removed", "accessibility": "public", "parameters": [ { - "$id": "80", + "$id": "66", "kind": "query", "name": "param", "serializedName": "param", "type": { - "$id": "81", + "$id": "67", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -972,13 +792,13 @@ "readOnly": false }, { - "$id": "82", + "$id": "68", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "33" + "$ref": "19" }, "isApiVersion": false, "optional": false, @@ -989,12 +809,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType" }, { - "$id": "83", + "$id": "69", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "35" + "$ref": "21" }, "isApiVersion": false, "optional": false, @@ -1005,12 +825,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.v2.accept" }, { - "$id": "84", + "$id": "70", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "53" + "$ref": "39" }, "isApiVersion": false, "contentTypes": [ @@ -1030,7 +850,7 @@ 200 ], "bodyType": { - "$ref": "53" + "$ref": "39" }, "headers": [], "isErrorResponse": false, @@ -1053,12 +873,12 @@ }, "parameters": [ { - "$id": "85", + "$id": "71", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "53" + "$ref": "39" }, "location": "Body", "isApiVersion": false, @@ -1070,12 +890,12 @@ "decorators": [] }, { - "$id": "86", + "$id": "72", "kind": "method", "name": "param", "serializedName": "param", "type": { - "$id": "87", + "$id": "73", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1091,13 +911,13 @@ "decorators": [] }, { - "$id": "88", + "$id": "74", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "33" + "$ref": "19" }, "location": "Header", "isApiVersion": false, @@ -1109,12 +929,12 @@ "decorators": [] }, { - "$id": "89", + "$id": "75", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "35" + "$ref": "21" }, "location": "Header", "isApiVersion": false, @@ -1128,7 +948,7 @@ ], "response": { "type": { - "$ref": "53" + "$ref": "39" } }, "isOverride": false, @@ -1137,7 +957,7 @@ "crossLanguageDefinitionId": "Versioning.Removed.v2" }, { - "$id": "90", + "$id": "76", "kind": "basic", "name": "modelV3", "accessibility": "public", @@ -1146,20 +966,20 @@ ], "doc": "This operation will pass different paths and different request bodies based on different versions.", "operation": { - "$id": "91", + "$id": "77", "name": "modelV3", "resourceName": "Removed", "doc": "This operation will pass different paths and different request bodies based on different versions.", "accessibility": "public", "parameters": [ { - "$id": "92", + "$id": "78", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "37" + "$ref": "23" }, "isApiVersion": false, "optional": false, @@ -1170,12 +990,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType" }, { - "$id": "93", + "$id": "79", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "39" + "$ref": "25" }, "isApiVersion": false, "optional": false, @@ -1186,12 +1006,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept" }, { - "$id": "94", + "$id": "80", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "65" + "$ref": "51" }, "isApiVersion": false, "contentTypes": [ @@ -1211,7 +1031,7 @@ 200 ], "bodyType": { - "$ref": "65" + "$ref": "51" }, "headers": [], "isErrorResponse": false, @@ -1234,12 +1054,12 @@ }, "parameters": [ { - "$id": "95", + "$id": "81", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "65" + "$ref": "51" }, "location": "Body", "isApiVersion": false, @@ -1251,13 +1071,13 @@ "decorators": [] }, { - "$id": "96", + "$id": "82", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "37" + "$ref": "23" }, "location": "Header", "isApiVersion": false, @@ -1269,12 +1089,12 @@ "decorators": [] }, { - "$id": "97", + "$id": "83", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "39" + "$ref": "25" }, "location": "Header", "isApiVersion": false, @@ -1288,7 +1108,7 @@ ], "response": { "type": { - "$ref": "65" + "$ref": "51" } }, "isOverride": false, @@ -1299,13 +1119,13 @@ ], "parameters": [ { - "$id": "98", + "$id": "84", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "99", + "$id": "85", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1320,13 +1140,13 @@ "crossLanguageDefinitionId": "Versioning.Removed.endpoint" }, { - "$id": "100", + "$id": "86", "kind": "endpoint", "name": "version", "serializedName": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "23" + "$ref": "12" }, "isApiVersion": true, "optional": false, @@ -1334,7 +1154,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "101", + "$id": "87", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1354,14 +1174,14 @@ ], "children": [ { - "$id": "102", + "$id": "88", "kind": "client", "name": "InterfaceV1", "namespace": "Versioning.Removed", "doc": "This operation group should not be generated with latest version.", "methods": [ { - "$id": "103", + "$id": "89", "kind": "basic", "name": "v1InInterface", "accessibility": "public", @@ -1369,19 +1189,19 @@ "v1" ], "operation": { - "$id": "104", + "$id": "90", "name": "v1InInterface", "resourceName": "InterfaceV1", "accessibility": "public", "parameters": [ { - "$id": "105", + "$id": "91", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "41" + "$ref": "27" }, "isApiVersion": false, "optional": false, @@ -1392,12 +1212,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.contentType" }, { - "$id": "106", + "$id": "92", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "43" + "$ref": "29" }, "isApiVersion": false, "optional": false, @@ -1408,12 +1228,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.accept" }, { - "$id": "107", + "$id": "93", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "45" + "$ref": "31" }, "isApiVersion": false, "contentTypes": [ @@ -1433,7 +1253,7 @@ 200 ], "bodyType": { - "$ref": "45" + "$ref": "31" }, "headers": [], "isErrorResponse": false, @@ -1456,12 +1276,12 @@ }, "parameters": [ { - "$id": "108", + "$id": "94", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "45" + "$ref": "31" }, "location": "Body", "isApiVersion": false, @@ -1473,13 +1293,13 @@ "decorators": [] }, { - "$id": "109", + "$id": "95", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "41" + "$ref": "27" }, "location": "Header", "isApiVersion": false, @@ -1491,12 +1311,12 @@ "decorators": [] }, { - "$id": "110", + "$id": "96", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "43" + "$ref": "29" }, "location": "Header", "isApiVersion": false, @@ -1510,7 +1330,7 @@ ], "response": { "type": { - "$ref": "45" + "$ref": "31" } }, "isOverride": false, @@ -1521,13 +1341,13 @@ ], "parameters": [ { - "$id": "111", + "$id": "97", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "112", + "$id": "98", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1542,13 +1362,13 @@ "crossLanguageDefinitionId": "Versioning.Removed.endpoint" }, { - "$id": "113", + "$id": "99", "kind": "endpoint", "name": "version", "serializedName": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "23" + "$ref": "12" }, "isApiVersion": true, "optional": false, @@ -1556,7 +1376,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "114", + "$id": "100", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1575,7 +1395,7 @@ "v1" ], "parent": { - "$ref": "69" + "$ref": "55" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json index d686c323348d..0a23449714b4 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json @@ -28,47 +28,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "EnumV2", - "isGeneratedName": false, - "namespace": "Versioning.Removed", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "enumMemberV2", - "value": "enumMemberV2", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", - "apiVersions": [ - "v1", - "v2preview", - "v2" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "decorators": [] } @@ -80,12 +40,12 @@ "decorators": [] }, { - "$id": "7", + "$id": "4", "kind": "enum", "name": "EnumV3", "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -93,81 +53,28 @@ }, "values": [ { - "$id": "9", + "$id": "6", "kind": "enumvalue", "name": "enumMemberV1", "value": "enumMemberV1", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$id": "10", - "kind": "enum", - "decorators": [], - "name": "EnumV3", - "isGeneratedName": false, - "namespace": "Versioning.Removed", - "valueType": { - "$id": "11", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "12", - "kind": "enumvalue", - "decorators": [], - "name": "enumMemberV1", - "value": "enumMemberV1", - "enumType": { - "$ref": "10" - }, - "valueType": { - "$ref": "11" - } - }, - { - "$id": "13", - "kind": "enumvalue", - "decorators": [], - "name": "enumMemberV2Preview", - "value": "enumMemberV2Preview", - "enumType": { - "$ref": "10" - }, - "valueType": { - "$ref": "11" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV3", - "apiVersions": [ - "v1", - "v2preview", - "v2" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "4" }, "decorators": [] }, { - "$id": "14", + "$id": "7", "kind": "enumvalue", "name": "enumMemberV2Preview", "value": "enumMemberV2Preview", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$ref": "10" + "$ref": "4" }, "decorators": [] } @@ -179,12 +86,12 @@ "decorators": [] }, { - "$id": "15", + "$id": "8", "kind": "enum", "name": "Versions", "crossLanguageDefinitionId": "Versioning.Removed.Versions", "valueType": { - "$id": "16", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -192,113 +99,43 @@ }, "values": [ { - "$id": "17", + "$id": "10", "kind": "enumvalue", "name": "v1", "value": "v1", "valueType": { - "$ref": "16" + "$ref": "9" }, "enumType": { - "$id": "18", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Versioning.Removed", - "doc": "The version of the API.", - "valueType": { - "$id": "19", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "20", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "The version v1.", - "enumType": { - "$ref": "18" - }, - "valueType": { - "$ref": "19" - } - }, - { - "$id": "21", - "kind": "enumvalue", - "decorators": [], - "name": "v2preview", - "value": "v2preview", - "doc": "The V2 Preview version.", - "enumType": { - "$ref": "18" - }, - "valueType": { - "$ref": "19" - } - }, - { - "$id": "22", - "kind": "enumvalue", - "decorators": [], - "name": "v2", - "value": "v2", - "doc": "The version v2.", - "enumType": { - "$ref": "18" - }, - "valueType": { - "$ref": "19" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Removed.Versions", - "apiVersions": [ - "v1", - "v2preview", - "v2" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "8" }, "doc": "The version v1.", "decorators": [] }, { - "$id": "23", + "$id": "11", "kind": "enumvalue", "name": "v2preview", "value": "v2preview", "valueType": { - "$ref": "16" + "$ref": "9" }, "enumType": { - "$ref": "18" + "$ref": "8" }, "doc": "The V2 Preview version.", "decorators": [] }, { - "$id": "24", + "$id": "12", "kind": "enumvalue", "name": "v2", "value": "v2", "valueType": { - "$ref": "16" + "$ref": "9" }, "enumType": { - "$ref": "18" + "$ref": "8" }, "doc": "The version v2.", "decorators": [] @@ -314,13 +151,13 @@ ], "constants": [ { - "$id": "25", + "$id": "13", "kind": "constant", "name": "v2ContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "26", + "$id": "14", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -330,13 +167,13 @@ "decorators": [] }, { - "$id": "27", + "$id": "15", "kind": "constant", "name": "v2ContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "28", + "$id": "16", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -346,13 +183,13 @@ "decorators": [] }, { - "$id": "29", + "$id": "17", "kind": "constant", "name": "modelV3ContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "30", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -362,13 +199,13 @@ "decorators": [] }, { - "$id": "31", + "$id": "19", "kind": "constant", "name": "modelV3ContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "32", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -380,7 +217,7 @@ ], "models": [ { - "$id": "33", + "$id": "21", "kind": "model", "name": "ModelV2", "namespace": "Versioning.Removed", @@ -389,12 +226,12 @@ "decorators": [], "properties": [ { - "$id": "34", + "$id": "22", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "35", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -414,7 +251,7 @@ "isHttpMetadata": false }, { - "$id": "36", + "$id": "24", "kind": "property", "name": "enumProp", "serializedName": "enumProp", @@ -435,24 +272,24 @@ "isHttpMetadata": false }, { - "$id": "37", + "$id": "25", "kind": "property", "name": "unionProp", "serializedName": "unionProp", "type": { - "$id": "38", + "$id": "26", "kind": "union", "name": "UnionV2", "variantTypes": [ { - "$id": "39", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "40", + "$id": "28", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", @@ -478,7 +315,7 @@ ] }, { - "$id": "41", + "$id": "29", "kind": "model", "name": "ModelV3", "namespace": "Versioning.Removed", @@ -487,12 +324,12 @@ "decorators": [], "properties": [ { - "$id": "42", + "$id": "30", "kind": "property", "name": "id", "serializedName": "id", "type": { - "$id": "43", + "$id": "31", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -512,12 +349,12 @@ "isHttpMetadata": false }, { - "$id": "44", + "$id": "32", "kind": "property", "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "7" + "$ref": "4" }, "optional": false, "readOnly": false, @@ -537,14 +374,14 @@ ], "clients": [ { - "$id": "45", + "$id": "33", "kind": "client", "name": "RemovedClient", "namespace": "Versioning.Removed", "doc": "Test for the `@removed` decorator.", "methods": [ { - "$id": "46", + "$id": "34", "kind": "basic", "name": "v2", "accessibility": "public", @@ -554,19 +391,19 @@ "v2" ], "operation": { - "$id": "47", + "$id": "35", "name": "v2", "resourceName": "Removed", "accessibility": "public", "parameters": [ { - "$id": "48", + "$id": "36", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "25" + "$ref": "13" }, "isApiVersion": false, "optional": false, @@ -577,12 +414,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType" }, { - "$id": "49", + "$id": "37", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "27" + "$ref": "15" }, "isApiVersion": false, "optional": false, @@ -593,12 +430,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.v2.accept" }, { - "$id": "50", + "$id": "38", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "33" + "$ref": "21" }, "isApiVersion": false, "contentTypes": [ @@ -618,7 +455,7 @@ 200 ], "bodyType": { - "$ref": "33" + "$ref": "21" }, "headers": [], "isErrorResponse": false, @@ -641,12 +478,12 @@ }, "parameters": [ { - "$id": "51", + "$id": "39", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "33" + "$ref": "21" }, "location": "Body", "isApiVersion": false, @@ -658,13 +495,13 @@ "decorators": [] }, { - "$id": "52", + "$id": "40", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "25" + "$ref": "13" }, "location": "Header", "isApiVersion": false, @@ -676,12 +513,12 @@ "decorators": [] }, { - "$id": "53", + "$id": "41", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "27" + "$ref": "15" }, "location": "Header", "isApiVersion": false, @@ -695,7 +532,7 @@ ], "response": { "type": { - "$ref": "33" + "$ref": "21" } }, "isOverride": false, @@ -704,7 +541,7 @@ "crossLanguageDefinitionId": "Versioning.Removed.v2" }, { - "$id": "54", + "$id": "42", "kind": "basic", "name": "modelV3", "accessibility": "public", @@ -715,20 +552,20 @@ ], "doc": "This operation will pass different paths and different request bodies based on different versions.", "operation": { - "$id": "55", + "$id": "43", "name": "modelV3", "resourceName": "Removed", "doc": "This operation will pass different paths and different request bodies based on different versions.", "accessibility": "public", "parameters": [ { - "$id": "56", + "$id": "44", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "29" + "$ref": "17" }, "isApiVersion": false, "optional": false, @@ -739,12 +576,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType" }, { - "$id": "57", + "$id": "45", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "31" + "$ref": "19" }, "isApiVersion": false, "optional": false, @@ -755,12 +592,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept" }, { - "$id": "58", + "$id": "46", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "41" + "$ref": "29" }, "isApiVersion": false, "contentTypes": [ @@ -780,7 +617,7 @@ 200 ], "bodyType": { - "$ref": "41" + "$ref": "29" }, "headers": [], "isErrorResponse": false, @@ -803,12 +640,12 @@ }, "parameters": [ { - "$id": "59", + "$id": "47", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "41" + "$ref": "29" }, "location": "Body", "isApiVersion": false, @@ -820,13 +657,13 @@ "decorators": [] }, { - "$id": "60", + "$id": "48", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "29" + "$ref": "17" }, "location": "Header", "isApiVersion": false, @@ -838,12 +675,12 @@ "decorators": [] }, { - "$id": "61", + "$id": "49", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "31" + "$ref": "19" }, "location": "Header", "isApiVersion": false, @@ -857,7 +694,7 @@ ], "response": { "type": { - "$ref": "41" + "$ref": "29" } }, "isOverride": false, @@ -868,13 +705,13 @@ ], "parameters": [ { - "$id": "62", + "$id": "50", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "63", + "$id": "51", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -889,13 +726,13 @@ "crossLanguageDefinitionId": "Versioning.Removed.endpoint" }, { - "$id": "64", + "$id": "52", "kind": "endpoint", "name": "version", "serializedName": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "15" + "$ref": "8" }, "isApiVersion": true, "optional": false, @@ -903,7 +740,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "65", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json index 941c1c67a641..572967692eb0 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json @@ -27,46 +27,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "EnumV1", - "isGeneratedName": false, - "namespace": "Versioning.Removed", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "enumMember", - "value": "enumMember", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV1", - "apiVersions": [ - "v1", - "v2preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "decorators": [] } @@ -78,12 +39,12 @@ "decorators": [] }, { - "$id": "7", + "$id": "4", "kind": "enum", "name": "EnumV2", "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -91,80 +52,28 @@ }, "values": [ { - "$id": "9", + "$id": "6", "kind": "enumvalue", "name": "enumMemberV1", "value": "enumMemberV1", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$id": "10", - "kind": "enum", - "decorators": [], - "name": "EnumV2", - "isGeneratedName": false, - "namespace": "Versioning.Removed", - "valueType": { - "$id": "11", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "12", - "kind": "enumvalue", - "decorators": [], - "name": "enumMemberV1", - "value": "enumMemberV1", - "enumType": { - "$ref": "10" - }, - "valueType": { - "$ref": "11" - } - }, - { - "$id": "13", - "kind": "enumvalue", - "decorators": [], - "name": "enumMemberV2", - "value": "enumMemberV2", - "enumType": { - "$ref": "10" - }, - "valueType": { - "$ref": "11" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Removed.EnumV2", - "apiVersions": [ - "v1", - "v2preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "4" }, "decorators": [] }, { - "$id": "14", + "$id": "7", "kind": "enumvalue", "name": "enumMemberV2", "value": "enumMemberV2", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$ref": "10" + "$ref": "4" }, "decorators": [] } @@ -176,12 +85,12 @@ "decorators": [] }, { - "$id": "15", + "$id": "8", "kind": "enum", "name": "Versions", "crossLanguageDefinitionId": "Versioning.Removed.Versions", "valueType": { - "$id": "16", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -189,84 +98,29 @@ }, "values": [ { - "$id": "17", + "$id": "10", "kind": "enumvalue", "name": "v1", "value": "v1", "valueType": { - "$ref": "16" + "$ref": "9" }, "enumType": { - "$id": "18", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Versioning.Removed", - "doc": "The version of the API.", - "valueType": { - "$id": "19", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "20", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "The version v1.", - "enumType": { - "$ref": "18" - }, - "valueType": { - "$ref": "19" - } - }, - { - "$id": "21", - "kind": "enumvalue", - "decorators": [], - "name": "v2preview", - "value": "v2preview", - "doc": "The V2 Preview version.", - "enumType": { - "$ref": "18" - }, - "valueType": { - "$ref": "19" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Versioning.Removed.Versions", - "apiVersions": [ - "v1", - "v2preview" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "8" }, "doc": "The version v1.", "decorators": [] }, { - "$id": "22", + "$id": "11", "kind": "enumvalue", "name": "v2preview", "value": "v2preview", "valueType": { - "$ref": "16" + "$ref": "9" }, "enumType": { - "$ref": "18" + "$ref": "8" }, "doc": "The V2 Preview version.", "decorators": [] @@ -282,13 +136,13 @@ ], "constants": [ { - "$id": "23", + "$id": "12", "kind": "constant", "name": "v1ContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "24", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -298,13 +152,13 @@ "decorators": [] }, { - "$id": "25", + "$id": "14", "kind": "constant", "name": "v1ContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "26", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -314,13 +168,13 @@ "decorators": [] }, { - "$id": "27", + "$id": "16", "kind": "constant", "name": "v2ContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "28", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -330,13 +184,13 @@ "decorators": [] }, { - "$id": "29", + "$id": "18", "kind": "constant", "name": "v2ContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "30", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -346,13 +200,13 @@ "decorators": [] }, { - "$id": "31", + "$id": "20", "kind": "constant", "name": "modelV3ContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "32", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -362,13 +216,13 @@ "decorators": [] }, { - "$id": "33", + "$id": "22", "kind": "constant", "name": "modelV3ContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "34", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -378,13 +232,13 @@ "decorators": [] }, { - "$id": "35", + "$id": "24", "kind": "constant", "name": "v1InInterfaceContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "36", + "$id": "25", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -394,13 +248,13 @@ "decorators": [] }, { - "$id": "37", + "$id": "26", "kind": "constant", "name": "v1InInterfaceContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "38", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -412,7 +266,7 @@ ], "models": [ { - "$id": "39", + "$id": "28", "kind": "model", "name": "ModelV1", "namespace": "Versioning.Removed", @@ -421,12 +275,12 @@ "decorators": [], "properties": [ { - "$id": "40", + "$id": "29", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "41", + "$id": "30", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -446,7 +300,7 @@ "isHttpMetadata": false }, { - "$id": "42", + "$id": "31", "kind": "property", "name": "enumProp", "serializedName": "enumProp", @@ -467,24 +321,24 @@ "isHttpMetadata": false }, { - "$id": "43", + "$id": "32", "kind": "property", "name": "unionProp", "serializedName": "unionProp", "type": { - "$id": "44", + "$id": "33", "kind": "union", "name": "UnionV1", "variantTypes": [ { - "$id": "45", + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "46", + "$id": "35", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -510,7 +364,7 @@ ] }, { - "$id": "47", + "$id": "36", "kind": "model", "name": "ModelV2", "namespace": "Versioning.Removed", @@ -519,12 +373,12 @@ "decorators": [], "properties": [ { - "$id": "48", + "$id": "37", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "49", + "$id": "38", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -544,12 +398,12 @@ "isHttpMetadata": false }, { - "$id": "50", + "$id": "39", "kind": "property", "name": "removedProp", "serializedName": "removedProp", "type": { - "$id": "51", + "$id": "40", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -569,12 +423,12 @@ "isHttpMetadata": false }, { - "$id": "52", + "$id": "41", "kind": "property", "name": "enumProp", "serializedName": "enumProp", "type": { - "$ref": "7" + "$ref": "4" }, "optional": false, "readOnly": false, @@ -590,36 +444,36 @@ "isHttpMetadata": false }, { - "$id": "53", + "$id": "42", "kind": "property", "name": "unionProp", "serializedName": "unionProp", "type": { - "$id": "54", + "$id": "43", "kind": "union", "name": "UnionV2", "variantTypes": [ { - "$id": "55", + "$id": "44", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "56", + "$id": "45", "kind": "float32", "name": "float32", "crossLanguageDefinitionId": "TypeSpec.float32", "decorators": [] }, { - "$id": "57", + "$id": "46", "kind": "int32", "name": "V1Scalar", "crossLanguageDefinitionId": "Versioning.Removed.V1Scalar", "baseType": { - "$id": "58", + "$id": "47", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -647,7 +501,7 @@ ] }, { - "$id": "59", + "$id": "48", "kind": "model", "name": "ModelV3", "namespace": "Versioning.Removed", @@ -656,12 +510,12 @@ "decorators": [], "properties": [ { - "$id": "60", + "$id": "49", "kind": "property", "name": "id", "serializedName": "id", "type": { - "$id": "61", + "$id": "50", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -685,14 +539,14 @@ ], "clients": [ { - "$id": "62", + "$id": "51", "kind": "client", "name": "RemovedClient", "namespace": "Versioning.Removed", "doc": "Test for the `@removed` decorator.", "methods": [ { - "$id": "63", + "$id": "52", "kind": "basic", "name": "v1", "accessibility": "public", @@ -702,20 +556,20 @@ ], "doc": "This operation should not be generated with latest version's signature.", "operation": { - "$id": "64", + "$id": "53", "name": "v1", "resourceName": "Removed", "doc": "This operation should not be generated with latest version's signature.", "accessibility": "public", "parameters": [ { - "$id": "65", + "$id": "54", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "23" + "$ref": "12" }, "isApiVersion": false, "optional": false, @@ -726,12 +580,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.v1.contentType" }, { - "$id": "66", + "$id": "55", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "25" + "$ref": "14" }, "isApiVersion": false, "optional": false, @@ -742,12 +596,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.v1.accept" }, { - "$id": "67", + "$id": "56", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "39" + "$ref": "28" }, "isApiVersion": false, "contentTypes": [ @@ -767,7 +621,7 @@ 200 ], "bodyType": { - "$ref": "39" + "$ref": "28" }, "headers": [], "isErrorResponse": false, @@ -790,12 +644,12 @@ }, "parameters": [ { - "$id": "68", + "$id": "57", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "39" + "$ref": "28" }, "location": "Body", "isApiVersion": false, @@ -807,13 +661,13 @@ "decorators": [] }, { - "$id": "69", + "$id": "58", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "23" + "$ref": "12" }, "location": "Header", "isApiVersion": false, @@ -825,12 +679,12 @@ "decorators": [] }, { - "$id": "70", + "$id": "59", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "25" + "$ref": "14" }, "location": "Header", "isApiVersion": false, @@ -844,7 +698,7 @@ ], "response": { "type": { - "$ref": "39" + "$ref": "28" } }, "isOverride": false, @@ -853,7 +707,7 @@ "crossLanguageDefinitionId": "Versioning.Removed.v1" }, { - "$id": "71", + "$id": "60", "kind": "basic", "name": "v2", "accessibility": "public", @@ -862,18 +716,18 @@ "v2preview" ], "operation": { - "$id": "72", + "$id": "61", "name": "v2", "resourceName": "Removed", "accessibility": "public", "parameters": [ { - "$id": "73", + "$id": "62", "kind": "query", "name": "param", "serializedName": "param", "type": { - "$id": "74", + "$id": "63", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -888,13 +742,13 @@ "readOnly": false }, { - "$id": "75", + "$id": "64", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "27" + "$ref": "16" }, "isApiVersion": false, "optional": false, @@ -905,12 +759,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.v2.contentType" }, { - "$id": "76", + "$id": "65", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "29" + "$ref": "18" }, "isApiVersion": false, "optional": false, @@ -921,12 +775,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.v2.accept" }, { - "$id": "77", + "$id": "66", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "47" + "$ref": "36" }, "isApiVersion": false, "contentTypes": [ @@ -946,7 +800,7 @@ 200 ], "bodyType": { - "$ref": "47" + "$ref": "36" }, "headers": [], "isErrorResponse": false, @@ -969,12 +823,12 @@ }, "parameters": [ { - "$id": "78", + "$id": "67", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "47" + "$ref": "36" }, "location": "Body", "isApiVersion": false, @@ -986,12 +840,12 @@ "decorators": [] }, { - "$id": "79", + "$id": "68", "kind": "method", "name": "param", "serializedName": "param", "type": { - "$id": "80", + "$id": "69", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -1007,13 +861,13 @@ "decorators": [] }, { - "$id": "81", + "$id": "70", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "27" + "$ref": "16" }, "location": "Header", "isApiVersion": false, @@ -1025,12 +879,12 @@ "decorators": [] }, { - "$id": "82", + "$id": "71", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "29" + "$ref": "18" }, "location": "Header", "isApiVersion": false, @@ -1044,7 +898,7 @@ ], "response": { "type": { - "$ref": "47" + "$ref": "36" } }, "isOverride": false, @@ -1053,7 +907,7 @@ "crossLanguageDefinitionId": "Versioning.Removed.v2" }, { - "$id": "83", + "$id": "72", "kind": "basic", "name": "modelV3", "accessibility": "public", @@ -1063,20 +917,20 @@ ], "doc": "This operation will pass different paths and different request bodies based on different versions.", "operation": { - "$id": "84", + "$id": "73", "name": "modelV3", "resourceName": "Removed", "doc": "This operation will pass different paths and different request bodies based on different versions.", "accessibility": "public", "parameters": [ { - "$id": "85", + "$id": "74", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "31" + "$ref": "20" }, "isApiVersion": false, "optional": false, @@ -1087,12 +941,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.modelV3.contentType" }, { - "$id": "86", + "$id": "75", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "33" + "$ref": "22" }, "isApiVersion": false, "optional": false, @@ -1103,12 +957,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.modelV3.accept" }, { - "$id": "87", + "$id": "76", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "59" + "$ref": "48" }, "isApiVersion": false, "contentTypes": [ @@ -1128,7 +982,7 @@ 200 ], "bodyType": { - "$ref": "59" + "$ref": "48" }, "headers": [], "isErrorResponse": false, @@ -1151,12 +1005,12 @@ }, "parameters": [ { - "$id": "88", + "$id": "77", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "59" + "$ref": "48" }, "location": "Body", "isApiVersion": false, @@ -1168,13 +1022,13 @@ "decorators": [] }, { - "$id": "89", + "$id": "78", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "31" + "$ref": "20" }, "location": "Header", "isApiVersion": false, @@ -1186,12 +1040,12 @@ "decorators": [] }, { - "$id": "90", + "$id": "79", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "33" + "$ref": "22" }, "location": "Header", "isApiVersion": false, @@ -1205,7 +1059,7 @@ ], "response": { "type": { - "$ref": "59" + "$ref": "48" } }, "isOverride": false, @@ -1216,13 +1070,13 @@ ], "parameters": [ { - "$id": "91", + "$id": "80", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "92", + "$id": "81", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1237,13 +1091,13 @@ "crossLanguageDefinitionId": "Versioning.Removed.endpoint" }, { - "$id": "93", + "$id": "82", "kind": "endpoint", "name": "version", "serializedName": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "15" + "$ref": "8" }, "isApiVersion": true, "optional": false, @@ -1251,7 +1105,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "94", + "$id": "83", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1272,14 +1126,14 @@ ], "children": [ { - "$id": "95", + "$id": "84", "kind": "client", "name": "InterfaceV1", "namespace": "Versioning.Removed", "doc": "This operation group should not be generated with latest version.", "methods": [ { - "$id": "96", + "$id": "85", "kind": "basic", "name": "v1InInterface", "accessibility": "public", @@ -1288,19 +1142,19 @@ "v2preview" ], "operation": { - "$id": "97", + "$id": "86", "name": "v1InInterface", "resourceName": "InterfaceV1", "accessibility": "public", "parameters": [ { - "$id": "98", + "$id": "87", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "35" + "$ref": "24" }, "isApiVersion": false, "optional": false, @@ -1311,12 +1165,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.contentType" }, { - "$id": "99", + "$id": "88", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "37" + "$ref": "26" }, "isApiVersion": false, "optional": false, @@ -1327,12 +1181,12 @@ "crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1.v1InInterface.accept" }, { - "$id": "100", + "$id": "89", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "39" + "$ref": "28" }, "isApiVersion": false, "contentTypes": [ @@ -1352,7 +1206,7 @@ 200 ], "bodyType": { - "$ref": "39" + "$ref": "28" }, "headers": [], "isErrorResponse": false, @@ -1375,12 +1229,12 @@ }, "parameters": [ { - "$id": "101", + "$id": "90", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "39" + "$ref": "28" }, "location": "Body", "isApiVersion": false, @@ -1392,13 +1246,13 @@ "decorators": [] }, { - "$id": "102", + "$id": "91", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "35" + "$ref": "24" }, "location": "Header", "isApiVersion": false, @@ -1410,12 +1264,12 @@ "decorators": [] }, { - "$id": "103", + "$id": "92", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "37" + "$ref": "26" }, "location": "Header", "isApiVersion": false, @@ -1429,7 +1283,7 @@ ], "response": { "type": { - "$ref": "39" + "$ref": "28" } }, "isOverride": false, @@ -1440,13 +1294,13 @@ ], "parameters": [ { - "$id": "104", + "$id": "93", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "105", + "$id": "94", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -1461,13 +1315,13 @@ "crossLanguageDefinitionId": "Versioning.Removed.endpoint" }, { - "$id": "106", + "$id": "95", "kind": "endpoint", "name": "version", "serializedName": "version", "doc": "Need to be set as 'v1', 'v2preview' or 'v2' in client.", "type": { - "$ref": "15" + "$ref": "8" }, "isApiVersion": true, "optional": false, @@ -1475,7 +1329,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "107", + "$id": "96", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -1495,7 +1349,7 @@ "v2preview" ], "parent": { - "$ref": "62" + "$ref": "51" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json index 3b824c17342e..ac931e4c074f 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json @@ -26,45 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "OldEnum", - "isGeneratedName": false, - "namespace": "Versioning.RenamedFrom", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "oldEnumMember", - "value": "oldEnumMember", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldEnum", - "apiVersions": [ - "v1" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "decorators": [] } @@ -76,12 +38,12 @@ "decorators": [] }, { - "$id": "7", + "$id": "4", "kind": "enum", "name": "Versions", "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -89,55 +51,15 @@ }, "values": [ { - "$id": "9", + "$id": "6", "kind": "enumvalue", "name": "v1", "value": "v1", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$id": "10", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Versioning.RenamedFrom", - "doc": "The version of the API.", - "valueType": { - "$id": "11", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "12", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "The version v1.", - "enumType": { - "$ref": "10" - }, - "valueType": { - "$ref": "11" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", - "apiVersions": [ - "v1" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "4" }, "doc": "The version v1.", "decorators": [] @@ -153,13 +75,13 @@ ], "constants": [ { - "$id": "13", + "$id": "7", "kind": "constant", "name": "oldOpContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "14", + "$id": "8", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -169,13 +91,13 @@ "decorators": [] }, { - "$id": "15", + "$id": "9", "kind": "constant", "name": "oldOpContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "16", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -185,13 +107,13 @@ "decorators": [] }, { - "$id": "17", + "$id": "11", "kind": "constant", "name": "newOpInNewInterfaceContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "18", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -201,13 +123,13 @@ "decorators": [] }, { - "$id": "19", + "$id": "13", "kind": "constant", "name": "newOpInNewInterfaceContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "20", + "$id": "14", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -219,7 +141,7 @@ ], "models": [ { - "$id": "21", + "$id": "15", "kind": "model", "name": "OldModel", "namespace": "Versioning.RenamedFrom", @@ -228,12 +150,12 @@ "decorators": [], "properties": [ { - "$id": "22", + "$id": "16", "kind": "property", "name": "oldProp", "serializedName": "oldProp", "type": { - "$id": "23", + "$id": "17", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -253,7 +175,7 @@ "isHttpMetadata": false }, { - "$id": "24", + "$id": "18", "kind": "property", "name": "enumProp", "serializedName": "enumProp", @@ -274,29 +196,29 @@ "isHttpMetadata": false }, { - "$id": "25", + "$id": "19", "kind": "property", "name": "unionProp", "serializedName": "unionProp", "type": { - "$id": "26", + "$id": "20", "kind": "union", "name": "OldUnion", "variantTypes": [ { - "$id": "27", + "$id": "21", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "28", + "$id": "22", "kind": "int32", "name": "OldScalar", "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldScalar", "baseType": { - "$id": "29", + "$id": "23", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -326,14 +248,14 @@ ], "clients": [ { - "$id": "30", + "$id": "24", "kind": "client", "name": "RenamedFromClient", "namespace": "Versioning.RenamedFrom", "doc": "Test for the `@renamedFrom` decorator.", "methods": [ { - "$id": "31", + "$id": "25", "kind": "basic", "name": "oldOp", "accessibility": "public", @@ -341,18 +263,18 @@ "v1" ], "operation": { - "$id": "32", + "$id": "26", "name": "oldOp", "resourceName": "RenamedFrom", "accessibility": "public", "parameters": [ { - "$id": "33", + "$id": "27", "kind": "query", "name": "oldQuery", "serializedName": "oldQuery", "type": { - "$id": "34", + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -367,13 +289,13 @@ "readOnly": false }, { - "$id": "35", + "$id": "29", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "13" + "$ref": "7" }, "isApiVersion": false, "optional": false, @@ -384,12 +306,12 @@ "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.contentType" }, { - "$id": "36", + "$id": "30", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "9" }, "isApiVersion": false, "optional": false, @@ -400,12 +322,12 @@ "crossLanguageDefinitionId": "Versioning.RenamedFrom.oldOp.accept" }, { - "$id": "37", + "$id": "31", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "21" + "$ref": "15" }, "isApiVersion": false, "contentTypes": [ @@ -425,7 +347,7 @@ 200 ], "bodyType": { - "$ref": "21" + "$ref": "15" }, "headers": [], "isErrorResponse": false, @@ -448,12 +370,12 @@ }, "parameters": [ { - "$id": "38", + "$id": "32", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "21" + "$ref": "15" }, "location": "Body", "isApiVersion": false, @@ -465,12 +387,12 @@ "decorators": [] }, { - "$id": "39", + "$id": "33", "kind": "method", "name": "oldQuery", "serializedName": "oldQuery", "type": { - "$id": "40", + "$id": "34", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -486,13 +408,13 @@ "decorators": [] }, { - "$id": "41", + "$id": "35", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "13" + "$ref": "7" }, "location": "Header", "isApiVersion": false, @@ -504,12 +426,12 @@ "decorators": [] }, { - "$id": "42", + "$id": "36", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "15" + "$ref": "9" }, "location": "Header", "isApiVersion": false, @@ -523,7 +445,7 @@ ], "response": { "type": { - "$ref": "21" + "$ref": "15" } }, "isOverride": false, @@ -534,13 +456,13 @@ ], "parameters": [ { - "$id": "43", + "$id": "37", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "44", + "$id": "38", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -555,13 +477,13 @@ "crossLanguageDefinitionId": "Versioning.RenamedFrom.endpoint" }, { - "$id": "45", + "$id": "39", "kind": "endpoint", "name": "version", "serializedName": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "7" + "$ref": "4" }, "isApiVersion": true, "optional": false, @@ -569,7 +491,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "46", + "$id": "40", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -589,13 +511,13 @@ ], "children": [ { - "$id": "47", + "$id": "41", "kind": "client", "name": "OldInterface", "namespace": "Versioning.RenamedFrom", "methods": [ { - "$id": "48", + "$id": "42", "kind": "basic", "name": "newOpInNewInterface", "accessibility": "public", @@ -603,19 +525,19 @@ "v1" ], "operation": { - "$id": "49", + "$id": "43", "name": "newOpInNewInterface", "resourceName": "OldInterface", "accessibility": "public", "parameters": [ { - "$id": "50", + "$id": "44", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "17" + "$ref": "11" }, "isApiVersion": false, "optional": false, @@ -626,12 +548,12 @@ "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface.contentType" }, { - "$id": "51", + "$id": "45", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "13" }, "isApiVersion": false, "optional": false, @@ -642,12 +564,12 @@ "crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface.newOpInNewInterface.accept" }, { - "$id": "52", + "$id": "46", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "21" + "$ref": "15" }, "isApiVersion": false, "contentTypes": [ @@ -667,7 +589,7 @@ 200 ], "bodyType": { - "$ref": "21" + "$ref": "15" }, "headers": [], "isErrorResponse": false, @@ -690,12 +612,12 @@ }, "parameters": [ { - "$id": "53", + "$id": "47", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "21" + "$ref": "15" }, "location": "Body", "isApiVersion": false, @@ -707,13 +629,13 @@ "decorators": [] }, { - "$id": "54", + "$id": "48", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "17" + "$ref": "11" }, "location": "Header", "isApiVersion": false, @@ -725,12 +647,12 @@ "decorators": [] }, { - "$id": "55", + "$id": "49", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "19" + "$ref": "13" }, "location": "Header", "isApiVersion": false, @@ -744,7 +666,7 @@ ], "response": { "type": { - "$ref": "21" + "$ref": "15" } }, "isOverride": false, @@ -755,13 +677,13 @@ ], "parameters": [ { - "$id": "56", + "$id": "50", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "57", + "$id": "51", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -776,13 +698,13 @@ "crossLanguageDefinitionId": "Versioning.RenamedFrom.endpoint" }, { - "$id": "58", + "$id": "52", "kind": "endpoint", "name": "version", "serializedName": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "7" + "$ref": "4" }, "isApiVersion": true, "optional": false, @@ -790,7 +712,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "59", + "$id": "53", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -809,7 +731,7 @@ "v1" ], "parent": { - "$ref": "30" + "$ref": "24" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json index 19a5cc9b0774..985465c61845 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json @@ -27,46 +27,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "NewEnum", - "isGeneratedName": false, - "namespace": "Versioning.RenamedFrom", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "newEnumMember", - "value": "newEnumMember", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,Output,Json", - "access": "public", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewEnum", - "apiVersions": [ - "v1", - "v2" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "decorators": [] } @@ -78,12 +39,12 @@ "decorators": [] }, { - "$id": "7", + "$id": "4", "kind": "enum", "name": "Versions", "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -91,84 +52,29 @@ }, "values": [ { - "$id": "9", + "$id": "6", "kind": "enumvalue", "name": "v1", "value": "v1", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$id": "10", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Versioning.RenamedFrom", - "doc": "The version of the API.", - "valueType": { - "$id": "11", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "12", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "The version v1.", - "enumType": { - "$ref": "10" - }, - "valueType": { - "$ref": "11" - } - }, - { - "$id": "13", - "kind": "enumvalue", - "decorators": [], - "name": "v2", - "value": "v2", - "doc": "The version v2.", - "enumType": { - "$ref": "10" - }, - "valueType": { - "$ref": "11" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Versioning.RenamedFrom.Versions", - "apiVersions": [ - "v1", - "v2" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "4" }, "doc": "The version v1.", "decorators": [] }, { - "$id": "14", + "$id": "7", "kind": "enumvalue", "name": "v2", "value": "v2", "valueType": { - "$ref": "8" + "$ref": "5" }, "enumType": { - "$ref": "10" + "$ref": "4" }, "doc": "The version v2.", "decorators": [] @@ -184,13 +90,13 @@ ], "constants": [ { - "$id": "15", + "$id": "8", "kind": "constant", "name": "newOpContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "16", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -200,13 +106,13 @@ "decorators": [] }, { - "$id": "17", + "$id": "10", "kind": "constant", "name": "newOpContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "18", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -216,13 +122,13 @@ "decorators": [] }, { - "$id": "19", + "$id": "12", "kind": "constant", "name": "newOpInNewInterfaceContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "20", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -232,13 +138,13 @@ "decorators": [] }, { - "$id": "21", + "$id": "14", "kind": "constant", "name": "newOpInNewInterfaceContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "22", + "$id": "15", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -250,7 +156,7 @@ ], "models": [ { - "$id": "23", + "$id": "16", "kind": "model", "name": "NewModel", "namespace": "Versioning.RenamedFrom", @@ -259,12 +165,12 @@ "decorators": [], "properties": [ { - "$id": "24", + "$id": "17", "kind": "property", "name": "newProp", "serializedName": "newProp", "type": { - "$id": "25", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -284,7 +190,7 @@ "isHttpMetadata": false }, { - "$id": "26", + "$id": "19", "kind": "property", "name": "enumProp", "serializedName": "enumProp", @@ -305,29 +211,29 @@ "isHttpMetadata": false }, { - "$id": "27", + "$id": "20", "kind": "property", "name": "unionProp", "serializedName": "unionProp", "type": { - "$id": "28", + "$id": "21", "kind": "union", "name": "NewUnion", "variantTypes": [ { - "$id": "29", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", "decorators": [] }, { - "$id": "30", + "$id": "23", "kind": "int32", "name": "NewScalar", "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewScalar", "baseType": { - "$id": "31", + "$id": "24", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -357,14 +263,14 @@ ], "clients": [ { - "$id": "32", + "$id": "25", "kind": "client", "name": "RenamedFromClient", "namespace": "Versioning.RenamedFrom", "doc": "Test for the `@renamedFrom` decorator.", "methods": [ { - "$id": "33", + "$id": "26", "kind": "basic", "name": "newOp", "accessibility": "public", @@ -373,18 +279,18 @@ "v2" ], "operation": { - "$id": "34", + "$id": "27", "name": "newOp", "resourceName": "RenamedFrom", "accessibility": "public", "parameters": [ { - "$id": "35", + "$id": "28", "kind": "query", "name": "newQuery", "serializedName": "newQuery", "type": { - "$id": "36", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -399,13 +305,13 @@ "readOnly": false }, { - "$id": "37", + "$id": "30", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "15" + "$ref": "8" }, "isApiVersion": false, "optional": false, @@ -416,12 +322,12 @@ "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.contentType" }, { - "$id": "38", + "$id": "31", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "17" + "$ref": "10" }, "isApiVersion": false, "optional": false, @@ -432,12 +338,12 @@ "crossLanguageDefinitionId": "Versioning.RenamedFrom.newOp.accept" }, { - "$id": "39", + "$id": "32", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "23" + "$ref": "16" }, "isApiVersion": false, "contentTypes": [ @@ -457,7 +363,7 @@ 200 ], "bodyType": { - "$ref": "23" + "$ref": "16" }, "headers": [], "isErrorResponse": false, @@ -480,12 +386,12 @@ }, "parameters": [ { - "$id": "40", + "$id": "33", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "23" + "$ref": "16" }, "location": "Body", "isApiVersion": false, @@ -497,12 +403,12 @@ "decorators": [] }, { - "$id": "41", + "$id": "34", "kind": "method", "name": "newQuery", "serializedName": "newQuery", "type": { - "$id": "42", + "$id": "35", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -518,13 +424,13 @@ "decorators": [] }, { - "$id": "43", + "$id": "36", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "15" + "$ref": "8" }, "location": "Header", "isApiVersion": false, @@ -536,12 +442,12 @@ "decorators": [] }, { - "$id": "44", + "$id": "37", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "17" + "$ref": "10" }, "location": "Header", "isApiVersion": false, @@ -555,7 +461,7 @@ ], "response": { "type": { - "$ref": "23" + "$ref": "16" } }, "isOverride": false, @@ -566,13 +472,13 @@ ], "parameters": [ { - "$id": "45", + "$id": "38", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "46", + "$id": "39", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -587,13 +493,13 @@ "crossLanguageDefinitionId": "Versioning.RenamedFrom.endpoint" }, { - "$id": "47", + "$id": "40", "kind": "endpoint", "name": "version", "serializedName": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "7" + "$ref": "4" }, "isApiVersion": true, "optional": false, @@ -601,7 +507,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "48", + "$id": "41", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -622,13 +528,13 @@ ], "children": [ { - "$id": "49", + "$id": "42", "kind": "client", "name": "NewInterface", "namespace": "Versioning.RenamedFrom", "methods": [ { - "$id": "50", + "$id": "43", "kind": "basic", "name": "newOpInNewInterface", "accessibility": "public", @@ -637,19 +543,19 @@ "v2" ], "operation": { - "$id": "51", + "$id": "44", "name": "newOpInNewInterface", "resourceName": "NewInterface", "accessibility": "public", "parameters": [ { - "$id": "52", + "$id": "45", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "19" + "$ref": "12" }, "isApiVersion": false, "optional": false, @@ -660,12 +566,12 @@ "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface.contentType" }, { - "$id": "53", + "$id": "46", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "21" + "$ref": "14" }, "isApiVersion": false, "optional": false, @@ -676,12 +582,12 @@ "crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface.newOpInNewInterface.accept" }, { - "$id": "54", + "$id": "47", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "23" + "$ref": "16" }, "isApiVersion": false, "contentTypes": [ @@ -701,7 +607,7 @@ 200 ], "bodyType": { - "$ref": "23" + "$ref": "16" }, "headers": [], "isErrorResponse": false, @@ -724,12 +630,12 @@ }, "parameters": [ { - "$id": "55", + "$id": "48", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "23" + "$ref": "16" }, "location": "Body", "isApiVersion": false, @@ -741,13 +647,13 @@ "decorators": [] }, { - "$id": "56", + "$id": "49", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "19" + "$ref": "12" }, "location": "Header", "isApiVersion": false, @@ -759,12 +665,12 @@ "decorators": [] }, { - "$id": "57", + "$id": "50", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "21" + "$ref": "14" }, "location": "Header", "isApiVersion": false, @@ -778,7 +684,7 @@ ], "response": { "type": { - "$ref": "23" + "$ref": "16" } }, "isOverride": false, @@ -789,13 +695,13 @@ ], "parameters": [ { - "$id": "58", + "$id": "51", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "59", + "$id": "52", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -810,13 +716,13 @@ "crossLanguageDefinitionId": "Versioning.RenamedFrom.endpoint" }, { - "$id": "60", + "$id": "53", "kind": "endpoint", "name": "version", "serializedName": "version", "doc": "Need to be set as 'v1' or 'v2' in client.", "type": { - "$ref": "7" + "$ref": "4" }, "isApiVersion": true, "optional": false, @@ -824,7 +730,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "61", + "$id": "54", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" @@ -844,7 +750,7 @@ "v2" ], "parent": { - "$ref": "32" + "$ref": "25" } } ] diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json index 7de416853abb..3003bbae3cf8 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json @@ -26,47 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Versioning.ReturnTypeChangedFrom", - "doc": "The version of the API.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "The version v1.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.Versions", - "apiVersions": [ - "v1" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "The version v1.", "decorators": [] @@ -82,13 +42,13 @@ ], "constants": [ { - "$id": "7", + "$id": "4", "kind": "constant", "name": "TestRequestContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -98,13 +58,13 @@ "decorators": [] }, { - "$id": "9", + "$id": "6", "kind": "constant", "name": "testContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "10", + "$id": "7", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -114,13 +74,13 @@ "decorators": [] }, { - "$id": "11", + "$id": "8", "kind": "constant", "name": "TestRequestContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "12", + "$id": "9", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -130,13 +90,13 @@ "decorators": [] }, { - "$id": "13", + "$id": "10", "kind": "constant", "name": "TestRequestContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "14", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -149,14 +109,14 @@ "models": [], "clients": [ { - "$id": "15", + "$id": "12", "kind": "client", "name": "ReturnTypeChangedFromClient", "namespace": "Versioning.ReturnTypeChangedFrom", "doc": "Test for the `@returnTypeChangedFrom` decorator.", "methods": [ { - "$id": "16", + "$id": "13", "kind": "basic", "name": "test", "accessibility": "public", @@ -164,18 +124,18 @@ "v1" ], "operation": { - "$id": "17", + "$id": "14", "name": "test", "resourceName": "ReturnTypeChangedFrom", "accessibility": "public", "parameters": [ { - "$id": "18", + "$id": "15", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "7" + "$ref": "4" }, "isApiVersion": false, "optional": false, @@ -186,12 +146,12 @@ "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.contentType" }, { - "$id": "19", + "$id": "16", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "9" + "$ref": "6" }, "isApiVersion": false, "optional": false, @@ -202,12 +162,12 @@ "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.accept" }, { - "$id": "20", + "$id": "17", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$id": "21", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -231,7 +191,7 @@ 200 ], "bodyType": { - "$id": "22", + "$id": "19", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -242,7 +202,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "11" + "$ref": "8" } } ], @@ -266,12 +226,12 @@ }, "parameters": [ { - "$id": "23", + "$id": "20", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "13" + "$ref": "10" }, "location": "Header", "isApiVersion": false, @@ -283,12 +243,12 @@ "decorators": [] }, { - "$id": "24", + "$id": "21", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$id": "25", + "$id": "22", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -304,12 +264,12 @@ "decorators": [] }, { - "$id": "26", + "$id": "23", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "9" + "$ref": "6" }, "location": "Header", "isApiVersion": false, @@ -323,7 +283,7 @@ ], "response": { "type": { - "$ref": "22" + "$ref": "19" } }, "isOverride": false, @@ -334,13 +294,13 @@ ], "parameters": [ { - "$id": "27", + "$id": "24", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "28", + "$id": "25", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -355,7 +315,7 @@ "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.endpoint" }, { - "$id": "29", + "$id": "26", "kind": "endpoint", "name": "version", "serializedName": "version", @@ -369,7 +329,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "30", + "$id": "27", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json index 163d82885831..579664286168 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json @@ -27,68 +27,13 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Versioning.ReturnTypeChangedFrom", - "doc": "The version of the API.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "The version v1.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "v2", - "value": "v2", - "doc": "The version v2.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.Versions", - "apiVersions": [ - "v1", - "v2" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "The version v1.", "decorators": [] }, { - "$id": "8", + "$id": "4", "kind": "enumvalue", "name": "v2", "value": "v2", @@ -96,7 +41,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "The version v2.", "decorators": [] @@ -112,13 +57,13 @@ ], "constants": [ { - "$id": "9", + "$id": "5", "kind": "constant", "name": "TestRequestContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "10", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -128,13 +73,13 @@ "decorators": [] }, { - "$id": "11", + "$id": "7", "kind": "constant", "name": "testContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "12", + "$id": "8", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -144,13 +89,13 @@ "decorators": [] }, { - "$id": "13", + "$id": "9", "kind": "constant", "name": "TestRequestContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "14", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -160,13 +105,13 @@ "decorators": [] }, { - "$id": "15", + "$id": "11", "kind": "constant", "name": "TestRequestContentType2", "namespace": "", "usage": "None", "valueType": { - "$id": "16", + "$id": "12", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -179,14 +124,14 @@ "models": [], "clients": [ { - "$id": "17", + "$id": "13", "kind": "client", "name": "ReturnTypeChangedFromClient", "namespace": "Versioning.ReturnTypeChangedFrom", "doc": "Test for the `@returnTypeChangedFrom` decorator.", "methods": [ { - "$id": "18", + "$id": "14", "kind": "basic", "name": "test", "accessibility": "public", @@ -195,18 +140,18 @@ "v2" ], "operation": { - "$id": "19", + "$id": "15", "name": "test", "resourceName": "ReturnTypeChangedFrom", "accessibility": "public", "parameters": [ { - "$id": "20", + "$id": "16", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "9" + "$ref": "5" }, "isApiVersion": false, "optional": false, @@ -217,12 +162,12 @@ "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.contentType" }, { - "$id": "21", + "$id": "17", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "11" + "$ref": "7" }, "isApiVersion": false, "optional": false, @@ -233,12 +178,12 @@ "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.test.accept" }, { - "$id": "22", + "$id": "18", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$id": "23", + "$id": "19", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -262,7 +207,7 @@ 200 ], "bodyType": { - "$id": "24", + "$id": "20", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -273,7 +218,7 @@ "name": "contentType", "nameInResponse": "content-type", "type": { - "$ref": "13" + "$ref": "9" } } ], @@ -297,12 +242,12 @@ }, "parameters": [ { - "$id": "25", + "$id": "21", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "type": { - "$ref": "15" + "$ref": "11" }, "location": "Header", "isApiVersion": false, @@ -314,12 +259,12 @@ "decorators": [] }, { - "$id": "26", + "$id": "22", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$id": "27", + "$id": "23", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -335,12 +280,12 @@ "decorators": [] }, { - "$id": "28", + "$id": "24", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "11" + "$ref": "7" }, "location": "Header", "isApiVersion": false, @@ -354,7 +299,7 @@ ], "response": { "type": { - "$ref": "24" + "$ref": "20" } }, "isOverride": false, @@ -365,13 +310,13 @@ ], "parameters": [ { - "$id": "29", + "$id": "25", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "30", + "$id": "26", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -386,7 +331,7 @@ "crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.endpoint" }, { - "$id": "31", + "$id": "27", "kind": "endpoint", "name": "version", "serializedName": "version", @@ -400,7 +345,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "32", + "$id": "28", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json index 1adfe3c45038..4f86b9e86ee5 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json @@ -26,47 +26,7 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Versioning.TypeChangedFrom", - "doc": "The version of the API.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "The version v1.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.Versions", - "apiVersions": [ - "v1" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "The version v1.", "decorators": [] @@ -82,13 +42,13 @@ ], "constants": [ { - "$id": "7", + "$id": "4", "kind": "constant", "name": "testContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "8", + "$id": "5", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -98,13 +58,13 @@ "decorators": [] }, { - "$id": "9", + "$id": "6", "kind": "constant", "name": "testContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "10", + "$id": "7", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -116,7 +76,7 @@ ], "models": [ { - "$id": "11", + "$id": "8", "kind": "model", "name": "TestModel", "namespace": "Versioning.TypeChangedFrom", @@ -125,12 +85,12 @@ "decorators": [], "properties": [ { - "$id": "12", + "$id": "9", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "13", + "$id": "10", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -150,12 +110,12 @@ "isHttpMetadata": false }, { - "$id": "14", + "$id": "11", "kind": "property", "name": "changedProp", "serializedName": "changedProp", "type": { - "$id": "15", + "$id": "12", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -179,14 +139,14 @@ ], "clients": [ { - "$id": "16", + "$id": "13", "kind": "client", "name": "TypeChangedFromClient", "namespace": "Versioning.TypeChangedFrom", "doc": "Test for the `@typeChangedFrom` decorator.", "methods": [ { - "$id": "17", + "$id": "14", "kind": "basic", "name": "test", "accessibility": "public", @@ -194,18 +154,18 @@ "v1" ], "operation": { - "$id": "18", + "$id": "15", "name": "test", "resourceName": "TypeChangedFrom", "accessibility": "public", "parameters": [ { - "$id": "19", + "$id": "16", "kind": "query", "name": "param", "serializedName": "param", "type": { - "$id": "20", + "$id": "17", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -220,13 +180,13 @@ "readOnly": false }, { - "$id": "21", + "$id": "18", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "7" + "$ref": "4" }, "isApiVersion": false, "optional": false, @@ -237,12 +197,12 @@ "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.contentType" }, { - "$id": "22", + "$id": "19", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "9" + "$ref": "6" }, "isApiVersion": false, "optional": false, @@ -253,12 +213,12 @@ "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.accept" }, { - "$id": "23", + "$id": "20", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "11" + "$ref": "8" }, "isApiVersion": false, "contentTypes": [ @@ -278,7 +238,7 @@ 200 ], "bodyType": { - "$ref": "11" + "$ref": "8" }, "headers": [], "isErrorResponse": false, @@ -301,12 +261,12 @@ }, "parameters": [ { - "$id": "24", + "$id": "21", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "11" + "$ref": "8" }, "location": "Body", "isApiVersion": false, @@ -318,12 +278,12 @@ "decorators": [] }, { - "$id": "25", + "$id": "22", "kind": "method", "name": "param", "serializedName": "param", "type": { - "$id": "26", + "$id": "23", "kind": "int32", "name": "int32", "crossLanguageDefinitionId": "TypeSpec.int32", @@ -339,13 +299,13 @@ "decorators": [] }, { - "$id": "27", + "$id": "24", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "7" + "$ref": "4" }, "location": "Header", "isApiVersion": false, @@ -357,12 +317,12 @@ "decorators": [] }, { - "$id": "28", + "$id": "25", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "9" + "$ref": "6" }, "location": "Header", "isApiVersion": false, @@ -376,7 +336,7 @@ ], "response": { "type": { - "$ref": "11" + "$ref": "8" } }, "isOverride": false, @@ -387,13 +347,13 @@ ], "parameters": [ { - "$id": "29", + "$id": "26", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "30", + "$id": "27", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -408,7 +368,7 @@ "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.endpoint" }, { - "$id": "31", + "$id": "28", "kind": "endpoint", "name": "version", "serializedName": "version", @@ -422,7 +382,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "32", + "$id": "29", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json index 8dda92dc26f1..7383d160fccd 100644 --- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json +++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json @@ -27,68 +27,13 @@ "$ref": "2" }, "enumType": { - "$id": "4", - "kind": "enum", - "decorators": [], - "name": "Versions", - "isGeneratedName": false, - "namespace": "Versioning.TypeChangedFrom", - "doc": "The version of the API.", - "valueType": { - "$id": "5", - "kind": "string", - "decorators": [], - "name": "string", - "doc": "A sequence of textual characters.", - "crossLanguageDefinitionId": "TypeSpec.string" - }, - "values": [ - { - "$id": "6", - "kind": "enumvalue", - "decorators": [], - "name": "v1", - "value": "v1", - "doc": "The version v1.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - }, - { - "$id": "7", - "kind": "enumvalue", - "decorators": [], - "name": "v2", - "value": "v2", - "doc": "The version v2.", - "enumType": { - "$ref": "4" - }, - "valueType": { - "$ref": "5" - } - } - ], - "isFixed": true, - "isFlags": false, - "usage": "Input,ApiVersionEnum", - "access": "public", - "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.Versions", - "apiVersions": [ - "v1", - "v2" - ], - "isUnionAsEnum": false, - "__accessSet": true + "$ref": "1" }, "doc": "The version v1.", "decorators": [] }, { - "$id": "8", + "$id": "4", "kind": "enumvalue", "name": "v2", "value": "v2", @@ -96,7 +41,7 @@ "$ref": "2" }, "enumType": { - "$ref": "4" + "$ref": "1" }, "doc": "The version v2.", "decorators": [] @@ -112,13 +57,13 @@ ], "constants": [ { - "$id": "9", + "$id": "5", "kind": "constant", "name": "testContentType", "namespace": "", "usage": "None", "valueType": { - "$id": "10", + "$id": "6", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -128,13 +73,13 @@ "decorators": [] }, { - "$id": "11", + "$id": "7", "kind": "constant", "name": "testContentType1", "namespace": "", "usage": "None", "valueType": { - "$id": "12", + "$id": "8", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -146,7 +91,7 @@ ], "models": [ { - "$id": "13", + "$id": "9", "kind": "model", "name": "TestModel", "namespace": "Versioning.TypeChangedFrom", @@ -155,12 +100,12 @@ "decorators": [], "properties": [ { - "$id": "14", + "$id": "10", "kind": "property", "name": "prop", "serializedName": "prop", "type": { - "$id": "15", + "$id": "11", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -180,12 +125,12 @@ "isHttpMetadata": false }, { - "$id": "16", + "$id": "12", "kind": "property", "name": "changedProp", "serializedName": "changedProp", "type": { - "$id": "17", + "$id": "13", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -209,14 +154,14 @@ ], "clients": [ { - "$id": "18", + "$id": "14", "kind": "client", "name": "TypeChangedFromClient", "namespace": "Versioning.TypeChangedFrom", "doc": "Test for the `@typeChangedFrom` decorator.", "methods": [ { - "$id": "19", + "$id": "15", "kind": "basic", "name": "test", "accessibility": "public", @@ -225,18 +170,18 @@ "v2" ], "operation": { - "$id": "20", + "$id": "16", "name": "test", "resourceName": "TypeChangedFrom", "accessibility": "public", "parameters": [ { - "$id": "21", + "$id": "17", "kind": "query", "name": "param", "serializedName": "param", "type": { - "$id": "22", + "$id": "18", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -251,13 +196,13 @@ "readOnly": false }, { - "$id": "23", + "$id": "19", "kind": "header", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "9" + "$ref": "5" }, "isApiVersion": false, "optional": false, @@ -268,12 +213,12 @@ "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.contentType" }, { - "$id": "24", + "$id": "20", "kind": "header", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "11" + "$ref": "7" }, "isApiVersion": false, "optional": false, @@ -284,12 +229,12 @@ "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.test.accept" }, { - "$id": "25", + "$id": "21", "kind": "body", "name": "body", "serializedName": "body", "type": { - "$ref": "13" + "$ref": "9" }, "isApiVersion": false, "contentTypes": [ @@ -309,7 +254,7 @@ 200 ], "bodyType": { - "$ref": "13" + "$ref": "9" }, "headers": [], "isErrorResponse": false, @@ -332,12 +277,12 @@ }, "parameters": [ { - "$id": "26", + "$id": "22", "kind": "method", "name": "body", "serializedName": "body", "type": { - "$ref": "13" + "$ref": "9" }, "location": "Body", "isApiVersion": false, @@ -349,12 +294,12 @@ "decorators": [] }, { - "$id": "27", + "$id": "23", "kind": "method", "name": "param", "serializedName": "param", "type": { - "$id": "28", + "$id": "24", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string", @@ -370,13 +315,13 @@ "decorators": [] }, { - "$id": "29", + "$id": "25", "kind": "method", "name": "contentType", "serializedName": "Content-Type", "doc": "Body parameter's content type. Known values are application/json", "type": { - "$ref": "9" + "$ref": "5" }, "location": "Header", "isApiVersion": false, @@ -388,12 +333,12 @@ "decorators": [] }, { - "$id": "30", + "$id": "26", "kind": "method", "name": "accept", "serializedName": "Accept", "type": { - "$ref": "11" + "$ref": "7" }, "location": "Header", "isApiVersion": false, @@ -407,7 +352,7 @@ ], "response": { "type": { - "$ref": "13" + "$ref": "9" } }, "isOverride": false, @@ -418,13 +363,13 @@ ], "parameters": [ { - "$id": "31", + "$id": "27", "kind": "endpoint", "name": "endpoint", "serializedName": "endpoint", "doc": "Need to be set as 'http://localhost:3000' in client.", "type": { - "$id": "32", + "$id": "28", "kind": "url", "name": "endpoint", "crossLanguageDefinitionId": "TypeSpec.url" @@ -439,7 +384,7 @@ "crossLanguageDefinitionId": "Versioning.TypeChangedFrom.endpoint" }, { - "$id": "33", + "$id": "29", "kind": "endpoint", "name": "version", "serializedName": "version", @@ -453,7 +398,7 @@ "isEndpoint": false, "defaultValue": { "type": { - "$id": "34", + "$id": "30", "kind": "string", "name": "string", "crossLanguageDefinitionId": "TypeSpec.string" diff --git a/eng/packages/http-client-csharp/package-lock.json b/eng/packages/http-client-csharp/package-lock.json index 63c9315cc696..9a6388e49a7d 100644 --- a/eng/packages/http-client-csharp/package-lock.json +++ b/eng/packages/http-client-csharp/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@typespec/http-client-csharp": "1.0.0-alpha.20251009.4" + "@typespec/http-client-csharp": "1.0.0-alpha.20251009.7" }, "devDependencies": { "@azure-tools/azure-http-specs": "0.1.0-alpha.28", @@ -2785,9 +2785,9 @@ } }, "node_modules/@typespec/http-client-csharp": { - "version": "1.0.0-alpha.20251009.4", - "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251009.4.tgz", - "integrity": "sha512-jgNhG5iG3fzevmaekb4h8nVIWJ+3rj4CiH6554fAkjrBpamR3FPr70uohriSucz0e8sbRht+QJmBT6jjXA3hJA==", + "version": "1.0.0-alpha.20251009.7", + "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251009.7.tgz", + "integrity": "sha512-o1ZHLQLFVSRjDQVxEdwzfWelpLmzzUPcP4JJLz5MYIISDRUxw65T1ECoq1OUCPa4bCL7rBoRwcKeuCPL9yFiIw==", "license": "MIT", "peerDependencies": { "@azure-tools/typespec-client-generator-core": ">=0.60.0 < 0.61.0 || ~0.61.0-0", diff --git a/eng/packages/http-client-csharp/package.json b/eng/packages/http-client-csharp/package.json index 2b76a3cf9666..b5355497a166 100644 --- a/eng/packages/http-client-csharp/package.json +++ b/eng/packages/http-client-csharp/package.json @@ -38,7 +38,7 @@ "dist/generator/**" ], "dependencies": { - "@typespec/http-client-csharp": "1.0.0-alpha.20251009.4" + "@typespec/http-client-csharp": "1.0.0-alpha.20251009.7" }, "devDependencies": { "@azure-tools/azure-http-specs": "0.1.0-alpha.28",