From 6b4cad825e019b9951cdcf1823c02b66ca4e3e21 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 15 Aug 2019 19:15:54 +0000 Subject: [PATCH] Generated from 004d77657b470329193715edd882bc1934d0785a Fix bad discriminator value on ConnectionInfo which was breaking node/js SDK generation --- .../v2018_03_31_preview/ConnectionInfo.java | 11 ++--------- .../v2018_03_31_preview/ProjectTaskProperties.java | 1 - 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/datamigration/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_03_31_preview/ConnectionInfo.java b/datamigration/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_03_31_preview/ConnectionInfo.java index e2f687cae47e6..a1692f35f2778 100644 --- a/datamigration/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_03_31_preview/ConnectionInfo.java +++ b/datamigration/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_03_31_preview/ConnectionInfo.java @@ -17,16 +17,9 @@ * Defines the connection properties of a server. */ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") -@JsonTypeName("Unknown") +@JsonTypeName("ConnectionInfo") @JsonSubTypes({ - @JsonSubTypes.Type(name = "SqlConnectionInfo", value = SqlConnectionInfo.class), - @JsonSubTypes.Type(name = "ValidateMigrationInput.SqlServer.AzureSqlDbMI", value = ValidateMigrationInputSqlServerSqlMITaskProperties.class), - @JsonSubTypes.Type(name = "Migrate.SqlServer.SqlDb", value = MigrateSqlServerSqlDbTaskProperties.class), - @JsonSubTypes.Type(name = "Migrate.SqlServer.AzureSqlDbMI", value = MigrateSqlServerSqlMITaskProperties.class), - @JsonSubTypes.Type(name = "GetUserTables.Sql", value = GetUserTablesSqlTaskProperties.class), - @JsonSubTypes.Type(name = "ConnectToTarget.SqlDb", value = ConnectToTargetSqlDbTaskProperties.class), - @JsonSubTypes.Type(name = "ConnectToTarget.AzureSqlDbMI", value = ConnectToTargetSqlMITaskProperties.class), - @JsonSubTypes.Type(name = "ConnectToSource.SqlServer", value = ConnectToSourceSqlServerTaskProperties.class) + @JsonSubTypes.Type(name = "SqlConnectionInfo", value = SqlConnectionInfo.class) }) public class ConnectionInfo { /** diff --git a/datamigration/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_03_31_preview/ProjectTaskProperties.java b/datamigration/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_03_31_preview/ProjectTaskProperties.java index 0dfaa967222ec..48a53337c54ae 100644 --- a/datamigration/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_03_31_preview/ProjectTaskProperties.java +++ b/datamigration/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_03_31_preview/ProjectTaskProperties.java @@ -21,7 +21,6 @@ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType") @JsonTypeName("Unknown") @JsonSubTypes({ - @JsonSubTypes.Type(name = "SqlConnectionInfo", value = SqlConnectionInfo.class), @JsonSubTypes.Type(name = "ValidateMigrationInput.SqlServer.AzureSqlDbMI", value = ValidateMigrationInputSqlServerSqlMITaskProperties.class), @JsonSubTypes.Type(name = "Migrate.SqlServer.SqlDb", value = MigrateSqlServerSqlDbTaskProperties.class), @JsonSubTypes.Type(name = "Migrate.SqlServer.AzureSqlDbMI", value = MigrateSqlServerSqlMITaskProperties.class),