From 2ea3f9fa53b858d8065f3887d4062ab03579a74b Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 2 Mar 2022 19:15:02 -0800 Subject: [PATCH] Update AutoRest C# version to 3.0.0-beta.20220302.3 (#27196) --- eng/Packages.Data.props | 2 +- .../DatabaseAccountCreateUpdateOptions.Serialization.cs | 6 ++++-- .../Generated/Models/DatabaseAccountData.Serialization.cs | 6 ++++-- .../Models/DatabaseAccountUpdateOptions.Serialization.cs | 4 +++- .../Models/DeviceUpdateAccountData.Serialization.cs | 3 ++- .../DeviceUpdateAccountUpdateOptions.Serialization.cs | 4 +++- .../src/Resources/Generated/Extensions/ArmResource.cs | 6 +++--- .../src/Generated/DeploymentScriptData.cs | 1 - .../Generated/Models/ManagedInstanceData.Serialization.cs | 6 ++++-- .../Models/ManagedInstanceUpdateOptions.Serialization.cs | 4 +++- .../src/Generated/Models/SqlServerData.Serialization.cs | 6 ++++-- .../Models/SqlServerUpdateOptions.Serialization.cs | 4 +++- .../src/Generated/Models/Activity.cs | 3 +-- .../src/Generated/Models/CompressionReadSettings.cs | 3 +-- .../src/Generated/Models/CopySink.cs | 3 +-- .../src/Generated/Models/CopySource.cs | 3 +-- .../src/Generated/Models/CopyTranslator.cs | 3 +-- .../src/Generated/Models/Dataset.cs | 3 +-- .../src/Generated/Models/DatasetLocation.cs | 3 +-- .../src/Generated/Models/DatasetStorageFormat.cs | 3 +-- .../src/Generated/Models/ExportSettings.cs | 3 +-- .../src/Generated/Models/FormatReadSettings.cs | 3 +-- .../src/Generated/Models/FormatWriteSettings.cs | 3 +-- .../src/Generated/Models/ImportSettings.cs | 3 +-- .../src/Generated/Models/IntegrationRuntime.cs | 1 - .../src/Generated/Models/LinkedService.cs | 3 +-- .../src/Generated/Models/StoreReadSettings.cs | 3 +-- .../src/Generated/Models/StoreWriteSettings.cs | 3 +-- .../src/Generated/Models/Trigger.cs | 3 +-- 29 files changed, 50 insertions(+), 51 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 2aa228efe9d0..17ba03bba6a5 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -151,7 +151,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountCreateUpdateOptions.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountCreateUpdateOptions.Serialization.cs index 65f8f9a7d8c5..d6b3dd3bd9ae 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountCreateUpdateOptions.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountCreateUpdateOptions.Serialization.cs @@ -26,7 +26,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"); - JsonSerializer.Serialize(writer, Identity); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + JsonSerializer.Serialize(writer, Identity, serializeOptions); } writer.WritePropertyName("tags"); writer.WriteStartObject(); @@ -259,7 +260,8 @@ internal static DatabaseAccountCreateUpdateOptions DeserializeDatabaseAccountCre property.ThrowNonNullablePropertyIsNull(); continue; } - identity = JsonSerializer.Deserialize(property.Value.ToString()); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + identity = JsonSerializer.Deserialize(property.Value.ToString(), serializeOptions); continue; } if (property.NameEquals("tags")) diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountData.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountData.Serialization.cs index f319efccc7c4..c1a8d7734c76 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountData.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountData.Serialization.cs @@ -27,7 +27,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"); - JsonSerializer.Serialize(writer, Identity); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + JsonSerializer.Serialize(writer, Identity, serializeOptions); } writer.WritePropertyName("tags"); writer.WriteStartObject(); @@ -258,7 +259,8 @@ internal static DatabaseAccountData DeserializeDatabaseAccountData(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - identity = JsonSerializer.Deserialize(property.Value.ToString()); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + identity = JsonSerializer.Deserialize(property.Value.ToString(), serializeOptions); continue; } if (property.NameEquals("tags")) diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountUpdateOptions.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountUpdateOptions.Serialization.cs index 4663f3e85277..ce264cb1ea0f 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountUpdateOptions.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/DatabaseAccountUpdateOptions.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Models; namespace Azure.ResourceManager.CosmosDB.Models { @@ -34,7 +35,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"); - JsonSerializer.Serialize(writer, Identity); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + JsonSerializer.Serialize(writer, Identity, serializeOptions); } writer.WritePropertyName("properties"); writer.WriteStartObject(); diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountData.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountData.Serialization.cs index 282b1d8e5f83..ebfd7e7f3526 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountData.Serialization.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountData.Serialization.cs @@ -21,7 +21,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"); - JsonSerializer.Serialize(writer, Identity); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + JsonSerializer.Serialize(writer, Identity, serializeOptions); } writer.WritePropertyName("tags"); writer.WriteStartObject(); diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountUpdateOptions.Serialization.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountUpdateOptions.Serialization.cs index c83712d21111..7fd6c2316cad 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountUpdateOptions.Serialization.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/Models/DeviceUpdateAccountUpdateOptions.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Models; namespace Azure.ResourceManager.DeviceUpdate.Models { @@ -18,7 +19,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"); - JsonSerializer.Serialize(writer, Identity); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + JsonSerializer.Serialize(writer, Identity, serializeOptions); } if (Optional.IsDefined(Location)) { diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Extensions/ArmResource.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Extensions/ArmResource.cs index 993ed1a06cfd..86738a613a76 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Extensions/ArmResource.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/Extensions/ArmResource.cs @@ -16,21 +16,21 @@ public partial class ArmResource /// An object representing collection of PolicyAssignments and their operations over a PolicyAssignment. public virtual PolicyAssignmentCollection GetPolicyAssignments() { - return new PolicyAssignmentCollection(Client, this.Id); + return new PolicyAssignmentCollection(Client, Id); } /// Gets a collection of PolicyExemptions in the PolicyExemption. /// An object representing collection of PolicyExemptions and their operations over a PolicyExemption. public virtual PolicyExemptionCollection GetPolicyExemptions() { - return new PolicyExemptionCollection(Client, this.Id); + return new PolicyExemptionCollection(Client, Id); } /// Gets a collection of ManagementLocks in the ManagementLock. /// An object representing collection of ManagementLocks and their operations over a ManagementLock. public virtual ManagementLockCollection GetManagementLocks() { - return new ManagementLockCollection(Client, this.Id); + return new ManagementLockCollection(Client, Id); } } } diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScriptData.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScriptData.cs index 5690179dcc65..d51d3db1ee99 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScriptData.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScriptData.cs @@ -28,7 +28,6 @@ public DeploymentScriptData(string location) Location = location; Tags = new ChangeTrackingDictionary(); - Kind = new ScriptType("DeploymentScript"); } /// Initializes a new instance of DeploymentScriptData. diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs index 869ceb7c9d30..e08512322c53 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceData.Serialization.cs @@ -22,7 +22,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"); - JsonSerializer.Serialize(writer, Identity); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + JsonSerializer.Serialize(writer, Identity, serializeOptions); } if (Optional.IsDefined(Sku)) { @@ -201,7 +202,8 @@ internal static ManagedInstanceData DeserializeManagedInstanceData(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - identity = JsonSerializer.Deserialize(property.Value.ToString()); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + identity = JsonSerializer.Deserialize(property.Value.ToString(), serializeOptions); continue; } if (property.NameEquals("sku")) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceUpdateOptions.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceUpdateOptions.Serialization.cs index de0529be3c28..8debb26aa6a0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceUpdateOptions.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/ManagedInstanceUpdateOptions.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Sql.Models { @@ -23,7 +24,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"); - JsonSerializer.Serialize(writer, Identity); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + JsonSerializer.Serialize(writer, Identity, serializeOptions); } if (Optional.IsCollectionDefined(Tags)) { diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerData.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerData.Serialization.cs index 1665217d3ba0..9c6fa7d8c89f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerData.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerData.Serialization.cs @@ -22,7 +22,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"); - JsonSerializer.Serialize(writer, Identity); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + JsonSerializer.Serialize(writer, Identity, serializeOptions); } writer.WritePropertyName("tags"); writer.WriteStartObject(); @@ -123,7 +124,8 @@ internal static SqlServerData DeserializeSqlServerData(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - identity = JsonSerializer.Deserialize(property.Value.ToString()); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + identity = JsonSerializer.Deserialize(property.Value.ToString(), serializeOptions); continue; } if (property.NameEquals("kind")) diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerUpdateOptions.Serialization.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerUpdateOptions.Serialization.cs index e3b4bce3b357..1e9fbd16fe45 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerUpdateOptions.Serialization.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/SqlServerUpdateOptions.Serialization.cs @@ -7,6 +7,7 @@ using System.Text.Json; using Azure.Core; +using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Sql.Models { @@ -18,7 +19,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(Identity)) { writer.WritePropertyName("identity"); - JsonSerializer.Serialize(writer, Identity); + var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } }; + JsonSerializer.Serialize(writer, Identity, serializeOptions); } if (Optional.IsCollectionDefined(Tags)) { diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Activity.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Activity.cs index 1a4639b7d8c6..f75a3c4e661c 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Activity.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Activity.cs @@ -28,7 +28,6 @@ public Activity(string name) DependsOn = new ChangeTrackingList(); UserProperties = new ChangeTrackingList(); AdditionalProperties = new ChangeTrackingDictionary(); - Type = "Activity"; } /// Initializes a new instance of Activity. @@ -41,7 +40,7 @@ public Activity(string name) internal Activity(string name, string type, string description, IList dependsOn, IList userProperties, IDictionary additionalProperties) { Name = name; - Type = type ?? "Activity"; + Type = type; Description = description; DependsOn = dependsOn; UserProperties = userProperties; diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CompressionReadSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CompressionReadSettings.cs index 08ea1a2053db..d0bee7da1882 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CompressionReadSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CompressionReadSettings.cs @@ -17,7 +17,6 @@ public partial class CompressionReadSettings public CompressionReadSettings() { AdditionalProperties = new ChangeTrackingDictionary(); - Type = "CompressionReadSettings"; } /// Initializes a new instance of CompressionReadSettings. @@ -25,7 +24,7 @@ public CompressionReadSettings() /// Additional Properties. internal CompressionReadSettings(string type, IDictionary additionalProperties) { - Type = type ?? "CompressionReadSettings"; + Type = type; AdditionalProperties = additionalProperties; } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySink.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySink.cs index 6f0c54efc8ec..dc5514bee0f7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySink.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySink.cs @@ -17,7 +17,6 @@ public partial class CopySink public CopySink() { AdditionalProperties = new ChangeTrackingDictionary(); - Type = "CopySink"; } /// Initializes a new instance of CopySink. @@ -30,7 +29,7 @@ public CopySink() /// Additional Properties. internal CopySink(string type, object writeBatchSize, object writeBatchTimeout, object sinkRetryCount, object sinkRetryWait, object maxConcurrentConnections, IDictionary additionalProperties) { - Type = type ?? "CopySink"; + Type = type; WriteBatchSize = writeBatchSize; WriteBatchTimeout = writeBatchTimeout; SinkRetryCount = sinkRetryCount; diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySource.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySource.cs index 3254f2426f62..37652f8b44a0 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySource.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopySource.cs @@ -17,7 +17,6 @@ public partial class CopySource public CopySource() { AdditionalProperties = new ChangeTrackingDictionary(); - Type = "CopySource"; } /// Initializes a new instance of CopySource. @@ -28,7 +27,7 @@ public CopySource() /// Additional Properties. internal CopySource(string type, object sourceRetryCount, object sourceRetryWait, object maxConcurrentConnections, IDictionary additionalProperties) { - Type = type ?? "CopySource"; + Type = type; SourceRetryCount = sourceRetryCount; SourceRetryWait = sourceRetryWait; MaxConcurrentConnections = maxConcurrentConnections; diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyTranslator.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyTranslator.cs index 79d708f369a9..8bba86e7a7b3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyTranslator.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/CopyTranslator.cs @@ -17,7 +17,6 @@ public partial class CopyTranslator public CopyTranslator() { AdditionalProperties = new ChangeTrackingDictionary(); - Type = "CopyTranslator"; } /// Initializes a new instance of CopyTranslator. @@ -25,7 +24,7 @@ public CopyTranslator() /// Additional Properties. internal CopyTranslator(string type, IDictionary additionalProperties) { - Type = type ?? "CopyTranslator"; + Type = type; AdditionalProperties = additionalProperties; } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Dataset.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Dataset.cs index 21d2a1acbd3e..5cff2072e375 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Dataset.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Dataset.cs @@ -28,7 +28,6 @@ public Dataset(LinkedServiceReference linkedServiceName) Parameters = new ChangeTrackingDictionary(); Annotations = new ChangeTrackingList(); AdditionalProperties = new ChangeTrackingDictionary(); - Type = "Dataset"; } /// Initializes a new instance of Dataset. @@ -43,7 +42,7 @@ public Dataset(LinkedServiceReference linkedServiceName) /// Additional Properties. internal Dataset(string type, string description, object structure, object schema, LinkedServiceReference linkedServiceName, IDictionary parameters, IList annotations, DatasetFolder folder, IDictionary additionalProperties) { - Type = type ?? "Dataset"; + Type = type; Description = description; Structure = structure; Schema = schema; diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetLocation.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetLocation.cs index 5522f72c1dce..0ade88b95430 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetLocation.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetLocation.cs @@ -17,7 +17,6 @@ public partial class DatasetLocation public DatasetLocation() { AdditionalProperties = new ChangeTrackingDictionary(); - Type = "DatasetLocation"; } /// Initializes a new instance of DatasetLocation. @@ -27,7 +26,7 @@ public DatasetLocation() /// Additional Properties. internal DatasetLocation(string type, object folderPath, object fileName, IDictionary additionalProperties) { - Type = type ?? "DatasetLocation"; + Type = type; FolderPath = folderPath; FileName = fileName; AdditionalProperties = additionalProperties; diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetStorageFormat.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetStorageFormat.cs index 9d4bf2348a65..10b5ccf1f643 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetStorageFormat.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/DatasetStorageFormat.cs @@ -17,7 +17,6 @@ public partial class DatasetStorageFormat public DatasetStorageFormat() { AdditionalProperties = new ChangeTrackingDictionary(); - Type = "DatasetStorageFormat"; } /// Initializes a new instance of DatasetStorageFormat. @@ -27,7 +26,7 @@ public DatasetStorageFormat() /// Additional Properties. internal DatasetStorageFormat(string type, object serializer, object deserializer, IDictionary additionalProperties) { - Type = type ?? "DatasetStorageFormat"; + Type = type; Serializer = serializer; Deserializer = deserializer; AdditionalProperties = additionalProperties; diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExportSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExportSettings.cs index 782fbf7355bf..5577b69d91f3 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExportSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ExportSettings.cs @@ -17,7 +17,6 @@ public partial class ExportSettings public ExportSettings() { AdditionalProperties = new ChangeTrackingDictionary(); - Type = "ExportSettings"; } /// Initializes a new instance of ExportSettings. @@ -25,7 +24,7 @@ public ExportSettings() /// Additional Properties. internal ExportSettings(string type, IDictionary additionalProperties) { - Type = type ?? "ExportSettings"; + Type = type; AdditionalProperties = additionalProperties; } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatReadSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatReadSettings.cs index e9e2d03cab17..a20751cfe7a7 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatReadSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatReadSettings.cs @@ -17,7 +17,6 @@ public partial class FormatReadSettings public FormatReadSettings() { AdditionalProperties = new ChangeTrackingDictionary(); - Type = "FormatReadSettings"; } /// Initializes a new instance of FormatReadSettings. @@ -25,7 +24,7 @@ public FormatReadSettings() /// Additional Properties. internal FormatReadSettings(string type, IDictionary additionalProperties) { - Type = type ?? "FormatReadSettings"; + Type = type; AdditionalProperties = additionalProperties; } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatWriteSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatWriteSettings.cs index d3d2acfd0538..932c86c7e25d 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatWriteSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/FormatWriteSettings.cs @@ -17,7 +17,6 @@ public partial class FormatWriteSettings public FormatWriteSettings() { AdditionalProperties = new ChangeTrackingDictionary(); - Type = "FormatWriteSettings"; } /// Initializes a new instance of FormatWriteSettings. @@ -25,7 +24,7 @@ public FormatWriteSettings() /// Additional Properties. internal FormatWriteSettings(string type, IDictionary additionalProperties) { - Type = type ?? "FormatWriteSettings"; + Type = type; AdditionalProperties = additionalProperties; } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImportSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImportSettings.cs index f2e42a3f62e5..c231e98deec5 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImportSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/ImportSettings.cs @@ -17,7 +17,6 @@ public partial class ImportSettings public ImportSettings() { AdditionalProperties = new ChangeTrackingDictionary(); - Type = "ImportSettings"; } /// Initializes a new instance of ImportSettings. @@ -25,7 +24,7 @@ public ImportSettings() /// Additional Properties. internal ImportSettings(string type, IDictionary additionalProperties) { - Type = type ?? "ImportSettings"; + Type = type; AdditionalProperties = additionalProperties; } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntime.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntime.cs index 29380a822553..a803c21b41b8 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntime.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/IntegrationRuntime.cs @@ -17,7 +17,6 @@ public partial class IntegrationRuntime public IntegrationRuntime() { AdditionalProperties = new ChangeTrackingDictionary(); - Type = new IntegrationRuntimeType("IntegrationRuntime"); } /// Initializes a new instance of IntegrationRuntime. diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.cs index 9ee9831fb191..d4aa0b9e23e4 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/LinkedService.cs @@ -19,7 +19,6 @@ public LinkedService() Parameters = new ChangeTrackingDictionary(); Annotations = new ChangeTrackingList(); AdditionalProperties = new ChangeTrackingDictionary(); - Type = "LinkedService"; } /// Initializes a new instance of LinkedService. @@ -31,7 +30,7 @@ public LinkedService() /// Additional Properties. internal LinkedService(string type, IntegrationRuntimeReference connectVia, string description, IDictionary parameters, IList annotations, IDictionary additionalProperties) { - Type = type ?? "LinkedService"; + Type = type; ConnectVia = connectVia; Description = description; Parameters = parameters; diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreReadSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreReadSettings.cs index d823d5603509..821d2cc49794 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreReadSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreReadSettings.cs @@ -17,7 +17,6 @@ public partial class StoreReadSettings public StoreReadSettings() { AdditionalProperties = new ChangeTrackingDictionary(); - Type = "StoreReadSettings"; } /// Initializes a new instance of StoreReadSettings. @@ -26,7 +25,7 @@ public StoreReadSettings() /// Additional Properties. internal StoreReadSettings(string type, object maxConcurrentConnections, IDictionary additionalProperties) { - Type = type ?? "StoreReadSettings"; + Type = type; MaxConcurrentConnections = maxConcurrentConnections; AdditionalProperties = additionalProperties; } diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreWriteSettings.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreWriteSettings.cs index e59a59342ada..952ebec68d35 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreWriteSettings.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/StoreWriteSettings.cs @@ -17,7 +17,6 @@ public partial class StoreWriteSettings public StoreWriteSettings() { AdditionalProperties = new ChangeTrackingDictionary(); - Type = "StoreWriteSettings"; } /// Initializes a new instance of StoreWriteSettings. @@ -27,7 +26,7 @@ public StoreWriteSettings() /// Additional Properties. internal StoreWriteSettings(string type, object maxConcurrentConnections, object copyBehavior, IDictionary additionalProperties) { - Type = type ?? "StoreWriteSettings"; + Type = type; MaxConcurrentConnections = maxConcurrentConnections; CopyBehavior = copyBehavior; AdditionalProperties = additionalProperties; diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Trigger.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Trigger.cs index 01679aa053b9..d40bf92ae987 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Trigger.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/Models/Trigger.cs @@ -18,7 +18,6 @@ public Trigger() { Annotations = new ChangeTrackingList(); AdditionalProperties = new ChangeTrackingDictionary(); - Type = "Trigger"; } /// Initializes a new instance of Trigger. @@ -29,7 +28,7 @@ public Trigger() /// Additional Properties. internal Trigger(string type, string description, TriggerRuntimeState? runtimeState, IList annotations, IDictionary additionalProperties) { - Type = type ?? "Trigger"; + Type = type; Description = description; RuntimeState = runtimeState; Annotations = annotations;