diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 831218341f963..2dce3d94592e9 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -205,7 +205,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 e26625012e2df..bac73448099bc 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.20240321.4" + "@azure-tools/typespec-csharp": "0.2.0-beta.20240322.1" }, "devDependencies": { "@azure-tools/typespec-azure-core": "0.40.0", @@ -18,9 +18,9 @@ } }, "node_modules/@autorest/csharp": { - "version": "3.0.0-beta.20240321.4", - "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240321.4.tgz", - "integrity": "sha512-gZcw3n+DtjjV1aodaBo8mnvF1tYlg7lo3BRn9WgyvXccxgnl0Zbj7EQMGGP9kQcr1lN+/5yrE/256Byfkmza6Q==" + "version": "3.0.0-beta.20240322.1", + "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20240322.1.tgz", + "integrity": "sha512-kjfOipmNW+EOT7hbu4KlSgJnHbXBuUbG3ZHTXU9pIHpCNX1QjgLKuL6zj+YQCx07iSBMiUiZDNndoN8q9/lcuQ==" }, "node_modules/@azure-tools/typespec-azure-core": { "version": "0.40.0", @@ -56,11 +56,11 @@ } }, "node_modules/@azure-tools/typespec-csharp": { - "version": "0.2.0-beta.20240321.4", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240321.4.tgz", - "integrity": "sha512-QLw17brVEcvBOR7E0K+RNiId6XEQVSclnfehruZrdZPHs0auU4toJDtB1l+dFlcHUAkgnahEx6O/UWNnjuRFNA==", + "version": "0.2.0-beta.20240322.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20240322.1.tgz", + "integrity": "sha512-gdYU8i9z3jKllLfjB0OSxpjMk0FXZV6hJlHYT2Qz/jb1UxKw1MrRdAdtNWBQoWsSD5BkwpEFVVykNrByp5SC9w==", "dependencies": { - "@autorest/csharp": "3.0.0-beta.20240321.4", + "@autorest/csharp": "3.0.0-beta.20240322.1", "json-serialize-refs": "0.1.0-0", "winston": "^3.8.2" }, diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 3f23077f1cfac..977f0320498fd 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,15 +1,15 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20240321.4" + "@azure-tools/typespec-csharp": "0.2.0-beta.20240322.1" }, "devDependencies": { "@typespec/http": "0.54.0", - "@azure-tools/typespec-client-generator-core": "0.40.0", "@typespec/versioning": "0.54.0", - "@typespec/compiler": "0.54.0", - "@typespec/rest": "0.54.0", + "@azure-tools/typespec-client-generator-core": "0.40.0", "@typespec/openapi": "0.54.0", + "@typespec/rest": "0.54.0", + "@typespec/compiler": "0.54.0", "@azure-tools/typespec-azure-core": "0.40.0" } } diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolAccountResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolAccountResource.cs index 28f065cd4f20d..f7b9f8eb5f0a3 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolAccountResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolAccountResource.cs @@ -7,11 +7,8 @@ using System; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Samples { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolAccountResourceCollection.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolAccountResourceCollection.cs index 64ea5ddf4efef..5948c57725528 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolAccountResourceCollection.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolAccountResourceCollection.cs @@ -7,11 +7,8 @@ using System; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Samples { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolResource.cs index 62e3b741aaffc..db106f4e1c2f5 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolResource.cs @@ -7,11 +7,8 @@ using System; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.CosmosDB; using Azure.ResourceManager.CosmosDB.Models; using Azure.ResourceManager.Resources; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolResourceCollection.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolResourceCollection.cs index 5557a75051b9c..a83b8ae98d0fd 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolResourceCollection.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/samples/Generated/Samples/Sample_ThroughputPoolResourceCollection.cs @@ -7,11 +7,8 @@ using System; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Identity; -using Azure.ResourceManager; -using Azure.ResourceManager.CosmosDB; using Azure.ResourceManager.Resources; namespace Azure.ResourceManager.CosmosDB.Samples diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/ThroughputPoolAccountResourceOperationSource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/ThroughputPoolAccountResourceOperationSource.cs index 631abc00477ae..a99a1c4055cb3 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/ThroughputPoolAccountResourceOperationSource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/ThroughputPoolAccountResourceOperationSource.cs @@ -8,9 +8,7 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -using Azure; using Azure.Core; -using Azure.ResourceManager; namespace Azure.ResourceManager.CosmosDB { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/ThroughputPoolResourceOperationSource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/ThroughputPoolResourceOperationSource.cs index de5be1bfa87f2..39d51943c1ae1 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/ThroughputPoolResourceOperationSource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/LongRunningOperation/ThroughputPoolResourceOperationSource.cs @@ -8,9 +8,7 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -using Azure; using Azure.Core; -using Azure.ResourceManager; namespace Azure.ResourceManager.CosmosDB { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/BaseCosmosDataTransferDataSourceSink.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/BaseCosmosDataTransferDataSourceSink.Serialization.cs index c7383de78f24e..f227e45c6f949 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/BaseCosmosDataTransferDataSourceSink.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/BaseCosmosDataTransferDataSourceSink.Serialization.cs @@ -10,7 +10,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; -using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { @@ -23,7 +22,7 @@ void IJsonModel.Write(Utf8JsonWriter write var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(BaseCosmosDataTransferDataSourceSink)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(BaseCosmosDataTransferDataSourceSink)} does not support writing '{format}' format."); } writer.WriteStartObject(); @@ -57,7 +56,7 @@ BaseCosmosDataTransferDataSourceSink IJsonModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(BaseCosmosDataTransferDataSourceSink)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(BaseCosmosDataTransferDataSourceSink)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); @@ -115,7 +114,7 @@ BinaryData IPersistableModel.Write(ModelRe case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(BaseCosmosDataTransferDataSourceSink)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(BaseCosmosDataTransferDataSourceSink)} does not support writing '{options.Format}' format."); } } @@ -131,7 +130,7 @@ BaseCosmosDataTransferDataSourceSink IPersistableModel.Write(Utf8JsonWriter writer, ModelReade var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(CassandraClusterCommand)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(CassandraClusterCommand)} does not support writing '{format}' format."); } writer.WriteStartObject(); @@ -107,7 +106,7 @@ CassandraClusterCommand IJsonModel.Create(ref Utf8JsonR var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(CassandraClusterCommand)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(CassandraClusterCommand)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); @@ -235,7 +234,7 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOpt case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(CassandraClusterCommand)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(CassandraClusterCommand)} does not support writing '{options.Format}' format."); } } @@ -251,7 +250,7 @@ CassandraClusterCommand IPersistableModel.Create(Binary return DeserializeCassandraClusterCommand(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(CassandraClusterCommand)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(CassandraClusterCommand)} does not support reading '{options.Format}' format."); } } diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ComputedProperty.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ComputedProperty.Serialization.cs index 44e9f225c58e7..6c25ae57037d4 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ComputedProperty.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ComputedProperty.Serialization.cs @@ -10,7 +10,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; -using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { @@ -23,7 +22,7 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriter var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ComputedProperty)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(ComputedProperty)} does not support writing '{format}' format."); } writer.WriteStartObject(); @@ -60,7 +59,7 @@ ComputedProperty IJsonModel.Create(ref Utf8JsonReader reader, var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ComputedProperty)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(ComputedProperty)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); @@ -109,7 +108,7 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions op case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(ComputedProperty)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(ComputedProperty)} does not support writing '{options.Format}' format."); } } @@ -125,7 +124,7 @@ ComputedProperty IPersistableModel.Create(BinaryData data, Mod return DeserializeComputedProperty(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ComputedProperty)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(ComputedProperty)} does not support reading '{options.Format}' format."); } } diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListCommands.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListCommands.Serialization.cs index 64528c516c9de..8f9311c05cb86 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListCommands.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListCommands.Serialization.cs @@ -10,7 +10,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; -using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { @@ -23,7 +22,7 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOpti var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ListCommands)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(ListCommands)} does not support writing '{format}' format."); } writer.WriteStartObject(); @@ -60,7 +59,7 @@ ListCommands IJsonModel.Create(ref Utf8JsonReader reader, ModelRea var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ListCommands)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(ListCommands)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); @@ -112,7 +111,7 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions option case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(ListCommands)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(ListCommands)} does not support writing '{options.Format}' format."); } } @@ -128,7 +127,7 @@ ListCommands IPersistableModel.Create(BinaryData data, ModelReader return DeserializeListCommands(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ListCommands)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(ListCommands)} does not support reading '{options.Format}' format."); } } diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListCommands.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListCommands.cs index a5d21eba49a34..3ea9224771618 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListCommands.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ListCommands.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ThroughputPoolAccountsListResult.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ThroughputPoolAccountsListResult.Serialization.cs index d26d6fa5ff5a8..b72ac52290213 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ThroughputPoolAccountsListResult.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ThroughputPoolAccountsListResult.Serialization.cs @@ -10,7 +10,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; -using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { @@ -23,7 +22,7 @@ void IJsonModel.Write(Utf8JsonWriter writer, M var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ThroughputPoolAccountsListResult)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolAccountsListResult)} does not support writing '{format}' format."); } writer.WriteStartObject(); @@ -65,7 +64,7 @@ ThroughputPoolAccountsListResult IJsonModel.Cr var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ThroughputPoolAccountsListResult)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolAccountsListResult)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); @@ -123,7 +122,7 @@ BinaryData IPersistableModel.Write(ModelReader case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(ThroughputPoolAccountsListResult)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolAccountsListResult)} does not support writing '{options.Format}' format."); } } @@ -139,7 +138,7 @@ ThroughputPoolAccountsListResult IPersistableModel.Write(Utf8JsonWriter writer, ModelR var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ThroughputPoolResourcePatch)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolResourcePatch)} does not support writing '{format}' format."); } writer.WriteStartObject(); @@ -63,7 +62,7 @@ ThroughputPoolResourcePatch IJsonModel.Create(ref U var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ThroughputPoolResourcePatch)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolResourcePatch)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); @@ -132,7 +131,7 @@ BinaryData IPersistableModel.Write(ModelReaderWrite case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(ThroughputPoolResourcePatch)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolResourcePatch)} does not support writing '{options.Format}' format."); } } @@ -148,7 +147,7 @@ ThroughputPoolResourcePatch IPersistableModel.Creat return DeserializeThroughputPoolResourcePatch(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ThroughputPoolResourcePatch)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolResourcePatch)} does not support reading '{options.Format}' format."); } } diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ThroughputPoolsListResult.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ThroughputPoolsListResult.Serialization.cs index c4d0024034bf4..becbf7975789e 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ThroughputPoolsListResult.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ThroughputPoolsListResult.Serialization.cs @@ -10,7 +10,6 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; -using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { @@ -23,7 +22,7 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRea var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ThroughputPoolsListResult)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolsListResult)} does not support writing '{format}' format."); } writer.WriteStartObject(); @@ -65,7 +64,7 @@ ThroughputPoolsListResult IJsonModel.Create(ref Utf8J var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ThroughputPoolsListResult)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolsListResult)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); @@ -123,7 +122,7 @@ BinaryData IPersistableModel.Write(ModelReaderWriterO case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(ThroughputPoolsListResult)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolsListResult)} does not support writing '{options.Format}' format."); } } @@ -139,7 +138,7 @@ ThroughputPoolsListResult IPersistableModel.Create(Bi return DeserializeThroughputPoolsListResult(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ThroughputPoolsListResult)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolsListResult)} does not support reading '{options.Format}' format."); } } diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ThroughputPoolsListResult.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ThroughputPoolsListResult.cs index c785e60c4761f..811ddfe1becc8 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ThroughputPoolsListResult.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/ThroughputPoolsListResult.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using Azure.ResourceManager.CosmosDB; namespace Azure.ResourceManager.CosmosDB.Models { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolAccountRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolAccountRestOperations.cs index c1198413c6b03..cb6a73483319a 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolAccountRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolAccountRestOperations.cs @@ -9,7 +9,6 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Core.Pipeline; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolAccountsRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolAccountsRestOperations.cs index 966bdca6b93da..743f95afbd377 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolAccountsRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolAccountsRestOperations.cs @@ -9,7 +9,6 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager.CosmosDB.Models; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolRestOperations.cs index 9027b35295da2..e66fcfd8b078b 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolRestOperations.cs @@ -9,7 +9,6 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager.CosmosDB.Models; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolsRestOperations.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolsRestOperations.cs index 4c253459eb713..0669908f463f5 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolsRestOperations.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestOperations/ThroughputPoolsRestOperations.cs @@ -9,7 +9,6 @@ using System.Text.Json; using System.Threading; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager.CosmosDB.Models; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ThroughputPoolAccountResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ThroughputPoolAccountResource.cs index 9d3e77ae71f76..0d85f6c151cea 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ThroughputPoolAccountResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ThroughputPoolAccountResource.cs @@ -9,10 +9,8 @@ using System.Globalization; using System.Threading; using System.Threading.Tasks; -using Azure; using Azure.Core; using Azure.Core.Pipeline; -using Azure.ResourceManager; namespace Azure.ResourceManager.CosmosDB { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ThroughputPoolAccountResourceCollection.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ThroughputPoolAccountResourceCollection.cs index 436166f1d5f9c..6053885500958 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ThroughputPoolAccountResourceCollection.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ThroughputPoolAccountResourceCollection.cs @@ -12,10 +12,8 @@ using System.Threading; using System.Threading.Tasks; using Autorest.CSharp.Core; -using Azure; using Azure.Core; using Azure.Core.Pipeline; -using Azure.ResourceManager; namespace Azure.ResourceManager.CosmosDB { diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ThroughputPoolAccountResourceData.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ThroughputPoolAccountResourceData.Serialization.cs index c18af9c42f096..5adee1e3eac1a 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ThroughputPoolAccountResourceData.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ThroughputPoolAccountResourceData.Serialization.cs @@ -24,7 +24,7 @@ void IJsonModel.Write(Utf8JsonWriter writer, var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ThroughputPoolAccountResourceData)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolAccountResourceData)} does not support writing '{format}' format."); } writer.WriteStartObject(); @@ -94,7 +94,7 @@ ThroughputPoolAccountResourceData IJsonModel. var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ThroughputPoolAccountResourceData)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolAccountResourceData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); @@ -208,7 +208,7 @@ BinaryData IPersistableModel.Write(ModelReade case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(ThroughputPoolAccountResourceData)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolAccountResourceData)} does not support writing '{options.Format}' format."); } } @@ -224,7 +224,7 @@ ThroughputPoolAccountResourceData IPersistableModel.Write(Utf8JsonWriter writer, ModelRe var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ThroughputPoolResourceData)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolResourceData)} does not support writing '{format}' format."); } writer.WriteStartObject(); @@ -97,7 +97,7 @@ ThroughputPoolResourceData IJsonModel.Create(ref Utf var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ThroughputPoolResourceData)} does not support '{format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolResourceData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); @@ -224,7 +224,7 @@ BinaryData IPersistableModel.Write(ModelReaderWriter case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(ThroughputPoolResourceData)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolResourceData)} does not support writing '{options.Format}' format."); } } @@ -240,7 +240,7 @@ ThroughputPoolResourceData IPersistableModel.Create( return DeserializeThroughputPoolResourceData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ThroughputPoolResourceData)} does not support '{options.Format}' format."); + throw new FormatException($"The model {nameof(ThroughputPoolResourceData)} does not support reading '{options.Format}' format."); } }