diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/DataMigrationServiceClient.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/DataMigrationServiceClient.cs index 4ce06d32869b..4714895199dd 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/DataMigrationServiceClient.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/DataMigrationServiceClient.cs @@ -400,6 +400,8 @@ private void Initialize() DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("resultType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type")); + SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("resultType")); + DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("resultType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("resultType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("resultType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("resultType")); diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/CheckOCIDriverTaskOutput.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/CheckOCIDriverTaskOutput.cs index 4d687c87010d..53c0f5c20e3c 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/CheckOCIDriverTaskOutput.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/CheckOCIDriverTaskOutput.cs @@ -47,7 +47,8 @@ public CheckOCIDriverTaskOutput() partial void CustomInit(); /// - /// Gets or sets information about the installed driver if found and valid. + /// Gets or sets information about the installed driver if found and + /// valid. /// [JsonProperty(PropertyName = "installedDriver")] public OracleOCIDriverInfo InstalledDriver { get; set; } diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/DataMigrationService.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/DataMigrationService.cs index 7627ba617a36..ea917b2a8666 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/DataMigrationService.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/DataMigrationService.cs @@ -52,8 +52,11 @@ public DataMigrationService() /// 'Succeeded', 'Failed' /// The public key of the service, used to /// encrypt secrets sent to the service + /// The ID of the + /// Microsoft.Network/networkInterfaces resource which the service + /// have /// Service SKU - public DataMigrationService(string location, string virtualSubnetId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string etag = default(string), string kind = default(string), string provisioningState = default(string), string publicKey = default(string), ServiceSku sku = default(ServiceSku)) + public DataMigrationService(string location, string virtualSubnetId, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string etag = default(string), string kind = default(string), string provisioningState = default(string), string publicKey = default(string), string virtualNicId = default(string), ServiceSku sku = default(ServiceSku)) : base(location, id, name, type, tags) { Etag = etag; @@ -61,6 +64,7 @@ public DataMigrationService() ProvisioningState = provisioningState; PublicKey = publicKey; VirtualSubnetId = virtualSubnetId; + VirtualNicId = virtualNicId; Sku = sku; CustomInit(); } @@ -106,6 +110,13 @@ public DataMigrationService() [JsonProperty(PropertyName = "properties.virtualSubnetId")] public string VirtualSubnetId { get; set; } + /// + /// Gets or sets the ID of the Microsoft.Network/networkInterfaces + /// resource which the service have + /// + [JsonProperty(PropertyName = "properties.virtualNicId")] + public string VirtualNicId { get; set; } + /// /// Gets or sets service SKU /// diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.cs index 11f695c9a8ba..f762ecf260f0 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.cs @@ -44,13 +44,15 @@ public MigrateMySqlAzureDbForMySqlSyncDatabaseInput() /// migration behavior /// Target settings to tune target endpoint /// migration behavior - public MigrateMySqlAzureDbForMySqlSyncDatabaseInput(string name = default(string), string targetDatabaseName = default(string), IDictionary migrationSetting = default(IDictionary), IDictionary sourceSetting = default(IDictionary), IDictionary targetSetting = default(IDictionary)) + /// Mapping of source to target tables + public MigrateMySqlAzureDbForMySqlSyncDatabaseInput(string name = default(string), string targetDatabaseName = default(string), IDictionary migrationSetting = default(IDictionary), IDictionary sourceSetting = default(IDictionary), IDictionary targetSetting = default(IDictionary), IDictionary tableMap = default(IDictionary)) { Name = name; TargetDatabaseName = targetDatabaseName; MigrationSetting = migrationSetting; SourceSetting = sourceSetting; TargetSetting = targetSetting; + TableMap = tableMap; CustomInit(); } @@ -92,5 +94,11 @@ public MigrateMySqlAzureDbForMySqlSyncDatabaseInput() [JsonProperty(PropertyName = "targetSetting")] public IDictionary TargetSetting { get; set; } + /// + /// Gets or sets mapping of source to target tables + /// + [JsonProperty(PropertyName = "tableMap")] + public IDictionary TableMap { get; set; } + } } diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel.cs index 06e5f6bc4fcb..e138ac9c348b 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel.cs @@ -36,8 +36,10 @@ public MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel() /// Migration state that this database is /// in. Possible values include: 'UNDEFINED', 'CONFIGURING', /// 'INITIALIAZING', 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', - /// 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', - /// 'FAILED' + /// 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED', + /// 'VALIDATING', 'VALIDATION_COMPLETE', 'VALIDATION_FAILED', + /// 'RESTORE_IN_PROGRESS', 'RESTORE_COMPLETED', 'BACKUP_IN_PROGRESS', + /// 'BACKUP_COMPLETED' /// Number of incoming changes /// Number of applied changes /// Number of cdc inserts @@ -102,7 +104,9 @@ public MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel() /// Gets migration state that this database is in. Possible values /// include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', /// 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', - /// 'CANCELLING', 'CANCELLED', 'FAILED' + /// 'CANCELLING', 'CANCELLED', 'FAILED', 'VALIDATING', + /// 'VALIDATION_COMPLETE', 'VALIDATION_FAILED', 'RESTORE_IN_PROGRESS', + /// 'RESTORE_COMPLETED', 'BACKUP_IN_PROGRESS', 'BACKUP_COMPLETED' /// [JsonProperty(PropertyName = "migrationState")] public string MigrationState { get; private set; } diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel.cs index 584515b7209d..1b64aab2f191 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel.cs @@ -36,8 +36,10 @@ public MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel() /// Migration state that this database is /// in. Possible values include: 'UNDEFINED', 'CONFIGURING', /// 'INITIALIAZING', 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', - /// 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', - /// 'FAILED' + /// 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED', + /// 'VALIDATING', 'VALIDATION_COMPLETE', 'VALIDATION_FAILED', + /// 'RESTORE_IN_PROGRESS', 'RESTORE_COMPLETED', 'BACKUP_IN_PROGRESS', + /// 'BACKUP_COMPLETED' /// Number of incoming changes /// Number of applied changes /// Number of cdc inserts @@ -102,7 +104,9 @@ public MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel() /// Gets migration state that this database is in. Possible values /// include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', /// 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', - /// 'CANCELLING', 'CANCELLED', 'FAILED' + /// 'CANCELLING', 'CANCELLED', 'FAILED', 'VALIDATING', + /// 'VALIDATION_COMPLETE', 'VALIDATION_FAILED', 'RESTORE_IN_PROGRESS', + /// 'RESTORE_COMPLETED', 'BACKUP_IN_PROGRESS', 'BACKUP_COMPLETED' /// [JsonProperty(PropertyName = "migrationState")] public string MigrationState { get; private set; } diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.cs index c9ec3a59435a..cae82f9c1998 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.cs @@ -44,13 +44,15 @@ public MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput() /// migration behavior /// Target settings to tune target endpoint /// migration behavior - public MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput(string name = default(string), string targetDatabaseName = default(string), IDictionary migrationSetting = default(IDictionary), IDictionary sourceSetting = default(IDictionary), IDictionary targetSetting = default(IDictionary)) + /// Tables selected for migration + public MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput(string name = default(string), string targetDatabaseName = default(string), IDictionary migrationSetting = default(IDictionary), IDictionary sourceSetting = default(IDictionary), IDictionary targetSetting = default(IDictionary), IList selectedTables = default(IList)) { Name = name; TargetDatabaseName = targetDatabaseName; MigrationSetting = migrationSetting; SourceSetting = sourceSetting; TargetSetting = targetSetting; + SelectedTables = selectedTables; CustomInit(); } @@ -92,5 +94,11 @@ public MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput() [JsonProperty(PropertyName = "targetSetting")] public IDictionary TargetSetting { get; set; } + /// + /// Gets or sets tables selected for migration + /// + [JsonProperty(PropertyName = "selectedTables")] + public IList SelectedTables { get; set; } + } } diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput.cs new file mode 100644 index 000000000000..d9d7292ba23d --- /dev/null +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataMigration.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Selected tables for the migration + /// + public partial class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput + { + /// + /// Initializes a new instance of the + /// MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput class. + /// + public MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput class. + /// + /// Name of the table to migrate + public MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput(string name = default(string)) + { + Name = name; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets name of the table to migrate + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + } +} diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel.cs index 447451e2b20a..ad768b2d1391 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel.cs @@ -38,8 +38,10 @@ public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel() /// Migration state that this database is /// in. Possible values include: 'UNDEFINED', 'CONFIGURING', /// 'INITIALIAZING', 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', - /// 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', - /// 'FAILED' + /// 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED', + /// 'VALIDATING', 'VALIDATION_COMPLETE', 'VALIDATION_FAILED', + /// 'RESTORE_IN_PROGRESS', 'RESTORE_COMPLETED', 'BACKUP_IN_PROGRESS', + /// 'BACKUP_COMPLETED' /// Number of incoming changes /// Number of applied changes /// Number of cdc inserts @@ -104,7 +106,9 @@ public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel() /// Gets migration state that this database is in. Possible values /// include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', /// 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', - /// 'CANCELLING', 'CANCELLED', 'FAILED' + /// 'CANCELLING', 'CANCELLED', 'FAILED', 'VALIDATING', + /// 'VALIDATION_COMPLETE', 'VALIDATION_FAILED', 'RESTORE_IN_PROGRESS', + /// 'RESTORE_COMPLETED', 'BACKUP_IN_PROGRESS', 'BACKUP_COMPLETED' /// [JsonProperty(PropertyName = "migrationState")] public string MigrationState { get; private set; } diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel.cs index b16118f40319..9aa648e99382 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel.cs @@ -38,7 +38,17 @@ public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel() /// Source server name /// Target server version /// Target server name - public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel(string id = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string sourceServerVersion = default(string), string sourceServer = default(string), string targetServerVersion = default(string), string targetServer = default(string)) + /// Source server type. Possible values + /// include: 'Access', 'DB2', 'MySQL', 'Oracle', 'SQL', 'Sybase', + /// 'PostgreSQL', 'MongoDB', 'SQLRDS', 'MySQLRDS', + /// 'PostgreSQLRDS' + /// Target server type. Possible values + /// include: 'SQLServer', 'SQLDB', 'SQLDW', 'SQLMI', 'AzureDBForMySql', + /// 'AzureDBForPostgresSQL', 'MongoDB' + /// Migration status. Possible values include: + /// 'UNDEFINED', 'VALIDATING', 'PENDING', 'COMPLETE', + /// 'ACTION_REQUIRED', 'FAILED' + public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel(string id = default(string), System.DateTimeOffset? startedOn = default(System.DateTimeOffset?), System.DateTimeOffset? endedOn = default(System.DateTimeOffset?), string sourceServerVersion = default(string), string sourceServer = default(string), string targetServerVersion = default(string), string targetServer = default(string), string sourceServerType = default(string), string targetServerType = default(string), string state = default(string)) : base(id) { StartedOn = startedOn; @@ -47,6 +57,9 @@ public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel() SourceServer = sourceServer; TargetServerVersion = targetServerVersion; TargetServer = targetServer; + SourceServerType = sourceServerType; + TargetServerType = targetServerType; + State = state; CustomInit(); } @@ -91,5 +104,28 @@ public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel() [JsonProperty(PropertyName = "targetServer")] public string TargetServer { get; private set; } + /// + /// Gets source server type. Possible values include: 'Access', 'DB2', + /// 'MySQL', 'Oracle', 'SQL', 'Sybase', 'PostgreSQL', 'MongoDB', + /// 'SQLRDS', 'MySQLRDS', 'PostgreSQLRDS' + /// + [JsonProperty(PropertyName = "sourceServerType")] + public string SourceServerType { get; private set; } + + /// + /// Gets target server type. Possible values include: 'SQLServer', + /// 'SQLDB', 'SQLDW', 'SQLMI', 'AzureDBForMySql', + /// 'AzureDBForPostgresSQL', 'MongoDB' + /// + [JsonProperty(PropertyName = "targetServerType")] + public string TargetServerType { get; private set; } + + /// + /// Gets migration status. Possible values include: 'UNDEFINED', + /// 'VALIDATING', 'PENDING', 'COMPLETE', 'ACTION_REQUIRED', 'FAILED' + /// + [JsonProperty(PropertyName = "state")] + public string State { get; private set; } + } } diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties.cs index 907de18031a5..e1a1d666d81d 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.DataMigration.Models /// Properties for the task that migrates PostgreSQL databases to Azure /// Database for PostgreSQL for online migrations /// - [Newtonsoft.Json.JsonObject("Migrate.PostgreSql.AzureDbForPostgreSql.Sync")] + [Newtonsoft.Json.JsonObject("Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2")] public partial class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties : ProjectTaskProperties { /// diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel.cs index e0937da2e23b..9f146edccabb 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel.cs @@ -36,8 +36,10 @@ public MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel() /// Migration state that this database is /// in. Possible values include: 'UNDEFINED', 'CONFIGURING', /// 'INITIALIAZING', 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', - /// 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', - /// 'FAILED' + /// 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED', + /// 'VALIDATING', 'VALIDATION_COMPLETE', 'VALIDATION_FAILED', + /// 'RESTORE_IN_PROGRESS', 'RESTORE_COMPLETED', 'BACKUP_IN_PROGRESS', + /// 'BACKUP_COMPLETED' /// Number of incoming changes /// Number of applied changes /// Number of cdc inserts @@ -102,7 +104,9 @@ public MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel() /// Gets migration state that this database is in. Possible values /// include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', /// 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', - /// 'CANCELLING', 'CANCELLED', 'FAILED' + /// 'CANCELLING', 'CANCELLED', 'FAILED', 'VALIDATING', + /// 'VALIDATION_COMPLETE', 'VALIDATION_FAILED', 'RESTORE_IN_PROGRESS', + /// 'RESTORE_COMPLETED', 'BACKUP_IN_PROGRESS', 'BACKUP_COMPLETED' /// [JsonProperty(PropertyName = "migrationState")] public string MigrationState { get; private set; } diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbCollectionProgress.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbCollectionProgress.cs index 775583bb6364..7d8d7b210a2e 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbCollectionProgress.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbCollectionProgress.cs @@ -10,6 +10,7 @@ namespace Microsoft.Azure.Management.DataMigration.Models { + using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Linq; @@ -17,6 +18,7 @@ namespace Microsoft.Azure.Management.DataMigration.Models /// /// Describes the progress of a collection /// + [Newtonsoft.Json.JsonObject("Collection")] public partial class MongoDbCollectionProgress : MongoDbProgress { /// @@ -42,8 +44,6 @@ public MongoDbCollectionProgress() /// replay /// The number of oplog events replayed so /// far - /// The type of progress object. Possible - /// values include: 'Migration', 'Database', 'Collection' /// Possible values include: 'NotStarted', /// 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', /// 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', @@ -66,8 +66,8 @@ public MongoDbCollectionProgress() /// object. For a collection, this is the database-qualified name. For /// a database, this is the database name. For the overall migration, /// this is null. - public MongoDbCollectionProgress(long bytesCopied, long documentsCopied, string elapsedTime, IDictionary errors, long eventsPending, long eventsReplayed, string resultType, string state, long totalBytes, long totalDocuments, System.DateTimeOffset? lastEventTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayTime = default(System.DateTimeOffset?), string name = default(string), string qualifiedName = default(string)) - : base(bytesCopied, documentsCopied, elapsedTime, errors, eventsPending, eventsReplayed, resultType, state, totalBytes, totalDocuments, lastEventTime, lastReplayTime, name, qualifiedName) + public MongoDbCollectionProgress(long bytesCopied, long documentsCopied, string elapsedTime, IDictionary errors, long eventsPending, long eventsReplayed, string state, long totalBytes, long totalDocuments, System.DateTimeOffset? lastEventTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayTime = default(System.DateTimeOffset?), string name = default(string), string qualifiedName = default(string)) + : base(bytesCopied, documentsCopied, elapsedTime, errors, eventsPending, eventsReplayed, state, totalBytes, totalDocuments, lastEventTime, lastReplayTime, name, qualifiedName) { CustomInit(); } diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbDatabaseProgress.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbDatabaseProgress.cs index 837790ed30de..83a15b99b41c 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbDatabaseProgress.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbDatabaseProgress.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.Management.DataMigration.Models /// /// Describes the progress of a database /// + [Newtonsoft.Json.JsonObject("Database")] public partial class MongoDbDatabaseProgress : MongoDbProgress { /// @@ -43,8 +44,6 @@ public MongoDbDatabaseProgress() /// replay /// The number of oplog events replayed so /// far - /// The type of progress object. Possible - /// values include: 'Migration', 'Database', 'Collection' /// Possible values include: 'NotStarted', /// 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', /// 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', @@ -70,8 +69,8 @@ public MongoDbDatabaseProgress() /// The progress of the collections in the /// database. The keys are the unqualified names of the /// collections - public MongoDbDatabaseProgress(long bytesCopied, long documentsCopied, string elapsedTime, IDictionary errors, long eventsPending, long eventsReplayed, string resultType, string state, long totalBytes, long totalDocuments, System.DateTimeOffset? lastEventTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayTime = default(System.DateTimeOffset?), string name = default(string), string qualifiedName = default(string), IDictionary collections = default(IDictionary)) - : base(bytesCopied, documentsCopied, elapsedTime, errors, eventsPending, eventsReplayed, resultType, state, totalBytes, totalDocuments, lastEventTime, lastReplayTime, name, qualifiedName) + public MongoDbDatabaseProgress(long bytesCopied, long documentsCopied, string elapsedTime, IDictionary errors, long eventsPending, long eventsReplayed, string state, long totalBytes, long totalDocuments, System.DateTimeOffset? lastEventTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayTime = default(System.DateTimeOffset?), string name = default(string), string qualifiedName = default(string), IDictionary collections = default(IDictionary)) + : base(bytesCopied, documentsCopied, elapsedTime, errors, eventsPending, eventsReplayed, state, totalBytes, totalDocuments, lastEventTime, lastReplayTime, name, qualifiedName) { Collections = collections; CustomInit(); diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbMigrationProgress.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbMigrationProgress.cs index b38451916a47..7f8107735209 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbMigrationProgress.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbMigrationProgress.cs @@ -18,6 +18,7 @@ namespace Microsoft.Azure.Management.DataMigration.Models /// /// Describes the progress of the overall migration /// + [Newtonsoft.Json.JsonObject("Migration")] public partial class MongoDbMigrationProgress : MongoDbProgress { /// @@ -43,8 +44,6 @@ public MongoDbMigrationProgress() /// replay /// The number of oplog events replayed so /// far - /// The type of progress object. Possible - /// values include: 'Migration', 'Database', 'Collection' /// Possible values include: 'NotStarted', /// 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', /// 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', @@ -69,8 +68,8 @@ public MongoDbMigrationProgress() /// this is null. /// The progress of the databases in the /// migration. The keys are the names of the databases - public MongoDbMigrationProgress(long bytesCopied, long documentsCopied, string elapsedTime, IDictionary errors, long eventsPending, long eventsReplayed, string resultType, string state, long totalBytes, long totalDocuments, System.DateTimeOffset? lastEventTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayTime = default(System.DateTimeOffset?), string name = default(string), string qualifiedName = default(string), IDictionary databases = default(IDictionary)) - : base(bytesCopied, documentsCopied, elapsedTime, errors, eventsPending, eventsReplayed, resultType, state, totalBytes, totalDocuments, lastEventTime, lastReplayTime, name, qualifiedName) + public MongoDbMigrationProgress(long bytesCopied, long documentsCopied, string elapsedTime, IDictionary errors, long eventsPending, long eventsReplayed, string state, long totalBytes, long totalDocuments, System.DateTimeOffset? lastEventTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayTime = default(System.DateTimeOffset?), string name = default(string), string qualifiedName = default(string), IDictionary databases = default(IDictionary)) + : base(bytesCopied, documentsCopied, elapsedTime, errors, eventsPending, eventsReplayed, state, totalBytes, totalDocuments, lastEventTime, lastReplayTime, name, qualifiedName) { Databases = databases; CustomInit(); diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbProgress.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbProgress.cs index 05b84ee287af..fc01bf9f12e5 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbProgress.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/MongoDbProgress.cs @@ -44,8 +44,6 @@ public MongoDbProgress() /// replay /// The number of oplog events replayed so /// far - /// The type of progress object. Possible - /// values include: 'Migration', 'Database', 'Collection' /// Possible values include: 'NotStarted', /// 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', /// 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', @@ -68,7 +66,7 @@ public MongoDbProgress() /// object. For a collection, this is the database-qualified name. For /// a database, this is the database name. For the overall migration, /// this is null. - public MongoDbProgress(long bytesCopied, long documentsCopied, string elapsedTime, IDictionary errors, long eventsPending, long eventsReplayed, string resultType, string state, long totalBytes, long totalDocuments, System.DateTimeOffset? lastEventTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayTime = default(System.DateTimeOffset?), string name = default(string), string qualifiedName = default(string)) + public MongoDbProgress(long bytesCopied, long documentsCopied, string elapsedTime, IDictionary errors, long eventsPending, long eventsReplayed, string state, long totalBytes, long totalDocuments, System.DateTimeOffset? lastEventTime = default(System.DateTimeOffset?), System.DateTimeOffset? lastReplayTime = default(System.DateTimeOffset?), string name = default(string), string qualifiedName = default(string)) { BytesCopied = bytesCopied; DocumentsCopied = documentsCopied; @@ -80,7 +78,6 @@ public MongoDbProgress() LastReplayTime = lastReplayTime; Name = name; QualifiedName = qualifiedName; - ResultType = resultType; State = state; TotalBytes = totalBytes; TotalDocuments = totalDocuments; @@ -162,13 +159,6 @@ public MongoDbProgress() [JsonProperty(PropertyName = "qualifiedName")] public string QualifiedName { get; set; } - /// - /// Gets or sets the type of progress object. Possible values include: - /// 'Migration', 'Database', 'Collection' - /// - [JsonProperty(PropertyName = "resultType")] - public string ResultType { get; set; } - /// /// Gets or sets possible values include: 'NotStarted', /// 'ValidatingInput', 'Initializing', 'Restarting', 'Copying', @@ -210,10 +200,6 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "Errors"); } - if (ResultType == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "ResultType"); - } if (State == null) { throw new ValidationException(ValidationRules.CannotBeNull, "State"); diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/PostgreSqlConnectionInfo.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/PostgreSqlConnectionInfo.cs index 7332ccd1eaa0..46c1c16451d9 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/PostgreSqlConnectionInfo.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/PostgreSqlConnectionInfo.cs @@ -35,12 +35,18 @@ public PostgreSqlConnectionInfo() /// User name /// Password credential. /// Name of the database - public PostgreSqlConnectionInfo(string serverName, int port, string userName = default(string), string password = default(string), string databaseName = default(string)) + /// Whether to encrypt the + /// connection + /// Whether to trust the server + /// certificate + public PostgreSqlConnectionInfo(string serverName, int port, string userName = default(string), string password = default(string), string databaseName = default(string), bool? encryptConnection = default(bool?), bool? trustServerCertificate = default(bool?)) : base(userName, password) { ServerName = serverName; DatabaseName = databaseName; Port = port; + EncryptConnection = encryptConnection; + TrustServerCertificate = trustServerCertificate; CustomInit(); } @@ -67,6 +73,18 @@ public PostgreSqlConnectionInfo() [JsonProperty(PropertyName = "port")] public int Port { get; set; } + /// + /// Gets or sets whether to encrypt the connection + /// + [JsonProperty(PropertyName = "encryptConnection")] + public bool? EncryptConnection { get; set; } + + /// + /// Gets or sets whether to trust the server certificate + /// + [JsonProperty(PropertyName = "trustServerCertificate")] + public bool? TrustServerCertificate { get; set; } + /// /// Validate the object. /// diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ReplicateMigrationState.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ReplicateMigrationState.cs new file mode 100644 index 000000000000..c9a5a4e9fb1d --- /dev/null +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ReplicateMigrationState.cs @@ -0,0 +1,26 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataMigration.Models +{ + + /// + /// Defines values for ReplicateMigrationState. + /// + public static class ReplicateMigrationState + { + public const string UNDEFINED = "UNDEFINED"; + public const string VALIDATING = "VALIDATING"; + public const string PENDING = "PENDING"; + public const string COMPLETE = "COMPLETE"; + public const string ACTIONREQUIRED = "ACTION_REQUIRED"; + public const string FAILED = "FAILED"; + } +} diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ScenarioSource.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ScenarioSource.cs new file mode 100644 index 000000000000..75b64348935d --- /dev/null +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ScenarioSource.cs @@ -0,0 +1,31 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataMigration.Models +{ + + /// + /// Defines values for ScenarioSource. + /// + public static class ScenarioSource + { + public const string Access = "Access"; + public const string DB2 = "DB2"; + public const string MySQL = "MySQL"; + public const string Oracle = "Oracle"; + public const string SQL = "SQL"; + public const string Sybase = "Sybase"; + public const string PostgreSQL = "PostgreSQL"; + public const string MongoDB = "MongoDB"; + public const string SQLRDS = "SQLRDS"; + public const string MySQLRDS = "MySQLRDS"; + public const string PostgreSQLRDS = "PostgreSQLRDS"; + } +} diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ScenarioTarget.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ScenarioTarget.cs new file mode 100644 index 000000000000..7be2c98e2711 --- /dev/null +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/ScenarioTarget.cs @@ -0,0 +1,27 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataMigration.Models +{ + + /// + /// Defines values for ScenarioTarget. + /// + public static class ScenarioTarget + { + public const string SQLServer = "SQLServer"; + public const string SQLDB = "SQLDB"; + public const string SQLDW = "SQLDW"; + public const string SQLMI = "SQLMI"; + public const string AzureDBForMySql = "AzureDBForMySql"; + public const string AzureDBForPostgresSQL = "AzureDBForPostgresSQL"; + public const string MongoDB = "MongoDB"; + } +} diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/SyncDatabaseMigrationReportingState.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/SyncDatabaseMigrationReportingState.cs index 50ee39dfb64c..9129cc3f2614 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/SyncDatabaseMigrationReportingState.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/Models/SyncDatabaseMigrationReportingState.cs @@ -27,5 +27,12 @@ public static class SyncDatabaseMigrationReportingState public const string CANCELLING = "CANCELLING"; public const string CANCELLED = "CANCELLED"; public const string FAILED = "FAILED"; + public const string VALIDATING = "VALIDATING"; + public const string VALIDATIONCOMPLETE = "VALIDATION_COMPLETE"; + public const string VALIDATIONFAILED = "VALIDATION_FAILED"; + public const string RESTOREINPROGRESS = "RESTORE_IN_PROGRESS"; + public const string RESTORECOMPLETED = "RESTORE_COMPLETED"; + public const string BACKUPINPROGRESS = "BACKUP_IN_PROGRESS"; + public const string BACKUPCOMPLETED = "BACKUP_COMPLETED"; } } diff --git a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/SdkInfo_DataMigrationManagementClient.cs b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/SdkInfo_DataMigrationManagementClient.cs index a32af57b0724..137ba383fd2c 100644 --- a/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/SdkInfo_DataMigrationManagementClient.cs +++ b/sdk/datamigration/Microsoft.Azure.Management.DataMigration/src/Generated/SdkInfo_DataMigrationManagementClient.cs @@ -30,16 +30,5 @@ public static IEnumerable> ApiInfo_DataMigrationMa }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datamigration/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\Dev\\Git\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "411d4cf447639289e4ee1efa4d066df2773ebccd"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -