From 60942bd24446e22a4cbbd953d17d97e56d2c4eec Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 25 Dec 2023 06:08:10 -0800 Subject: [PATCH] Update AutoRest C# version to 3.0.0-beta.20231225.2 (#40891) * Update Generator Version 3.0.0-beta.20231225.2 * Update SDK codes co_da_1 --- eng/Packages.Data.props | 2 +- eng/emitter-package-lock.json | 16 +- eng/emitter-package.json | 8 +- .../src/Generated/tspCodeModel.json | 237 +++++++++++++----- 4 files changed, 181 insertions(+), 82 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index d1be936973ebc..96d91de1429f4 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -176,7 +176,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index 6a94220d32cc3..720637e615969 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20231224.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20231225.2" }, "devDependencies": { "@azure-tools/typespec-azure-core": "0.37.0", @@ -17,9 +17,9 @@ } }, "node_modules/@autorest/csharp": { - "version": "3.0.0-beta.20231224.1", - "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20231224.1.tgz", - "integrity": "sha512-Dr65LwIu1tZ8gE5YEY3wwWe33ftCPmeuZkwXm7CzYXH5V1XvJ2SXXwlPjPKoQvtmXhCebzgJT+es7tD7z/aYyA==" + "version": "3.0.0-beta.20231225.2", + "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20231225.2.tgz", + "integrity": "sha512-CYma5ttfXr0f5EYAY8uSjMoDbdcOa6LhTRqxntkEwvBjRETWWDs22PeP0rvNIIN9FTkQcgFZhr5PhGBBqKhHgA==" }, "node_modules/@azure-tools/typespec-azure-core": { "version": "0.37.0", @@ -55,11 +55,11 @@ } }, "node_modules/@azure-tools/typespec-csharp": { - "version": "0.2.0-beta.20231224.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20231224.1.tgz", - "integrity": "sha512-2G9Wgn63mTKgulbMT8Nvw+7AI+abdCttUUcgZyQ+ssclHzR3b1pgT2+oQODhiqGwqtYYPky3NLKWUqUFguW4qg==", + "version": "0.2.0-beta.20231225.2", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20231225.2.tgz", + "integrity": "sha512-rQ2FKJRhXRkmlYktHG/JGGlv3DvLvqLuSSvDhHKdQMBT2/U0E/GGsHlKIxo+b+46LYkln7fRptnXXlPGt2eWvA==", "dependencies": { - "@autorest/csharp": "3.0.0-beta.20231224.1", + "@autorest/csharp": "3.0.0-beta.20231225.2", "json-serialize-refs": "0.1.0-0", "winston": "^3.8.2" }, diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 867ec32e192ef..eaef921b53c41 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,14 +1,14 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20231224.1" + "@azure-tools/typespec-csharp": "0.2.0-beta.20231225.2" }, "devDependencies": { - "@typespec/http": "0.51.0", - "@typespec/versioning": "0.51.0", "@azure-tools/typespec-azure-core": "0.37.0", + "@typespec/rest": "0.51.0", "@typespec/compiler": "0.51.0", + "@typespec/http": "0.51.0", "@azure-tools/typespec-client-generator-core": "0.37.0", - "@typespec/rest": "0.51.0" + "@typespec/versioning": "0.51.0" } } diff --git a/sdk/communication/Azure.Communication.JobRouter/src/Generated/tspCodeModel.json b/sdk/communication/Azure.Communication.JobRouter/src/Generated/tspCodeModel.json index 03008a7647b1c..8463028a72c26 100644 --- a/sdk/communication/Azure.Communication.JobRouter/src/Generated/tspCodeModel.json +++ b/sdk/communication/Azure.Communication.JobRouter/src/Generated/tspCodeModel.json @@ -4375,7 +4375,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] }, { "$id": "542", @@ -4412,7 +4415,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "PATCH", @@ -4524,7 +4530,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "GET", @@ -4609,7 +4618,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "GET", @@ -4899,7 +4911,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] }, { "$id": "593", @@ -4936,7 +4951,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "PATCH", @@ -5048,7 +5066,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "GET", @@ -5133,7 +5154,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "GET", @@ -5423,7 +5447,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] }, { "$id": "644", @@ -5460,7 +5487,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "PATCH", @@ -5572,7 +5602,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "GET", @@ -5657,7 +5690,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "GET", @@ -5947,7 +5983,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] }, { "$id": "695", @@ -5984,7 +6023,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "PATCH", @@ -6096,7 +6138,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "GET", @@ -6181,7 +6226,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "GET", @@ -6482,7 +6530,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] }, { "$id": "748", @@ -6519,7 +6570,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "PATCH", @@ -6631,7 +6685,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "GET", @@ -6778,8 +6835,8 @@ }, { "$id": "775", - "Name": "contentType", - "NameInRequest": "Content-Type", + "Name": "accept", + "NameInRequest": "Accept", "Type": { "$id": "776", "Name": "String", @@ -6789,7 +6846,7 @@ "Location": "Header", "IsApiVersion": false, "IsResourceParameter": false, - "IsContentType": true, + "IsContentType": false, "IsRequired": true, "IsEndpoint": false, "SkipUrlEncoding": false, @@ -6805,8 +6862,8 @@ }, { "$id": "778", - "Name": "accept", - "NameInRequest": "Accept", + "Name": "contentType", + "NameInRequest": "Content-Type", "Type": { "$id": "779", "Name": "String", @@ -6816,7 +6873,7 @@ "Location": "Header", "IsApiVersion": false, "IsResourceParameter": false, - "IsContentType": false, + "IsContentType": true, "IsRequired": true, "IsEndpoint": false, "SkipUrlEncoding": false, @@ -6842,7 +6899,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "POST", @@ -6911,8 +6971,8 @@ }, { "$id": "786", - "Name": "contentType", - "NameInRequest": "Content-Type", + "Name": "accept", + "NameInRequest": "Accept", "Type": { "$id": "787", "Name": "String", @@ -6922,7 +6982,7 @@ "Location": "Header", "IsApiVersion": false, "IsResourceParameter": false, - "IsContentType": true, + "IsContentType": false, "IsRequired": true, "IsEndpoint": false, "SkipUrlEncoding": false, @@ -6938,8 +6998,8 @@ }, { "$id": "789", - "Name": "accept", - "NameInRequest": "Accept", + "Name": "contentType", + "NameInRequest": "Content-Type", "Type": { "$id": "790", "Name": "String", @@ -6949,7 +7009,7 @@ "Location": "Header", "IsApiVersion": false, "IsResourceParameter": false, - "IsContentType": false, + "IsContentType": true, "IsRequired": true, "IsEndpoint": false, "SkipUrlEncoding": false, @@ -6975,7 +7035,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "POST", @@ -7065,8 +7128,8 @@ }, { "$id": "799", - "Name": "contentType", - "NameInRequest": "Content-Type", + "Name": "accept", + "NameInRequest": "Accept", "Type": { "$id": "800", "Name": "String", @@ -7076,7 +7139,7 @@ "Location": "Header", "IsApiVersion": false, "IsResourceParameter": false, - "IsContentType": true, + "IsContentType": false, "IsRequired": true, "IsEndpoint": false, "SkipUrlEncoding": false, @@ -7092,8 +7155,8 @@ }, { "$id": "802", - "Name": "accept", - "NameInRequest": "Accept", + "Name": "contentType", + "NameInRequest": "Content-Type", "Type": { "$id": "803", "Name": "String", @@ -7103,7 +7166,7 @@ "Location": "Header", "IsApiVersion": false, "IsResourceParameter": false, - "IsContentType": false, + "IsContentType": true, "IsRequired": true, "IsEndpoint": false, "SkipUrlEncoding": false, @@ -7129,7 +7192,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "POST", @@ -7219,8 +7285,8 @@ }, { "$id": "812", - "Name": "contentType", - "NameInRequest": "Content-Type", + "Name": "accept", + "NameInRequest": "Accept", "Type": { "$id": "813", "Name": "String", @@ -7230,7 +7296,7 @@ "Location": "Header", "IsApiVersion": false, "IsResourceParameter": false, - "IsContentType": true, + "IsContentType": false, "IsRequired": true, "IsEndpoint": false, "SkipUrlEncoding": false, @@ -7246,8 +7312,8 @@ }, { "$id": "815", - "Name": "accept", - "NameInRequest": "Accept", + "Name": "contentType", + "NameInRequest": "Content-Type", "Type": { "$id": "816", "Name": "String", @@ -7257,7 +7323,7 @@ "Location": "Header", "IsApiVersion": false, "IsResourceParameter": false, - "IsContentType": false, + "IsContentType": true, "IsRequired": true, "IsEndpoint": false, "SkipUrlEncoding": false, @@ -7283,7 +7349,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "POST", @@ -7494,7 +7563,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "GET", @@ -7583,7 +7655,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "GET", @@ -7670,8 +7745,8 @@ }, { "$id": "851", - "Name": "contentType", - "NameInRequest": "Content-Type", + "Name": "accept", + "NameInRequest": "Accept", "Type": { "$id": "852", "Name": "String", @@ -7681,7 +7756,7 @@ "Location": "Header", "IsApiVersion": false, "IsResourceParameter": false, - "IsContentType": true, + "IsContentType": false, "IsRequired": true, "IsEndpoint": false, "SkipUrlEncoding": false, @@ -7697,8 +7772,8 @@ }, { "$id": "854", - "Name": "accept", - "NameInRequest": "Accept", + "Name": "contentType", + "NameInRequest": "Content-Type", "Type": { "$id": "855", "Name": "String", @@ -7708,7 +7783,7 @@ "Location": "Header", "IsApiVersion": false, "IsResourceParameter": false, - "IsContentType": false, + "IsContentType": true, "IsRequired": true, "IsEndpoint": false, "SkipUrlEncoding": false, @@ -7734,7 +7809,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "POST", @@ -7842,7 +7920,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "POST", @@ -7929,8 +8010,8 @@ }, { "$id": "873", - "Name": "contentType", - "NameInRequest": "Content-Type", + "Name": "accept", + "NameInRequest": "Accept", "Type": { "$id": "874", "Name": "String", @@ -7940,7 +8021,7 @@ "Location": "Header", "IsApiVersion": false, "IsResourceParameter": false, - "IsContentType": true, + "IsContentType": false, "IsRequired": true, "IsEndpoint": false, "SkipUrlEncoding": false, @@ -7956,8 +8037,8 @@ }, { "$id": "876", - "Name": "accept", - "NameInRequest": "Accept", + "Name": "contentType", + "NameInRequest": "Content-Type", "Type": { "$id": "877", "Name": "String", @@ -7967,7 +8048,7 @@ "Location": "Header", "IsApiVersion": false, "IsResourceParameter": false, - "IsContentType": false, + "IsContentType": true, "IsRequired": true, "IsEndpoint": false, "SkipUrlEncoding": false, @@ -7993,7 +8074,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "POST", @@ -8080,7 +8164,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "GET", @@ -8284,7 +8371,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] }, { "$id": "907", @@ -8321,7 +8411,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "PATCH", @@ -8433,7 +8526,10 @@ } } ], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "GET", @@ -8680,7 +8776,10 @@ }, "BodyMediaType": "Json", "Headers": [], - "IsErrorResponse": false + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] } ], "HttpMethod": "GET",