From 29ecbd8043f3f0f06940bb0f389236de9c83f36f Mon Sep 17 00:00:00 2001
From: "openapi-bot[bot]" <37845953+openapi-bot[bot]@users.noreply.github.com>
Date: Thu, 1 Aug 2019 05:35:18 +0000
Subject: [PATCH 01/22] Generated from 368b5914a375e09ef413285c932b72038a8af7e4
(#4731)
fix: sql preview model validation errors
- Remove empty "body" for RESPONSE_SCHEMA_NOT_IN_SPEC errors
- IsAzureMonitorTargetEnabled -> isAzureMonitorTargetEnabled
- "State" -> "state"
- emailAccountAdmins "true" -> true
- Add 202 response for RestorePoints_Create
- password -> certPassword for ManagedInstanceTdeCertificates_Create and TdeCertificates_Create
---
.../v2017_10_01_preview/pom.xml | 4 +-
.../sql/v2017_10_01_preview/Database.java | 71 +++-
.../v2017_10_01_preview/DatabaseStatus.java | 6 +
.../v2017_10_01_preview/DatabaseUpdate.java | 59 ++-
.../sql/v2017_10_01_preview/ElasticPool.java | 6 +-
.../RecoverableManagedDatabase.java | 42 ++
.../RecoverableManagedDatabases.java | 40 ++
.../implementation/DatabaseImpl.java | 30 ++
.../implementation/DatabaseInner.java | 92 +++-
...lnerabilityAssessmentRuleBaselineImpl.java | 4 +-
.../implementation/ElasticPoolInner.java | 23 +-
...nerabilityAssessmentRuleBaselinesImpl.java | 3 +-
.../RecoverableManagedDatabaseImpl.java | 63 +++
.../RecoverableManagedDatabaseInner.java | 35 ++
.../RecoverableManagedDatabasesImpl.java | 65 +++
.../RecoverableManagedDatabasesInner.java | 401 ++++++++++++++++++
.../SqlManagementClientImpl.java | 14 +
.../implementation/SqlManager.java | 12 +
18 files changed, 950 insertions(+), 20 deletions(-)
create mode 100644 sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/RecoverableManagedDatabase.java
create mode 100644 sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/RecoverableManagedDatabases.java
create mode 100644 sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabaseImpl.java
create mode 100644 sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabaseInner.java
create mode 100644 sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabasesImpl.java
create mode 100644 sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabasesInner.java
diff --git a/sql/resource-manager/v2017_10_01_preview/pom.xml b/sql/resource-manager/v2017_10_01_preview/pom.xml
index db97895f8b5c..99b5452880c0 100644
--- a/sql/resource-manager/v2017_10_01_preview/pom.xml
+++ b/sql/resource-manager/v2017_10_01_preview/pom.xml
@@ -11,8 +11,8 @@
com.microsoft.azure
azure-arm-parent
- 1.1.0
- ../../../pom.management.xml
+ 0.0.3-beta
+ ../../../pom.xml
azure-mgmt-sql
1.0.0-beta
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/Database.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/Database.java
index 966ec7467b22..1032f3897e2b 100644
--- a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/Database.java
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/Database.java
@@ -25,6 +25,11 @@
* Type representing Database.
*/
public interface Database extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+ /**
+ * @return the autoPauseDelay value.
+ */
+ Integer autoPauseDelay();
+
/**
* @return the catalogCollation value.
*/
@@ -120,6 +125,11 @@ public interface Database extends HasInner, Indexable, Refreshabl
*/
Long maxSizeBytes();
+ /**
+ * @return the minCapacity value.
+ */
+ Double minCapacity();
+
/**
* @return the name value.
*/
@@ -236,6 +246,18 @@ interface WithLocation {
WithCreate withLocation(String location);
}
+ /**
+ * The stage of the database definition allowing to specify AutoPauseDelay.
+ */
+ interface WithAutoPauseDelay {
+ /**
+ * Specifies autoPauseDelay.
+ * @param autoPauseDelay Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled
+ * @return the next definition stage
+ */
+ WithCreate withAutoPauseDelay(Integer autoPauseDelay);
+ }
+
/**
* The stage of the database definition allowing to specify CatalogCollation.
*/
@@ -328,6 +350,18 @@ interface WithMaxSizeBytes {
WithCreate withMaxSizeBytes(Long maxSizeBytes);
}
+ /**
+ * The stage of the database definition allowing to specify MinCapacity.
+ */
+ interface WithMinCapacity {
+ /**
+ * Specifies minCapacity.
+ * @param minCapacity Minimal capacity that database will always have allocated, if not paused
+ * @return the next definition stage
+ */
+ WithCreate withMinCapacity(Double minCapacity);
+ }
+
/**
* The stage of the database definition allowing to specify ReadScale.
*/
@@ -406,7 +440,14 @@ interface WithSampleName {
interface WithSku {
/**
* Specifies sku.
- * @param sku The name and tier of the SKU
+ * @param sku The database SKU.
+ The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:
+ ```azurecli
+ az sql db list-editions -l <location> -o table
+ ````
+ ```powershell
+ Get-AzSqlServerServiceObjective -Location <location>
+ ````
* @return the next definition stage
*/
WithCreate withSku(Sku sku);
@@ -465,19 +506,31 @@ interface WithZoneRedundant {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
- interface WithCreate extends Creatable, DefinitionStages.WithCatalogCollation, DefinitionStages.WithCollation, DefinitionStages.WithCreateMode, DefinitionStages.WithElasticPoolId, DefinitionStages.WithLicenseType, DefinitionStages.WithLongTermRetentionBackupResourceId, DefinitionStages.WithMaxSizeBytes, DefinitionStages.WithReadScale, DefinitionStages.WithRecoverableDatabaseId, DefinitionStages.WithRecoveryServicesRecoveryPointId, DefinitionStages.WithRestorableDroppedDatabaseId, DefinitionStages.WithRestorePointInTime, DefinitionStages.WithSampleName, DefinitionStages.WithSku, DefinitionStages.WithSourceDatabaseDeletionDate, DefinitionStages.WithSourceDatabaseId, DefinitionStages.WithTags, DefinitionStages.WithZoneRedundant {
+ interface WithCreate extends Creatable, DefinitionStages.WithAutoPauseDelay, DefinitionStages.WithCatalogCollation, DefinitionStages.WithCollation, DefinitionStages.WithCreateMode, DefinitionStages.WithElasticPoolId, DefinitionStages.WithLicenseType, DefinitionStages.WithLongTermRetentionBackupResourceId, DefinitionStages.WithMaxSizeBytes, DefinitionStages.WithMinCapacity, DefinitionStages.WithReadScale, DefinitionStages.WithRecoverableDatabaseId, DefinitionStages.WithRecoveryServicesRecoveryPointId, DefinitionStages.WithRestorableDroppedDatabaseId, DefinitionStages.WithRestorePointInTime, DefinitionStages.WithSampleName, DefinitionStages.WithSku, DefinitionStages.WithSourceDatabaseDeletionDate, DefinitionStages.WithSourceDatabaseId, DefinitionStages.WithTags, DefinitionStages.WithZoneRedundant {
}
}
/**
* The template for a Database update operation, containing all the settings that can be modified.
*/
- interface Update extends Appliable, UpdateStages.WithCatalogCollation, UpdateStages.WithCollation, UpdateStages.WithCreateMode, UpdateStages.WithElasticPoolId, UpdateStages.WithLicenseType, UpdateStages.WithLongTermRetentionBackupResourceId, UpdateStages.WithMaxSizeBytes, UpdateStages.WithReadScale, UpdateStages.WithRecoverableDatabaseId, UpdateStages.WithRecoveryServicesRecoveryPointId, UpdateStages.WithRestorableDroppedDatabaseId, UpdateStages.WithRestorePointInTime, UpdateStages.WithSampleName, UpdateStages.WithSku, UpdateStages.WithSourceDatabaseDeletionDate, UpdateStages.WithSourceDatabaseId, UpdateStages.WithTags, UpdateStages.WithZoneRedundant {
+ interface Update extends Appliable, UpdateStages.WithAutoPauseDelay, UpdateStages.WithCatalogCollation, UpdateStages.WithCollation, UpdateStages.WithCreateMode, UpdateStages.WithElasticPoolId, UpdateStages.WithLicenseType, UpdateStages.WithLongTermRetentionBackupResourceId, UpdateStages.WithMaxSizeBytes, UpdateStages.WithMinCapacity, UpdateStages.WithReadScale, UpdateStages.WithRecoverableDatabaseId, UpdateStages.WithRecoveryServicesRecoveryPointId, UpdateStages.WithRestorableDroppedDatabaseId, UpdateStages.WithRestorePointInTime, UpdateStages.WithSampleName, UpdateStages.WithSku, UpdateStages.WithSourceDatabaseDeletionDate, UpdateStages.WithSourceDatabaseId, UpdateStages.WithTags, UpdateStages.WithZoneRedundant {
}
/**
* Grouping of Database update stages.
*/
interface UpdateStages {
+ /**
+ * The stage of the database update allowing to specify AutoPauseDelay.
+ */
+ interface WithAutoPauseDelay {
+ /**
+ * Specifies autoPauseDelay.
+ * @param autoPauseDelay Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled
+ * @return the next update stage
+ */
+ Update withAutoPauseDelay(Integer autoPauseDelay);
+ }
+
/**
* The stage of the database update allowing to specify CatalogCollation.
*/
@@ -570,6 +623,18 @@ interface WithMaxSizeBytes {
Update withMaxSizeBytes(Long maxSizeBytes);
}
+ /**
+ * The stage of the database update allowing to specify MinCapacity.
+ */
+ interface WithMinCapacity {
+ /**
+ * Specifies minCapacity.
+ * @param minCapacity Minimal capacity that database will always have allocated, if not paused
+ * @return the next update stage
+ */
+ Update withMinCapacity(Double minCapacity);
+ }
+
/**
* The stage of the database update allowing to specify ReadScale.
*/
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/DatabaseStatus.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/DatabaseStatus.java
index 9f978f320c7d..3fb2f98287b2 100644
--- a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/DatabaseStatus.java
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/DatabaseStatus.java
@@ -70,6 +70,12 @@ public final class DatabaseStatus extends ExpandableStringEnum {
/** Static value Scaling for DatabaseStatus. */
public static final DatabaseStatus SCALING = fromString("Scaling");
+ /** Static value OfflineChangingDwPerformanceTiers for DatabaseStatus. */
+ public static final DatabaseStatus OFFLINE_CHANGING_DW_PERFORMANCE_TIERS = fromString("OfflineChangingDwPerformanceTiers");
+
+ /** Static value OnlineChangingDwPerformanceTiers for DatabaseStatus. */
+ public static final DatabaseStatus ONLINE_CHANGING_DW_PERFORMANCE_TIERS = fromString("OnlineChangingDwPerformanceTiers");
+
/**
* Creates or finds a DatabaseStatus from its string representation.
* @param name a name to look for
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/DatabaseUpdate.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/DatabaseUpdate.java
index eafe8ef45060..ac090462a514 100644
--- a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/DatabaseUpdate.java
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/DatabaseUpdate.java
@@ -106,7 +106,8 @@ public class DatabaseUpdate {
* 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline',
* 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying',
* 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused',
- * 'Resuming', 'Scaling'.
+ * 'Resuming', 'Scaling', 'OfflineChangingDwPerformanceTiers',
+ * 'OnlineChangingDwPerformanceTiers'.
*/
@JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY)
private DatabaseStatus status;
@@ -237,6 +238,20 @@ public class DatabaseUpdate {
@JsonProperty(value = "properties.currentSku", access = JsonProperty.Access.WRITE_ONLY)
private Sku currentSku;
+ /**
+ * Time in minutes after which database is automatically paused. A value of
+ * -1 means that automatic pause is disabled.
+ */
+ @JsonProperty(value = "properties.autoPauseDelay")
+ private Integer autoPauseDelay;
+
+ /**
+ * Minimal capacity that database will always have allocated, if not
+ * paused.
+ */
+ @JsonProperty(value = "properties.minCapacity")
+ private Double minCapacity;
+
/**
* Resource tags.
*/
@@ -400,7 +415,7 @@ public DatabaseUpdate withSourceDatabaseId(String sourceDatabaseId) {
}
/**
- * Get the status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling'.
+ * Get the status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling', 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers'.
*
* @return the status value
*/
@@ -689,6 +704,46 @@ public Sku currentSku() {
return this.currentSku;
}
+ /**
+ * Get time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled.
+ *
+ * @return the autoPauseDelay value
+ */
+ public Integer autoPauseDelay() {
+ return this.autoPauseDelay;
+ }
+
+ /**
+ * Set time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled.
+ *
+ * @param autoPauseDelay the autoPauseDelay value to set
+ * @return the DatabaseUpdate object itself.
+ */
+ public DatabaseUpdate withAutoPauseDelay(Integer autoPauseDelay) {
+ this.autoPauseDelay = autoPauseDelay;
+ return this;
+ }
+
+ /**
+ * Get minimal capacity that database will always have allocated, if not paused.
+ *
+ * @return the minCapacity value
+ */
+ public Double minCapacity() {
+ return this.minCapacity;
+ }
+
+ /**
+ * Set minimal capacity that database will always have allocated, if not paused.
+ *
+ * @param minCapacity the minCapacity value to set
+ * @return the DatabaseUpdate object itself.
+ */
+ public DatabaseUpdate withMinCapacity(Double minCapacity) {
+ this.minCapacity = minCapacity;
+ return this;
+ }
+
/**
* Get resource tags.
*
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/ElasticPool.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/ElasticPool.java
index c7b12d377c52..fa4d492b98f7 100644
--- a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/ElasticPool.java
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/ElasticPool.java
@@ -172,7 +172,11 @@ interface WithPerDatabaseSettings {
interface WithSku {
/**
* Specifies sku.
- * @param sku the sku parameter value
+ * @param sku The elastic pool SKU.
+ The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the following command:
+ ```azurecli
+ az sql elastic-pool list-editions -l <location> -o table
+ ````
* @return the next definition stage
*/
WithCreate withSku(Sku sku);
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/RecoverableManagedDatabase.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/RecoverableManagedDatabase.java
new file mode 100644
index 000000000000..eca31ea91304
--- /dev/null
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/RecoverableManagedDatabase.java
@@ -0,0 +1,42 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.sql.v2017_10_01_preview;
+
+import com.microsoft.azure.arm.model.HasInner;
+import com.microsoft.azure.management.sql.v2017_10_01_preview.implementation.RecoverableManagedDatabaseInner;
+import com.microsoft.azure.arm.model.Indexable;
+import com.microsoft.azure.arm.model.Refreshable;
+import com.microsoft.azure.arm.resources.models.HasManager;
+import com.microsoft.azure.management.sql.v2017_10_01_preview.implementation.SqlManager;
+
+/**
+ * Type representing RecoverableManagedDatabase.
+ */
+public interface RecoverableManagedDatabase extends HasInner, Indexable, Refreshable, HasManager {
+ /**
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * @return the lastAvailableBackupDate value.
+ */
+ String lastAvailableBackupDate();
+
+ /**
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * @return the type value.
+ */
+ String type();
+
+}
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/RecoverableManagedDatabases.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/RecoverableManagedDatabases.java
new file mode 100644
index 000000000000..c73338b1d549
--- /dev/null
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/RecoverableManagedDatabases.java
@@ -0,0 +1,40 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.sql.v2017_10_01_preview;
+
+import rx.Observable;
+import com.microsoft.azure.management.sql.v2017_10_01_preview.implementation.RecoverableManagedDatabasesInner;
+import com.microsoft.azure.arm.model.HasInner;
+
+/**
+ * Type representing RecoverableManagedDatabases.
+ */
+public interface RecoverableManagedDatabases extends HasInner {
+ /**
+ * Gets a recoverable managed database.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param managedInstanceName The name of the managed instance.
+ * @param recoverableDatabaseName the String value
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable getAsync(String resourceGroupName, String managedInstanceName, String recoverableDatabaseName);
+
+ /**
+ * Gets a list of recoverable managed databases.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param managedInstanceName The name of the managed instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable for the request
+ */
+ Observable listByInstanceAsync(final String resourceGroupName, final String managedInstanceName);
+
+}
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/DatabaseImpl.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/DatabaseImpl.java
index 57538e6de24c..821c2b33747f 100644
--- a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/DatabaseImpl.java
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/DatabaseImpl.java
@@ -101,6 +101,11 @@ private void resetCreateUpdateParameters() {
this.updateParameter = new DatabaseUpdate();
}
+ @Override
+ public Integer autoPauseDelay() {
+ return this.inner().autoPauseDelay();
+ }
+
@Override
public CatalogCollationType catalogCollation() {
return this.inner().catalogCollation();
@@ -196,6 +201,11 @@ public Long maxSizeBytes() {
return this.inner().maxSizeBytes();
}
+ @Override
+ public Double minCapacity() {
+ return this.inner().minCapacity();
+ }
+
@Override
public String name() {
return this.inner().name();
@@ -284,6 +294,16 @@ public DatabaseImpl withLocation(String location) {
return this;
}
+ @Override
+ public DatabaseImpl withAutoPauseDelay(Integer autoPauseDelay) {
+ if (isInCreateMode()) {
+ this.inner().withAutoPauseDelay(autoPauseDelay);
+ } else {
+ this.updateParameter.withAutoPauseDelay(autoPauseDelay);
+ }
+ return this;
+ }
+
@Override
public DatabaseImpl withCatalogCollation(CatalogCollationType catalogCollation) {
if (isInCreateMode()) {
@@ -354,6 +374,16 @@ public DatabaseImpl withMaxSizeBytes(Long maxSizeBytes) {
return this;
}
+ @Override
+ public DatabaseImpl withMinCapacity(Double minCapacity) {
+ if (isInCreateMode()) {
+ this.inner().withMinCapacity(minCapacity);
+ } else {
+ this.updateParameter.withMinCapacity(minCapacity);
+ }
+ return this;
+ }
+
@Override
public DatabaseImpl withReadScale(DatabaseReadScale readScale) {
if (isInCreateMode()) {
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/DatabaseInner.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/DatabaseInner.java
index 9c0e11f49b7f..d9598a583582 100644
--- a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/DatabaseInner.java
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/DatabaseInner.java
@@ -27,7 +27,20 @@
@JsonFlatten
public class DatabaseInner extends Resource {
/**
- * The name and tier of the SKU.
+ * The database SKU.
+ *
+ * The list of SKUs may vary by region and support offer. To determine the
+ * SKUs (including the SKU name, tier/edition, family, and capacity) that
+ * are available to your subscription in an Azure region, use the
+ * `Capabilities_ListByLocation` REST API or one of the following commands:
+ *
+ * ```azurecli
+ * az sql db list-editions -l <location> -o table
+ * ````
+ *
+ * ```powershell
+ * Get-AzSqlServerServiceObjective -Location <location>
+ * ````.
*/
@JsonProperty(value = "sku")
private Sku sku;
@@ -125,7 +138,8 @@ public class DatabaseInner extends Resource {
* 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline',
* 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying',
* 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused',
- * 'Resuming', 'Scaling'.
+ * 'Resuming', 'Scaling', 'OfflineChangingDwPerformanceTiers',
+ * 'OnlineChangingDwPerformanceTiers'.
*/
@JsonProperty(value = "properties.status", access = JsonProperty.Access.WRITE_ONLY)
private DatabaseStatus status;
@@ -257,7 +271,28 @@ public class DatabaseInner extends Resource {
private Sku currentSku;
/**
- * Get the name and tier of the SKU.
+ * Time in minutes after which database is automatically paused. A value of
+ * -1 means that automatic pause is disabled.
+ */
+ @JsonProperty(value = "properties.autoPauseDelay")
+ private Integer autoPauseDelay;
+
+ /**
+ * Minimal capacity that database will always have allocated, if not
+ * paused.
+ */
+ @JsonProperty(value = "properties.minCapacity")
+ private Double minCapacity;
+
+ /**
+ * Get the database SKU.
+ The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:
+ ```azurecli
+ az sql db list-editions -l <location> -o table
+ ````
+ ```powershell
+ Get-AzSqlServerServiceObjective -Location <location>
+ ````.
*
* @return the sku value
*/
@@ -266,7 +301,14 @@ public Sku sku() {
}
/**
- * Set the name and tier of the SKU.
+ * Set the database SKU.
+ The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or one of the following commands:
+ ```azurecli
+ az sql db list-editions -l <location> -o table
+ ````
+ ```powershell
+ Get-AzSqlServerServiceObjective -Location <location>
+ ````.
*
* @param sku the sku value to set
* @return the DatabaseInner object itself.
@@ -431,7 +473,7 @@ public DatabaseInner withSourceDatabaseId(String sourceDatabaseId) {
}
/**
- * Get the status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling'.
+ * Get the status of the database. Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling', 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers'.
*
* @return the status value
*/
@@ -720,4 +762,44 @@ public Sku currentSku() {
return this.currentSku;
}
+ /**
+ * Get time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled.
+ *
+ * @return the autoPauseDelay value
+ */
+ public Integer autoPauseDelay() {
+ return this.autoPauseDelay;
+ }
+
+ /**
+ * Set time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled.
+ *
+ * @param autoPauseDelay the autoPauseDelay value to set
+ * @return the DatabaseInner object itself.
+ */
+ public DatabaseInner withAutoPauseDelay(Integer autoPauseDelay) {
+ this.autoPauseDelay = autoPauseDelay;
+ return this;
+ }
+
+ /**
+ * Get minimal capacity that database will always have allocated, if not paused.
+ *
+ * @return the minCapacity value
+ */
+ public Double minCapacity() {
+ return this.minCapacity;
+ }
+
+ /**
+ * Set minimal capacity that database will always have allocated, if not paused.
+ *
+ * @param minCapacity the minCapacity value to set
+ * @return the DatabaseInner object itself.
+ */
+ public DatabaseInner withMinCapacity(Double minCapacity) {
+ this.minCapacity = minCapacity;
+ return this;
+ }
+
}
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/DatabaseVulnerabilityAssessmentRuleBaselineImpl.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/DatabaseVulnerabilityAssessmentRuleBaselineImpl.java
index cdae43ef347f..7c4b03e3bda7 100644
--- a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/DatabaseVulnerabilityAssessmentRuleBaselineImpl.java
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/DatabaseVulnerabilityAssessmentRuleBaselineImpl.java
@@ -29,7 +29,7 @@ class DatabaseVulnerabilityAssessmentRuleBaselineImpl extends CreatableUpdatable
super(name, new DatabaseVulnerabilityAssessmentRuleBaselineInner());
this.manager = manager;
// Set resource name
- this.baselineName = VulnerabilityAssessmentPolicyBaselineName.fromString(name);
+ this.baselineName = name;
//
}
@@ -37,7 +37,7 @@ class DatabaseVulnerabilityAssessmentRuleBaselineImpl extends CreatableUpdatable
super(inner.name(), inner);
this.manager = manager;
// Set resource name
- this.baselineName = VulnerabilityAssessmentPolicyBaselineName.fromString(inner.name());
+ this.baselineName = inner.name();
// set resource ancestor and positional variables
this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups");
this.managedInstanceName = IdParsingUtils.getValueFromIdByName(inner.id(), "managedInstances");
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/ElasticPoolInner.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/ElasticPoolInner.java
index e7e1135945e9..d5a449ff60bd 100644
--- a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/ElasticPoolInner.java
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/ElasticPoolInner.java
@@ -23,7 +23,16 @@
@JsonFlatten
public class ElasticPoolInner extends Resource {
/**
- * The sku property.
+ * The elastic pool SKU.
+ *
+ * The list of SKUs may vary by region and support offer. To determine the
+ * SKUs (including the SKU name, tier/edition, family, and capacity) that
+ * are available to your subscription in an Azure region, use the
+ * `Capabilities_ListByLocation` REST API or the following command:
+ *
+ * ```azurecli
+ * az sql elastic-pool list-editions -l <location> -o table
+ * ````.
*/
@JsonProperty(value = "sku")
private Sku sku;
@@ -76,7 +85,11 @@ public class ElasticPoolInner extends Resource {
private ElasticPoolLicenseType licenseType;
/**
- * Get the sku value.
+ * Get the elastic pool SKU.
+ The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the following command:
+ ```azurecli
+ az sql elastic-pool list-editions -l <location> -o table
+ ````.
*
* @return the sku value
*/
@@ -85,7 +98,11 @@ public Sku sku() {
}
/**
- * Set the sku value.
+ * Set the elastic pool SKU.
+ The list of SKUs may vary by region and support offer. To determine the SKUs (including the SKU name, tier/edition, family, and capacity) that are available to your subscription in an Azure region, use the `Capabilities_ListByLocation` REST API or the following command:
+ ```azurecli
+ az sql elastic-pool list-editions -l <location> -o table
+ ````.
*
* @param sku the sku value to set
* @return the ElasticPoolInner object itself.
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl.java
index 7b7f4ee69543..251a0a223bfc 100644
--- a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl.java
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesImpl.java
@@ -11,7 +11,6 @@
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import com.microsoft.azure.management.sql.v2017_10_01_preview.ManagedDatabaseVulnerabilityAssessmentRuleBaselines;
-import com.microsoft.azure.management.sql.v2017_10_01_preview.VulnerabilityAssessmentPolicyBaselineName;
import rx.Observable;
import rx.functions.Func1;
import com.microsoft.azure.management.sql.v2017_10_01_preview.DatabaseVulnerabilityAssessmentRuleBaseline;
@@ -47,7 +46,7 @@ private Observable getDatabase
String managedInstanceName = IdParsingUtils.getValueFromIdByName(id, "managedInstances");
String databaseName = IdParsingUtils.getValueFromIdByName(id, "databases");
String ruleId = IdParsingUtils.getValueFromIdByName(id, "rules");
- VulnerabilityAssessmentPolicyBaselineName baselineName = VulnerabilityAssessmentPolicyBaselineName.valueOf(IdParsingUtils.getValueFromIdByName(id, "baselines"));
+ String baselineName = VulnerabilityAssessmentPolicyBaselineName.valueOf(IdParsingUtils.getValueFromIdByName(id, "baselines"));
ManagedDatabaseVulnerabilityAssessmentRuleBaselinesInner client = this.inner();
return client.getAsync(resourceGroupName, managedInstanceName, databaseName, ruleId, baselineName);
}
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabaseImpl.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabaseImpl.java
new file mode 100644
index 000000000000..9dbd7757bdf5
--- /dev/null
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabaseImpl.java
@@ -0,0 +1,63 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.sql.v2017_10_01_preview.implementation;
+
+import com.microsoft.azure.management.sql.v2017_10_01_preview.RecoverableManagedDatabase;
+import com.microsoft.azure.arm.model.implementation.IndexableRefreshableWrapperImpl;
+import rx.Observable;
+
+class RecoverableManagedDatabaseImpl extends IndexableRefreshableWrapperImpl implements RecoverableManagedDatabase {
+ private final SqlManager manager;
+ private String resourceGroupName;
+ private String managedInstanceName;
+ private String recoverableDatabaseName;
+
+ RecoverableManagedDatabaseImpl(RecoverableManagedDatabaseInner inner, SqlManager manager) {
+ super(null, inner);
+ this.manager = manager;
+ // set resource ancestor and positional variables
+ this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups");
+ this.managedInstanceName = IdParsingUtils.getValueFromIdByName(inner.id(), "managedInstances");
+ this.recoverableDatabaseName = IdParsingUtils.getValueFromIdByName(inner.id(), "recoverableDatabases");
+ }
+
+ @Override
+ public SqlManager manager() {
+ return this.manager;
+ }
+
+ @Override
+ protected Observable getInnerAsync() {
+ RecoverableManagedDatabasesInner client = this.manager().inner().recoverableManagedDatabases();
+ return client.getAsync(this.resourceGroupName, this.managedInstanceName, this.recoverableDatabaseName);
+ }
+
+
+
+ @Override
+ public String id() {
+ return this.inner().id();
+ }
+
+ @Override
+ public String lastAvailableBackupDate() {
+ return this.inner().lastAvailableBackupDate();
+ }
+
+ @Override
+ public String name() {
+ return this.inner().name();
+ }
+
+ @Override
+ public String type() {
+ return this.inner().type();
+ }
+
+}
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabaseInner.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabaseInner.java
new file mode 100644
index 000000000000..08d0cf8784a1
--- /dev/null
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabaseInner.java
@@ -0,0 +1,35 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.sql.v2017_10_01_preview.implementation;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.microsoft.rest.serializer.JsonFlatten;
+import com.microsoft.azure.ProxyResource;
+
+/**
+ * A recoverable managed database resource.
+ */
+@JsonFlatten
+public class RecoverableManagedDatabaseInner extends ProxyResource {
+ /**
+ * The last available backup date.
+ */
+ @JsonProperty(value = "properties.lastAvailableBackupDate", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastAvailableBackupDate;
+
+ /**
+ * Get the last available backup date.
+ *
+ * @return the lastAvailableBackupDate value
+ */
+ public String lastAvailableBackupDate() {
+ return this.lastAvailableBackupDate;
+ }
+
+}
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabasesImpl.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabasesImpl.java
new file mode 100644
index 000000000000..119953c77ec6
--- /dev/null
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabasesImpl.java
@@ -0,0 +1,65 @@
+/**
+ * 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.
+ *
+ */
+
+package com.microsoft.azure.management.sql.v2017_10_01_preview.implementation;
+
+import com.microsoft.azure.arm.model.implementation.WrapperImpl;
+import com.microsoft.azure.management.sql.v2017_10_01_preview.RecoverableManagedDatabases;
+import rx.Observable;
+import rx.functions.Func1;
+import com.microsoft.azure.Page;
+import com.microsoft.azure.management.sql.v2017_10_01_preview.RecoverableManagedDatabase;
+
+class RecoverableManagedDatabasesImpl extends WrapperImpl implements RecoverableManagedDatabases {
+ private final SqlManager manager;
+
+ RecoverableManagedDatabasesImpl(SqlManager manager) {
+ super(manager.inner().recoverableManagedDatabases());
+ this.manager = manager;
+ }
+
+ public SqlManager manager() {
+ return this.manager;
+ }
+
+ private RecoverableManagedDatabaseImpl wrapModel(RecoverableManagedDatabaseInner inner) {
+ return new RecoverableManagedDatabaseImpl(inner, manager());
+ }
+
+ @Override
+ public Observable listByInstanceAsync(final String resourceGroupName, final String managedInstanceName) {
+ RecoverableManagedDatabasesInner client = this.inner();
+ return client.listByInstanceAsync(resourceGroupName, managedInstanceName)
+ .flatMapIterable(new Func1, Iterable>() {
+ @Override
+ public Iterable call(Page page) {
+ return page.items();
+ }
+ })
+ .map(new Func1() {
+ @Override
+ public RecoverableManagedDatabase call(RecoverableManagedDatabaseInner inner) {
+ return wrapModel(inner);
+ }
+ });
+ }
+
+ @Override
+ public Observable getAsync(String resourceGroupName, String managedInstanceName, String recoverableDatabaseName) {
+ RecoverableManagedDatabasesInner client = this.inner();
+ return client.getAsync(resourceGroupName, managedInstanceName, recoverableDatabaseName)
+ .map(new Func1() {
+ @Override
+ public RecoverableManagedDatabase call(RecoverableManagedDatabaseInner inner) {
+ return wrapModel(inner);
+ }
+ });
+ }
+
+}
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabasesInner.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabasesInner.java
new file mode 100644
index 000000000000..741eb5979e22
--- /dev/null
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/RecoverableManagedDatabasesInner.java
@@ -0,0 +1,401 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.sql.v2017_10_01_preview.implementation;
+
+import retrofit2.Retrofit;
+import com.google.common.reflect.TypeToken;
+import com.microsoft.azure.AzureServiceFuture;
+import com.microsoft.azure.CloudException;
+import com.microsoft.azure.ListOperationCallback;
+import com.microsoft.azure.Page;
+import com.microsoft.azure.PagedList;
+import com.microsoft.rest.ServiceCallback;
+import com.microsoft.rest.ServiceFuture;
+import com.microsoft.rest.ServiceResponse;
+import java.io.IOException;
+import java.util.List;
+import okhttp3.ResponseBody;
+import retrofit2.http.GET;
+import retrofit2.http.Header;
+import retrofit2.http.Headers;
+import retrofit2.http.Path;
+import retrofit2.http.Query;
+import retrofit2.http.Url;
+import retrofit2.Response;
+import rx.functions.Func1;
+import rx.Observable;
+
+/**
+ * An instance of this class provides access to all the operations defined
+ * in RecoverableManagedDatabases.
+ */
+public class RecoverableManagedDatabasesInner {
+ /** The Retrofit service to perform REST calls. */
+ private RecoverableManagedDatabasesService service;
+ /** The service client containing this operation class. */
+ private SqlManagementClientImpl client;
+
+ /**
+ * Initializes an instance of RecoverableManagedDatabasesInner.
+ *
+ * @param retrofit the Retrofit instance built from a Retrofit Builder.
+ * @param client the instance of the service client containing this operation class.
+ */
+ public RecoverableManagedDatabasesInner(Retrofit retrofit, SqlManagementClientImpl client) {
+ this.service = retrofit.create(RecoverableManagedDatabasesService.class);
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for RecoverableManagedDatabases to be
+ * used by Retrofit to perform actually REST calls.
+ */
+ interface RecoverableManagedDatabasesService {
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.sql.v2017_10_01_preview.RecoverableManagedDatabases listByInstance" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/recoverableDatabases")
+ Observable> listByInstance(@Path("resourceGroupName") String resourceGroupName, @Path("managedInstanceName") String managedInstanceName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.sql.v2017_10_01_preview.RecoverableManagedDatabases get" })
+ @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/recoverableDatabases/{recoverableDatabaseName}")
+ Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("managedInstanceName") String managedInstanceName, @Path("recoverableDatabaseName") String recoverableDatabaseName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.sql.v2017_10_01_preview.RecoverableManagedDatabases listByInstanceNext" })
+ @GET
+ Observable> listByInstanceNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);
+
+ }
+
+ /**
+ * Gets a list of recoverable managed databases.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param managedInstanceName The name of the managed instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PagedList<RecoverableManagedDatabaseInner> object if successful.
+ */
+ public PagedList listByInstance(final String resourceGroupName, final String managedInstanceName) {
+ ServiceResponse> response = listByInstanceSinglePageAsync(resourceGroupName, managedInstanceName).toBlocking().single();
+ return new PagedList(response.body()) {
+ @Override
+ public Page nextPage(String nextPageLink) {
+ return listByInstanceNextSinglePageAsync(nextPageLink).toBlocking().single().body();
+ }
+ };
+ }
+
+ /**
+ * Gets a list of recoverable managed databases.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param managedInstanceName The name of the managed instance.
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture> listByInstanceAsync(final String resourceGroupName, final String managedInstanceName, final ListOperationCallback serviceCallback) {
+ return AzureServiceFuture.fromPageResponse(
+ listByInstanceSinglePageAsync(resourceGroupName, managedInstanceName),
+ new Func1>>>() {
+ @Override
+ public Observable>> call(String nextPageLink) {
+ return listByInstanceNextSinglePageAsync(nextPageLink);
+ }
+ },
+ serviceCallback);
+ }
+
+ /**
+ * Gets a list of recoverable managed databases.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param managedInstanceName The name of the managed instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<RecoverableManagedDatabaseInner> object
+ */
+ public Observable> listByInstanceAsync(final String resourceGroupName, final String managedInstanceName) {
+ return listByInstanceWithServiceResponseAsync(resourceGroupName, managedInstanceName)
+ .map(new Func1>, Page>() {
+ @Override
+ public Page call(ServiceResponse> response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets a list of recoverable managed databases.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param managedInstanceName The name of the managed instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<RecoverableManagedDatabaseInner> object
+ */
+ public Observable>> listByInstanceWithServiceResponseAsync(final String resourceGroupName, final String managedInstanceName) {
+ return listByInstanceSinglePageAsync(resourceGroupName, managedInstanceName)
+ .concatMap(new Func1>, Observable>>>() {
+ @Override
+ public Observable>> call(ServiceResponse> page) {
+ String nextPageLink = page.body().nextPageLink();
+ if (nextPageLink == null) {
+ return Observable.just(page);
+ }
+ return Observable.just(page).concatWith(listByInstanceNextWithServiceResponseAsync(nextPageLink));
+ }
+ });
+ }
+
+ /**
+ * Gets a list of recoverable managed databases.
+ *
+ ServiceResponse> * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ ServiceResponse> * @param managedInstanceName The name of the managed instance.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the PagedList<RecoverableManagedDatabaseInner> object wrapped in {@link ServiceResponse} if successful.
+ */
+ public Observable>> listByInstanceSinglePageAsync(final String resourceGroupName, final String managedInstanceName) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (managedInstanceName == null) {
+ throw new IllegalArgumentException("Parameter managedInstanceName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ return service.listByInstance(resourceGroupName, managedInstanceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>>() {
+ @Override
+ public Observable>> call(Response response) {
+ try {
+ ServiceResponse> result = listByInstanceDelegate(response);
+ return Observable.just(new ServiceResponse>(result.body(), result.response()));
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse> listByInstanceDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken>() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+ /**
+ * Gets a recoverable managed database.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param managedInstanceName The name of the managed instance.
+ * @param recoverableDatabaseName the String value
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the RecoverableManagedDatabaseInner object if successful.
+ */
+ public RecoverableManagedDatabaseInner get(String resourceGroupName, String managedInstanceName, String recoverableDatabaseName) {
+ return getWithServiceResponseAsync(resourceGroupName, managedInstanceName, recoverableDatabaseName).toBlocking().single().body();
+ }
+
+ /**
+ * Gets a recoverable managed database.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param managedInstanceName The name of the managed instance.
+ * @param recoverableDatabaseName the String value
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture getAsync(String resourceGroupName, String managedInstanceName, String recoverableDatabaseName, final ServiceCallback serviceCallback) {
+ return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, managedInstanceName, recoverableDatabaseName), serviceCallback);
+ }
+
+ /**
+ * Gets a recoverable managed database.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param managedInstanceName The name of the managed instance.
+ * @param recoverableDatabaseName the String value
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the RecoverableManagedDatabaseInner object
+ */
+ public Observable getAsync(String resourceGroupName, String managedInstanceName, String recoverableDatabaseName) {
+ return getWithServiceResponseAsync(resourceGroupName, managedInstanceName, recoverableDatabaseName).map(new Func1, RecoverableManagedDatabaseInner>() {
+ @Override
+ public RecoverableManagedDatabaseInner call(ServiceResponse response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets a recoverable managed database.
+ *
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
+ * @param managedInstanceName The name of the managed instance.
+ * @param recoverableDatabaseName the String value
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the RecoverableManagedDatabaseInner object
+ */
+ public Observable> getWithServiceResponseAsync(String resourceGroupName, String managedInstanceName, String recoverableDatabaseName) {
+ if (resourceGroupName == null) {
+ throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
+ }
+ if (managedInstanceName == null) {
+ throw new IllegalArgumentException("Parameter managedInstanceName is required and cannot be null.");
+ }
+ if (recoverableDatabaseName == null) {
+ throw new IllegalArgumentException("Parameter recoverableDatabaseName is required and cannot be null.");
+ }
+ if (this.client.subscriptionId() == null) {
+ throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
+ }
+ if (this.client.apiVersion() == null) {
+ throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
+ }
+ return service.get(resourceGroupName, managedInstanceName, recoverableDatabaseName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>() {
+ @Override
+ public Observable> call(Response response) {
+ try {
+ ServiceResponse clientResponse = getDelegate(response);
+ return Observable.just(clientResponse);
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse getDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+ /**
+ * Gets a list of recoverable managed databases.
+ *
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @throws CloudException thrown if the request is rejected by server
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
+ * @return the PagedList<RecoverableManagedDatabaseInner> object if successful.
+ */
+ public PagedList listByInstanceNext(final String nextPageLink) {
+ ServiceResponse> response = listByInstanceNextSinglePageAsync(nextPageLink).toBlocking().single();
+ return new PagedList(response.body()) {
+ @Override
+ public Page nextPage(String nextPageLink) {
+ return listByInstanceNextSinglePageAsync(nextPageLink).toBlocking().single().body();
+ }
+ };
+ }
+
+ /**
+ * Gets a list of recoverable managed databases.
+ *
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @param serviceFuture the ServiceFuture object tracking the Retrofit calls
+ * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the {@link ServiceFuture} object
+ */
+ public ServiceFuture> listByInstanceNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback) {
+ return AzureServiceFuture.fromPageResponse(
+ listByInstanceNextSinglePageAsync(nextPageLink),
+ new Func1>>>() {
+ @Override
+ public Observable>> call(String nextPageLink) {
+ return listByInstanceNextSinglePageAsync(nextPageLink);
+ }
+ },
+ serviceCallback);
+ }
+
+ /**
+ * Gets a list of recoverable managed databases.
+ *
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<RecoverableManagedDatabaseInner> object
+ */
+ public Observable> listByInstanceNextAsync(final String nextPageLink) {
+ return listByInstanceNextWithServiceResponseAsync(nextPageLink)
+ .map(new Func1>, Page>() {
+ @Override
+ public Page call(ServiceResponse> response) {
+ return response.body();
+ }
+ });
+ }
+
+ /**
+ * Gets a list of recoverable managed databases.
+ *
+ * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the observable to the PagedList<RecoverableManagedDatabaseInner> object
+ */
+ public Observable>> listByInstanceNextWithServiceResponseAsync(final String nextPageLink) {
+ return listByInstanceNextSinglePageAsync(nextPageLink)
+ .concatMap(new Func1>, Observable>>>() {
+ @Override
+ public Observable>> call(ServiceResponse> page) {
+ String nextPageLink = page.body().nextPageLink();
+ if (nextPageLink == null) {
+ return Observable.just(page);
+ }
+ return Observable.just(page).concatWith(listByInstanceNextWithServiceResponseAsync(nextPageLink));
+ }
+ });
+ }
+
+ /**
+ * Gets a list of recoverable managed databases.
+ *
+ ServiceResponse> * @param nextPageLink The NextLink from the previous successful call to List operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation
+ * @return the PagedList<RecoverableManagedDatabaseInner> object wrapped in {@link ServiceResponse} if successful.
+ */
+ public Observable>> listByInstanceNextSinglePageAsync(final String nextPageLink) {
+ if (nextPageLink == null) {
+ throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.");
+ }
+ String nextUrl = String.format("%s", nextPageLink);
+ return service.listByInstanceNext(nextUrl, this.client.acceptLanguage(), this.client.userAgent())
+ .flatMap(new Func1, Observable>>>() {
+ @Override
+ public Observable>> call(Response response) {
+ try {
+ ServiceResponse> result = listByInstanceNextDelegate(response);
+ return Observable.just(new ServiceResponse>(result.body(), result.response()));
+ } catch (Throwable t) {
+ return Observable.error(t);
+ }
+ }
+ });
+ }
+
+ private ServiceResponse> listByInstanceNextDelegate(Response response) throws CloudException, IOException, IllegalArgumentException {
+ return this.client.restClient().responseBuilderFactory()., CloudException>newInstance(this.client.serializerAdapter())
+ .register(200, new TypeToken>() { }.getType())
+ .registerError(CloudException.class)
+ .build(response);
+ }
+
+}
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/SqlManagementClientImpl.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/SqlManagementClientImpl.java
index d32e61c6610d..ad2a3c376e69 100644
--- a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/SqlManagementClientImpl.java
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/SqlManagementClientImpl.java
@@ -327,6 +327,19 @@ public ManagedInstanceEncryptionProtectorsInner managedInstanceEncryptionProtect
return this.managedInstanceEncryptionProtectors;
}
+ /**
+ * The RecoverableManagedDatabasesInner object to access its operations.
+ */
+ private RecoverableManagedDatabasesInner recoverableManagedDatabases;
+
+ /**
+ * Gets the RecoverableManagedDatabasesInner object to access its operations.
+ * @return the RecoverableManagedDatabasesInner object.
+ */
+ public RecoverableManagedDatabasesInner recoverableManagedDatabases() {
+ return this.recoverableManagedDatabases;
+ }
+
/**
* Initializes an instance of SqlManagementClient client.
*
@@ -377,6 +390,7 @@ protected void initialize() {
this.managedInstanceTdeCertificates = new ManagedInstanceTdeCertificatesInner(restClient().retrofit(), this);
this.managedInstanceKeys = new ManagedInstanceKeysInner(restClient().retrofit(), this);
this.managedInstanceEncryptionProtectors = new ManagedInstanceEncryptionProtectorsInner(restClient().retrofit(), this);
+ this.recoverableManagedDatabases = new RecoverableManagedDatabasesInner(restClient().retrofit(), this);
this.azureClient = new AzureClient(this);
}
diff --git a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/SqlManager.java b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/SqlManager.java
index f76a2962112b..aeddeb2596b2 100644
--- a/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/SqlManager.java
+++ b/sql/resource-manager/v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/implementation/SqlManager.java
@@ -31,6 +31,7 @@
import com.microsoft.azure.management.sql.v2017_10_01_preview.ManagedInstanceTdeCertificates;
import com.microsoft.azure.management.sql.v2017_10_01_preview.ManagedInstanceKeys;
import com.microsoft.azure.management.sql.v2017_10_01_preview.ManagedInstanceEncryptionProtectors;
+import com.microsoft.azure.management.sql.v2017_10_01_preview.RecoverableManagedDatabases;
import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl;
import com.microsoft.azure.arm.resources.implementation.ManagerCore;
@@ -53,6 +54,7 @@ public final class SqlManager extends ManagerCore
Date: Wed, 14 Aug 2019 11:22:46 +0800
Subject: [PATCH 02/22] add pull config
---
.github/pull.yml | 7 +++++++
1 file changed, 7 insertions(+)
create mode 100644 .github/pull.yml
diff --git a/.github/pull.yml b/.github/pull.yml
new file mode 100644
index 000000000000..cba38338ca1b
--- /dev/null
+++ b/.github/pull.yml
@@ -0,0 +1,7 @@
+# https://github.com/wei/pull#advanced-setup-with-config
+version: "1"
+rules:
+ - base: master
+ upstream: Azure:master
+ mergeMethod: rebase
+label: "AutoPull"
From 81b0d20d1a1ae6133d4a8d47706a642c5ac5f648 Mon Sep 17 00:00:00 2001
From: Mitch Denny
Date: Tue, 13 Aug 2019 21:15:38 -0700
Subject: [PATCH 03/22] Optimize checkout (#4982)
* Explicit checkout on build step to test.
* Adding checkout steps to test and analyze.
---
eng/pipelines/templates/jobs/archetype-sdk-client.yml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml
index 06ce79cd972c..8d62e550fc7b 100644
--- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml
+++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml
@@ -56,6 +56,9 @@ jobs:
JavaVersion: '1.11'
steps:
+ - checkout: self
+ fetchDepth: 1
+
- script: |
echo "##vso[build.addbuildtag]Scheduled"
displayName: 'Tag scheduled builds'
@@ -87,6 +90,9 @@ jobs:
vmImage: 'ubuntu-16.04'
steps:
+ - checkout: self
+ fetchDepth: 1
+
- task: UsePythonVersion@0
displayName: 'Use Python 3.6'
inputs:
@@ -222,6 +228,9 @@ jobs:
vmImage: $(OSVmImage)
steps:
+ - checkout: self
+ fetchDepth: 1
+
- template: ../steps/verify-agent-os.yml
parameters:
OSName: $(OSName)
From 3527f66e7b5c39621824351344337613c439d3b2 Mon Sep 17 00:00:00 2001
From: Mitch Denny
Date: Tue, 13 Aug 2019 22:02:39 -0700
Subject: [PATCH 04/22] Prep for splitting keyvault ci. (#4984)
---
sdk/keyvault/ci.data.yml | 55 ++++++++++++++++++++++++++++++++++++++++
sdk/keyvault/ci.yml | 4 +++
2 files changed, 59 insertions(+)
create mode 100644 sdk/keyvault/ci.data.yml
diff --git a/sdk/keyvault/ci.data.yml b/sdk/keyvault/ci.data.yml
new file mode 100644
index 000000000000..9e4f39d24ea6
--- /dev/null
+++ b/sdk/keyvault/ci.data.yml
@@ -0,0 +1,55 @@
+# DO NOT EDIT THIS FILE
+# This file is generated automatically and any changes will be lost.
+
+resources:
+ repositories:
+ - repository: azure-sdk-build-tools
+ type: git
+ name: internal/azure-sdk-build-tools
+
+trigger:
+ branches:
+ include:
+ - master
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/keyvault/
+ exclude:
+ - sdk/keyvault/azure-keyvault
+
+pr:
+ branches:
+ include:
+ - master
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/keyvault/
+ exclude:
+ - sdk/keyvault/azure-keyvault
+
+
+stages:
+ - template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
+ parameters:
+ ServiceDirectory: keyvault
+ Artifacts:
+ - name: microsoft-azure-keyvault
+ safeName: microsoftazurekeyvault
+ - name: microsoft-azure-keyvault-complete
+ safeName: microsoftazurekeyvaultcomplete
+ - name: microsoft-azure-keyvault-core
+ safeName: microsoftazurekeyvaultcore
+ - name: microsoft-azure-keyvault-cryptography
+ safeName: microsoftazurekeyvaultcryptography
+ - name: microsoft-azure-keyvault-extensions
+ safeName: microsoftazurekeyvaultextensions
+ - name: microsoft-azure-keyvault-test
+ safeName: microsoftazurekeyvaulttest
+ - name: microsoft-azure-keyvault-webkey
+ safeName: microsoftazurekeyvaultwebkey
\ No newline at end of file
diff --git a/sdk/keyvault/ci.yml b/sdk/keyvault/ci.yml
index 717c64343987..e7f355a992a5 100644
--- a/sdk/keyvault/ci.yml
+++ b/sdk/keyvault/ci.yml
@@ -17,6 +17,8 @@ trigger:
paths:
include:
- sdk/keyvault/
+ exclude:
+ - sdk/keyvault/microsoft-azure
pr:
branches:
@@ -28,6 +30,8 @@ pr:
paths:
include:
- sdk/keyvault/
+ exclude:
+ - sdk/keyvault/microsoft-azure
stages:
- template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
From 8edbcd808806c2e41b10eeb108f29dd8584a93b7 Mon Sep 17 00:00:00 2001
From: Yaohai Zheng
Date: Wed, 14 Aug 2019 21:12:17 +0800
Subject: [PATCH 05/22] Datamigration: update package 2018-07-15-preview.
(#4937)
---
.../v2018_07_15_preview/pom.xml | 4 +-
.../AzureActiveDirectoryApp.java | 95 ++
.../v2018_07_15_preview/BackupFileInfo.java | 97 ++
.../v2018_07_15_preview/BackupFileStatus.java | 56 +
.../v2018_07_15_preview/BackupSetInfo.java | 281 ++++
.../CheckOCIDriverTaskInput.java | 43 +
.../CheckOCIDriverTaskOutput.java | 49 +
.../CheckOCIDriverTaskProperties.java | 63 +
.../ConnectToMongoDbTaskProperties.java | 2 +-
.../ConnectToSourceMySqlTaskInput.java | 6 +-
.../ConnectToSourceMySqlTaskProperties.java | 2 +-
.../ConnectToSourceNonSqlTaskOutput.java | 2 +-
.../ConnectToSourceOracleSyncTaskInput.java | 43 +
.../ConnectToSourceOracleSyncTaskOutput.java | 78 ++
...nnectToSourceOracleSyncTaskProperties.java | 63 +
...onnectToSourcePostgreSqlSyncTaskInput.java | 44 +
...nnectToSourcePostgreSqlSyncTaskOutput.java | 94 ++
...tToSourcePostgreSqlSyncTaskProperties.java | 64 +
...ctToSourceSqlServerSyncTaskProperties.java | 2 +-
.../ConnectToSourceSqlServerTaskInput.java | 53 +
.../ConnectToSourceSqlServerTaskOutput.java | 2 +-
...ourceSqlServerTaskOutputAgentJobLevel.java | 2 +-
...ourceSqlServerTaskOutputDatabaseLevel.java | 2 +-
...ToSourceSqlServerTaskOutputLoginLevel.java | 2 +-
...tToSourceSqlServerTaskOutputTaskLevel.java | 2 +-
...onnectToSourceSqlServerTaskProperties.java | 2 +-
...ToTargetAzureDbForMySqlTaskProperties.java | 2 +-
...rgetAzureDbForPostgreSqlSyncTaskInput.java | 70 +
...getAzureDbForPostgreSqlSyncTaskOutput.java | 94 ++
...zureDbForPostgreSqlSyncTaskProperties.java | 64 +
...acleAzureDbForPostgreSqlSyncTaskInput.java | 44 +
...cleAzureDbForPostgreSqlSyncTaskOutput.java | 105 ++
...qlSyncTaskOutputDatabaseSchemaMapItem.java | 72 +
...zureDbForPostgreSqlSyncTaskProperties.java | 65 +
.../ConnectToTargetSqlDbTaskProperties.java | 2 +-
.../ConnectToTargetSqlMISyncTaskInput.java | 72 +
.../ConnectToTargetSqlMISyncTaskOutput.java | 64 +
...onnectToTargetSqlMISyncTaskProperties.java | 64 +
.../ConnectToTargetSqlMITaskInput.java | 79 ++
.../ConnectToTargetSqlMITaskProperties.java | 2 +-
...ectToTargetSqlSqlDbSyncTaskProperties.java | 2 +-
.../v2018_07_15_preview/ConnectionInfo.java | 22 +-
.../DatabaseMigrationState.java | 65 +
.../GetTdeCertificatesSqlTaskProperties.java | 2 +-
.../GetUserTablesOracleTaskInput.java | 71 +
.../GetUserTablesOracleTaskOutput.java | 64 +
.../GetUserTablesOracleTaskProperties.java | 64 +
.../GetUserTablesPostgreSqlTaskInput.java | 71 +
.../GetUserTablesPostgreSqlTaskOutput.java | 64 +
...GetUserTablesPostgreSqlTaskProperties.java | 64 +
.../GetUserTablesSqlSyncTaskProperties.java | 2 +-
.../GetUserTablesSqlTaskProperties.java | 2 +-
.../InstallOCIDriverTaskInput.java | 43 +
.../InstallOCIDriverTaskOutput.java | 33 +
.../InstallOCIDriverTaskProperties.java | 63 +
.../MiSqlConnectionInfo.java | 48 +
.../MigrateMISyncCompleteCommandInput.java | 44 +
.../MigrateMISyncCompleteCommandOutput.java | 45 +
...igrateMISyncCompleteCommandProperties.java | 64 +
.../MigrateMongoDbTaskProperties.java | 2 +-
...MySqlAzureDbForMySqlSyncDatabaseInput.java | 79 ++
...ateMySqlAzureDbForMySqlSyncTaskOutput.java | 2 +-
...DbForMySqlSyncTaskOutputDatabaseError.java | 2 +-
...DbForMySqlSyncTaskOutputDatabaseLevel.java | 2 +-
...SqlAzureDbForMySqlSyncTaskOutputError.java | 2 +-
...bForMySqlSyncTaskOutputMigrationLevel.java | 2 +-
...ureDbForMySqlSyncTaskOutputTableLevel.java | 2 +-
...ySqlAzureDbForMySqlSyncTaskProperties.java | 2 +-
...zureDbForPostgreSqlSyncTaskProperties.java | 64 +
...cleAzureDbPostgreSqlSyncDatabaseInput.java | 228 ++++
...eOracleAzureDbPostgreSqlSyncTaskInput.java | 97 ++
...OracleAzureDbPostgreSqlSyncTaskOutput.java | 45 +
...PostgreSqlSyncTaskOutputDatabaseError.java | 74 ++
...PostgreSqlSyncTaskOutputDatabaseLevel.java | 250 ++++
...eAzureDbPostgreSqlSyncTaskOutputError.java | 36 +
...ostgreSqlSyncTaskOutputMigrationLevel.java | 112 ++
...eDbPostgreSqlSyncTaskOutputTableLevel.java | 218 ++++
...AzureDbForPostgreSqlSyncDatabaseInput.java | 79 ++
...SqlAzureDbForPostgreSqlSyncTaskOutput.java | 2 +-
...PostgreSqlSyncTaskOutputDatabaseError.java | 2 +-
...PostgreSqlSyncTaskOutputDatabaseLevel.java | 2 +-
...ureDbForPostgreSqlSyncTaskOutputError.java | 2 +-
...ostgreSqlSyncTaskOutputMigrationLevel.java | 2 +-
...ForPostgreSqlSyncTaskOutputTableLevel.java | 2 +-
...zureDbForPostgreSqlSyncTaskProperties.java | 2 +-
...MigrateSchemaSqlServerSqlDbTaskOutput.java | 2 +-
...SqlServerSqlDbTaskOutputDatabaseLevel.java | 2 +-
...teSchemaSqlServerSqlDbTaskOutputError.java | 2 +-
...qlServerSqlDbTaskOutputMigrationLevel.java | 2 +-
...ateSchemaSqlServerSqlDbTaskProperties.java | 2 +-
.../MigrateSchemaSqlTaskOutputError.java | 2 +-
.../MigrateSqlServerSqlDbSyncTaskOutput.java | 2 +-
...erverSqlDbSyncTaskOutputDatabaseError.java | 2 +-
...erverSqlDbSyncTaskOutputDatabaseLevel.java | 2 +-
...rateSqlServerSqlDbSyncTaskOutputError.java | 2 +-
...rverSqlDbSyncTaskOutputMigrationLevel.java | 2 +-
...qlServerSqlDbSyncTaskOutputTableLevel.java | 2 +-
...grateSqlServerSqlDbSyncTaskProperties.java | 2 +-
.../MigrateSqlServerSqlDbTaskOutput.java | 2 +-
...SqlServerSqlDbTaskOutputDatabaseLevel.java | 2 +-
.../MigrateSqlServerSqlDbTaskOutputError.java | 2 +-
...qlServerSqlDbTaskOutputMigrationLevel.java | 2 +-
...ateSqlServerSqlDbTaskOutputTableLevel.java | 2 +-
.../MigrateSqlServerSqlDbTaskProperties.java | 2 +-
.../MigrateSqlServerSqlMISyncTaskInput.java | 17 +
.../MigrateSqlServerSqlMISyncTaskOutput.java | 43 +
...erverSqlMISyncTaskOutputDatabaseLevel.java | 193 +++
...rateSqlServerSqlMISyncTaskOutputError.java | 36 +
...rverSqlMISyncTaskOutputMigrationLevel.java | 188 +++
...grateSqlServerSqlMISyncTaskProperties.java | 64 +
.../MigrateSqlServerSqlMITaskOutput.java | 2 +-
...SqlServerSqlMITaskOutputAgentJobLevel.java | 2 +-
...SqlServerSqlMITaskOutputDatabaseLevel.java | 2 +-
.../MigrateSqlServerSqlMITaskOutputError.java | 2 +-
...ateSqlServerSqlMITaskOutputLoginLevel.java | 2 +-
...qlServerSqlMITaskOutputMigrationLevel.java | 16 +-
.../MigrateSqlServerSqlMITaskProperties.java | 2 +-
.../MigrateSsisTaskInput.java | 44 +
.../MigrateSsisTaskOutput.java | 42 +
.../MigrateSsisTaskOutputMigrationLevel.java | 176 +++
.../MigrateSsisTaskOutputProjectLevel.java | 145 +++
.../MigrateSsisTaskProperties.java | 64 +
.../MigrateSyncCompleteCommandOutput.java | 26 +-
.../MigrateSyncCompleteCommandProperties.java | 2 +-
.../MongoDbCancelCommand.java | 2 +-
.../MongoDbConnectionInfo.java | 2 +-
.../MongoDbFinishCommand.java | 2 +-
.../MongoDbRestartCommand.java | 2 +-
.../MySqlConnectionInfo.java | 2 +-
.../MySqlTargetPlatformType.java | 3 +
.../OracleConnectionInfo.java | 47 +
.../OracleOCIDriverInfo.java | 109 ++
.../v2018_07_15_preview/OrphanedUserInfo.java | 69 +
.../PostgreSqlConnectionInfo.java | 2 +-
...sk.java => ProjectServiceProjectTask.java} | 28 +-
.../ProjectTaskProperties.java | 22 +-
.../ServerLevelPermissionsGroup.java | 54 +-
.../v2018_07_15_preview/ServerProperties.java | 2 +-
.../ServiceProjectTask.java | 146 +++
.../v2018_07_15_preview/ServiceTasks.java | 68 +
.../SqlConnectionInfo.java | 2 +-
.../SqlServerSqlMISyncTaskInput.java | 177 +++
.../SsisMigrationInfo.java | 98 ++
.../SsisMigrationOverwriteOption.java | 41 +
.../SsisMigrationStage.java | 47 +
.../v2018_07_15_preview/SsisStoreType.java | 38 +
.../v2018_07_15_preview/Tasks.java | 8 +-
.../UploadOCIDriverTaskInput.java | 43 +
.../UploadOCIDriverTaskOutput.java | 48 +
.../UploadOCIDriverTaskProperties.java | 63 +
...InputSqlServerSqlDbSyncTaskProperties.java | 2 +-
...ationInputSqlServerSqlMISyncTaskInput.java | 17 +
...tionInputSqlServerSqlMISyncTaskOutput.java | 64 +
...InputSqlServerSqlMISyncTaskProperties.java | 64 +
...tionInputSqlServerSqlMITaskProperties.java | 2 +-
.../ValidateMongoDbTaskProperties.java | 2 +-
...zureDbForPostgreSqlSyncTaskProperties.java | 64 +
...OracleAzureDbPostgreSqlSyncTaskOutput.java | 34 +
.../CommandPropertiesInner.java | 54 +-
.../implementation/DataMigrationManager.java | 12 +
.../DataMigrationServiceClientImpl.java | 14 +
.../implementation/FilesImpl.java | 10 +-
...ava => ProjectServiceProjectTaskImpl.java} | 18 +-
.../implementation/ProjectsImpl.java | 10 +-
.../ServiceProjectTaskImpl.java | 117 ++
.../implementation/ServiceTasksImpl.java | 98 ++
.../implementation/ServiceTasksInner.java | 1158 +++++++++++++++++
.../implementation/TasksImpl.java | 38 +-
168 files changed, 7906 insertions(+), 200 deletions(-)
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/AzureActiveDirectoryApp.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/BackupFileInfo.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/BackupFileStatus.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/BackupSetInfo.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/CheckOCIDriverTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/CheckOCIDriverTaskOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/CheckOCIDriverTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceOracleSyncTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceOracleSyncTaskOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceOracleSyncTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/DatabaseMigrationState.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesOracleTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesOracleTaskOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesOracleTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesPostgreSqlTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesPostgreSqlTaskOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesPostgreSqlTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/InstallOCIDriverTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/InstallOCIDriverTaskOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/InstallOCIDriverTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MiSqlConnectionInfo.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMISyncCompleteCommandInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMISyncCompleteCommandOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMISyncCompleteCommandProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbForPostgreSqlSyncTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncDatabaseInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputError.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputError.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputMigrationLevel.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskOutputMigrationLevel.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskOutputProjectLevel.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/OracleConnectionInfo.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/OracleOCIDriverInfo.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/OrphanedUserInfo.java
rename datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/{ProjectTask.java => ProjectServiceProjectTask.java} (72%)
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ServiceProjectTask.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ServiceTasks.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/SqlServerSqlMISyncTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/SsisMigrationInfo.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/SsisMigrationOverwriteOption.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/SsisMigrationStage.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/SsisStoreType.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/UploadOCIDriverTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/UploadOCIDriverTaskOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/UploadOCIDriverTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskInput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskOutput.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ValidateOracleAzureDbForPostgreSqlSyncTaskProperties.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ValidateOracleAzureDbPostgreSqlSyncTaskOutput.java
rename datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/implementation/{ProjectTaskImpl.java => ProjectServiceProjectTaskImpl.java} (78%)
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/implementation/ServiceProjectTaskImpl.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/implementation/ServiceTasksImpl.java
create mode 100644 datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/implementation/ServiceTasksInner.java
diff --git a/datamigration/resource-manager/v2018_07_15_preview/pom.xml b/datamigration/resource-manager/v2018_07_15_preview/pom.xml
index f8e10a9824e5..8b29ac9b9adb 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/pom.xml
+++ b/datamigration/resource-manager/v2018_07_15_preview/pom.xml
@@ -15,7 +15,7 @@
../../../pom.management.xml
azure-mgmt-datamigration
- 1.0.0-beta
+ 1.0.0-beta-1
jar
Microsoft Azure SDK for DataMigration Management
This package contains Microsoft DataMigration Management SDK.
@@ -71,6 +71,8 @@
azure-arm-client-runtime
test-jar
test
+
+ 1.6.5
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/AzureActiveDirectoryApp.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/AzureActiveDirectoryApp.java
new file mode 100644
index 000000000000..527828e1d61e
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/AzureActiveDirectoryApp.java
@@ -0,0 +1,95 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Azure Active Directory Application.
+ */
+public class AzureActiveDirectoryApp {
+ /**
+ * Application ID of the Azure Active Directory Application.
+ */
+ @JsonProperty(value = "applicationId", required = true)
+ private String applicationId;
+
+ /**
+ * Key used to authenticate to the Azure Active Directory Application.
+ */
+ @JsonProperty(value = "appKey", required = true)
+ private String appKey;
+
+ /**
+ * Tenant id of the customer.
+ */
+ @JsonProperty(value = "tenantId", required = true)
+ private String tenantId;
+
+ /**
+ * Get application ID of the Azure Active Directory Application.
+ *
+ * @return the applicationId value
+ */
+ public String applicationId() {
+ return this.applicationId;
+ }
+
+ /**
+ * Set application ID of the Azure Active Directory Application.
+ *
+ * @param applicationId the applicationId value to set
+ * @return the AzureActiveDirectoryApp object itself.
+ */
+ public AzureActiveDirectoryApp withApplicationId(String applicationId) {
+ this.applicationId = applicationId;
+ return this;
+ }
+
+ /**
+ * Get key used to authenticate to the Azure Active Directory Application.
+ *
+ * @return the appKey value
+ */
+ public String appKey() {
+ return this.appKey;
+ }
+
+ /**
+ * Set key used to authenticate to the Azure Active Directory Application.
+ *
+ * @param appKey the appKey value to set
+ * @return the AzureActiveDirectoryApp object itself.
+ */
+ public AzureActiveDirectoryApp withAppKey(String appKey) {
+ this.appKey = appKey;
+ return this;
+ }
+
+ /**
+ * Get tenant id of the customer.
+ *
+ * @return the tenantId value
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Set tenant id of the customer.
+ *
+ * @param tenantId the tenantId value to set
+ * @return the AzureActiveDirectoryApp object itself.
+ */
+ public AzureActiveDirectoryApp withTenantId(String tenantId) {
+ this.tenantId = tenantId;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/BackupFileInfo.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/BackupFileInfo.java
new file mode 100644
index 000000000000..63d46f93bcbb
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/BackupFileInfo.java
@@ -0,0 +1,97 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Information of the backup file.
+ */
+public class BackupFileInfo {
+ /**
+ * Location of the backup file in shared folder.
+ */
+ @JsonProperty(value = "fileLocation")
+ private String fileLocation;
+
+ /**
+ * Sequence number of the backup file in the backup set.
+ */
+ @JsonProperty(value = "familySequenceNumber")
+ private Integer familySequenceNumber;
+
+ /**
+ * Status of the backup file during migration. Possible values include:
+ * 'Arrived', 'Queued', 'Uploading', 'Uploaded', 'Restoring', 'Restored',
+ * 'Cancelled'.
+ */
+ @JsonProperty(value = "status")
+ private BackupFileStatus status;
+
+ /**
+ * Get location of the backup file in shared folder.
+ *
+ * @return the fileLocation value
+ */
+ public String fileLocation() {
+ return this.fileLocation;
+ }
+
+ /**
+ * Set location of the backup file in shared folder.
+ *
+ * @param fileLocation the fileLocation value to set
+ * @return the BackupFileInfo object itself.
+ */
+ public BackupFileInfo withFileLocation(String fileLocation) {
+ this.fileLocation = fileLocation;
+ return this;
+ }
+
+ /**
+ * Get sequence number of the backup file in the backup set.
+ *
+ * @return the familySequenceNumber value
+ */
+ public Integer familySequenceNumber() {
+ return this.familySequenceNumber;
+ }
+
+ /**
+ * Set sequence number of the backup file in the backup set.
+ *
+ * @param familySequenceNumber the familySequenceNumber value to set
+ * @return the BackupFileInfo object itself.
+ */
+ public BackupFileInfo withFamilySequenceNumber(Integer familySequenceNumber) {
+ this.familySequenceNumber = familySequenceNumber;
+ return this;
+ }
+
+ /**
+ * Get status of the backup file during migration. Possible values include: 'Arrived', 'Queued', 'Uploading', 'Uploaded', 'Restoring', 'Restored', 'Cancelled'.
+ *
+ * @return the status value
+ */
+ public BackupFileStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Set status of the backup file during migration. Possible values include: 'Arrived', 'Queued', 'Uploading', 'Uploaded', 'Restoring', 'Restored', 'Cancelled'.
+ *
+ * @param status the status value to set
+ * @return the BackupFileInfo object itself.
+ */
+ public BackupFileInfo withStatus(BackupFileStatus status) {
+ this.status = status;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/BackupFileStatus.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/BackupFileStatus.java
new file mode 100644
index 000000000000..cd52ce0efd5e
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/BackupFileStatus.java
@@ -0,0 +1,56 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for BackupFileStatus.
+ */
+public final class BackupFileStatus extends ExpandableStringEnum {
+ /** Static value Arrived for BackupFileStatus. */
+ public static final BackupFileStatus ARRIVED = fromString("Arrived");
+
+ /** Static value Queued for BackupFileStatus. */
+ public static final BackupFileStatus QUEUED = fromString("Queued");
+
+ /** Static value Uploading for BackupFileStatus. */
+ public static final BackupFileStatus UPLOADING = fromString("Uploading");
+
+ /** Static value Uploaded for BackupFileStatus. */
+ public static final BackupFileStatus UPLOADED = fromString("Uploaded");
+
+ /** Static value Restoring for BackupFileStatus. */
+ public static final BackupFileStatus RESTORING = fromString("Restoring");
+
+ /** Static value Restored for BackupFileStatus. */
+ public static final BackupFileStatus RESTORED = fromString("Restored");
+
+ /** Static value Cancelled for BackupFileStatus. */
+ public static final BackupFileStatus CANCELLED = fromString("Cancelled");
+
+ /**
+ * Creates or finds a BackupFileStatus from its string representation.
+ * @param name a name to look for
+ * @return the corresponding BackupFileStatus
+ */
+ @JsonCreator
+ public static BackupFileStatus fromString(String name) {
+ return fromString(name, BackupFileStatus.class);
+ }
+
+ /**
+ * @return known BackupFileStatus values
+ */
+ public static Collection values() {
+ return values(BackupFileStatus.class);
+ }
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/BackupSetInfo.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/BackupSetInfo.java
new file mode 100644
index 000000000000..58fe02be7d2c
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/BackupSetInfo.java
@@ -0,0 +1,281 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import org.joda.time.DateTime;
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Information of backup set.
+ */
+public class BackupSetInfo {
+ /**
+ * Id for the set of backup files.
+ */
+ @JsonProperty(value = "backupSetId")
+ private String backupSetId;
+
+ /**
+ * First log sequence number of the backup file.
+ */
+ @JsonProperty(value = "firstLsn")
+ private String firstLsn;
+
+ /**
+ * Last log sequence number of the backup file.
+ */
+ @JsonProperty(value = "lastLsn")
+ private String lastLsn;
+
+ /**
+ * Last modified time of the backup file in share location.
+ */
+ @JsonProperty(value = "lastModifiedTime")
+ private DateTime lastModifiedTime;
+
+ /**
+ * Enum of the different backup types. Possible values include: 'Database',
+ * 'TransactionLog', 'File', 'DifferentialDatabase', 'DifferentialFile',
+ * 'Partial', 'DifferentialPartial'.
+ */
+ @JsonProperty(value = "backupType")
+ private BackupType backupType;
+
+ /**
+ * List of files in the backup set.
+ */
+ @JsonProperty(value = "listOfBackupFiles")
+ private List listOfBackupFiles;
+
+ /**
+ * Name of the database to which the backup set belongs.
+ */
+ @JsonProperty(value = "databaseName")
+ private String databaseName;
+
+ /**
+ * Date and time that the backup operation began.
+ */
+ @JsonProperty(value = "backupStartDate")
+ private DateTime backupStartDate;
+
+ /**
+ * Date and time that the backup operation finished.
+ */
+ @JsonProperty(value = "backupFinishedDate")
+ private DateTime backupFinishedDate;
+
+ /**
+ * Whether the backup set is restored or not.
+ */
+ @JsonProperty(value = "isBackupRestored")
+ private Boolean isBackupRestored;
+
+ /**
+ * Get id for the set of backup files.
+ *
+ * @return the backupSetId value
+ */
+ public String backupSetId() {
+ return this.backupSetId;
+ }
+
+ /**
+ * Set id for the set of backup files.
+ *
+ * @param backupSetId the backupSetId value to set
+ * @return the BackupSetInfo object itself.
+ */
+ public BackupSetInfo withBackupSetId(String backupSetId) {
+ this.backupSetId = backupSetId;
+ return this;
+ }
+
+ /**
+ * Get first log sequence number of the backup file.
+ *
+ * @return the firstLsn value
+ */
+ public String firstLsn() {
+ return this.firstLsn;
+ }
+
+ /**
+ * Set first log sequence number of the backup file.
+ *
+ * @param firstLsn the firstLsn value to set
+ * @return the BackupSetInfo object itself.
+ */
+ public BackupSetInfo withFirstLsn(String firstLsn) {
+ this.firstLsn = firstLsn;
+ return this;
+ }
+
+ /**
+ * Get last log sequence number of the backup file.
+ *
+ * @return the lastLsn value
+ */
+ public String lastLsn() {
+ return this.lastLsn;
+ }
+
+ /**
+ * Set last log sequence number of the backup file.
+ *
+ * @param lastLsn the lastLsn value to set
+ * @return the BackupSetInfo object itself.
+ */
+ public BackupSetInfo withLastLsn(String lastLsn) {
+ this.lastLsn = lastLsn;
+ return this;
+ }
+
+ /**
+ * Get last modified time of the backup file in share location.
+ *
+ * @return the lastModifiedTime value
+ */
+ public DateTime lastModifiedTime() {
+ return this.lastModifiedTime;
+ }
+
+ /**
+ * Set last modified time of the backup file in share location.
+ *
+ * @param lastModifiedTime the lastModifiedTime value to set
+ * @return the BackupSetInfo object itself.
+ */
+ public BackupSetInfo withLastModifiedTime(DateTime lastModifiedTime) {
+ this.lastModifiedTime = lastModifiedTime;
+ return this;
+ }
+
+ /**
+ * Get enum of the different backup types. Possible values include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase', 'DifferentialFile', 'Partial', 'DifferentialPartial'.
+ *
+ * @return the backupType value
+ */
+ public BackupType backupType() {
+ return this.backupType;
+ }
+
+ /**
+ * Set enum of the different backup types. Possible values include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase', 'DifferentialFile', 'Partial', 'DifferentialPartial'.
+ *
+ * @param backupType the backupType value to set
+ * @return the BackupSetInfo object itself.
+ */
+ public BackupSetInfo withBackupType(BackupType backupType) {
+ this.backupType = backupType;
+ return this;
+ }
+
+ /**
+ * Get list of files in the backup set.
+ *
+ * @return the listOfBackupFiles value
+ */
+ public List listOfBackupFiles() {
+ return this.listOfBackupFiles;
+ }
+
+ /**
+ * Set list of files in the backup set.
+ *
+ * @param listOfBackupFiles the listOfBackupFiles value to set
+ * @return the BackupSetInfo object itself.
+ */
+ public BackupSetInfo withListOfBackupFiles(List listOfBackupFiles) {
+ this.listOfBackupFiles = listOfBackupFiles;
+ return this;
+ }
+
+ /**
+ * Get name of the database to which the backup set belongs.
+ *
+ * @return the databaseName value
+ */
+ public String databaseName() {
+ return this.databaseName;
+ }
+
+ /**
+ * Set name of the database to which the backup set belongs.
+ *
+ * @param databaseName the databaseName value to set
+ * @return the BackupSetInfo object itself.
+ */
+ public BackupSetInfo withDatabaseName(String databaseName) {
+ this.databaseName = databaseName;
+ return this;
+ }
+
+ /**
+ * Get date and time that the backup operation began.
+ *
+ * @return the backupStartDate value
+ */
+ public DateTime backupStartDate() {
+ return this.backupStartDate;
+ }
+
+ /**
+ * Set date and time that the backup operation began.
+ *
+ * @param backupStartDate the backupStartDate value to set
+ * @return the BackupSetInfo object itself.
+ */
+ public BackupSetInfo withBackupStartDate(DateTime backupStartDate) {
+ this.backupStartDate = backupStartDate;
+ return this;
+ }
+
+ /**
+ * Get date and time that the backup operation finished.
+ *
+ * @return the backupFinishedDate value
+ */
+ public DateTime backupFinishedDate() {
+ return this.backupFinishedDate;
+ }
+
+ /**
+ * Set date and time that the backup operation finished.
+ *
+ * @param backupFinishedDate the backupFinishedDate value to set
+ * @return the BackupSetInfo object itself.
+ */
+ public BackupSetInfo withBackupFinishedDate(DateTime backupFinishedDate) {
+ this.backupFinishedDate = backupFinishedDate;
+ return this;
+ }
+
+ /**
+ * Get whether the backup set is restored or not.
+ *
+ * @return the isBackupRestored value
+ */
+ public Boolean isBackupRestored() {
+ return this.isBackupRestored;
+ }
+
+ /**
+ * Set whether the backup set is restored or not.
+ *
+ * @param isBackupRestored the isBackupRestored value to set
+ * @return the BackupSetInfo object itself.
+ */
+ public BackupSetInfo withIsBackupRestored(Boolean isBackupRestored) {
+ this.isBackupRestored = isBackupRestored;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/CheckOCIDriverTaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/CheckOCIDriverTaskInput.java
new file mode 100644
index 000000000000..d74b6fcb610f
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/CheckOCIDriverTaskInput.java
@@ -0,0 +1,43 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input for the service task to check for OCI drivers.
+ */
+public class CheckOCIDriverTaskInput {
+ /**
+ * Version of the source server to check against. Optional.
+ */
+ @JsonProperty(value = "serverVersion")
+ private String serverVersion;
+
+ /**
+ * Get version of the source server to check against. Optional.
+ *
+ * @return the serverVersion value
+ */
+ public String serverVersion() {
+ return this.serverVersion;
+ }
+
+ /**
+ * Set version of the source server to check against. Optional.
+ *
+ * @param serverVersion the serverVersion value to set
+ * @return the CheckOCIDriverTaskInput object itself.
+ */
+ public CheckOCIDriverTaskInput withServerVersion(String serverVersion) {
+ this.serverVersion = serverVersion;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/CheckOCIDriverTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/CheckOCIDriverTaskOutput.java
new file mode 100644
index 000000000000..79581c783cda
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/CheckOCIDriverTaskOutput.java
@@ -0,0 +1,49 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.Map;
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Output for the service task to check for OCI drivers.
+ */
+public class CheckOCIDriverTaskOutput {
+ /**
+ * Information about the installed driver if found and valid.
+ */
+ @JsonProperty(value = "installedDriver", access = JsonProperty.Access.WRITE_ONLY)
+ private Map> installedDriver;
+
+ /**
+ * Validation errors.
+ */
+ @JsonProperty(value = "validationErrors", access = JsonProperty.Access.WRITE_ONLY)
+ private List validationErrors;
+
+ /**
+ * Get information about the installed driver if found and valid.
+ *
+ * @return the installedDriver value
+ */
+ public Map> installedDriver() {
+ return this.installedDriver;
+ }
+
+ /**
+ * Get validation errors.
+ *
+ * @return the validationErrors value
+ */
+ public List validationErrors() {
+ return this.validationErrors;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/CheckOCIDriverTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/CheckOCIDriverTaskProperties.java
new file mode 100644
index 000000000000..8eb79918ac8c
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/CheckOCIDriverTaskProperties.java
@@ -0,0 +1,63 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Properties for the task that checks for OCI drivers.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = CheckOCIDriverTaskProperties.class)
+@JsonTypeName("Service.Check.OCI")
+public class CheckOCIDriverTaskProperties extends ProjectTaskProperties {
+ /**
+ * The input property.
+ */
+ @JsonProperty(value = "input")
+ private CheckOCIDriverTaskInput input;
+
+ /**
+ * Task output. This is ignored if submitted.
+ */
+ @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY)
+ private List output;
+
+ /**
+ * Get the input value.
+ *
+ * @return the input value
+ */
+ public CheckOCIDriverTaskInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set the input value.
+ *
+ * @param input the input value to set
+ * @return the CheckOCIDriverTaskProperties object itself.
+ */
+ public CheckOCIDriverTaskProperties withInput(CheckOCIDriverTaskInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get task output. This is ignored if submitted.
+ *
+ * @return the output value
+ */
+ public List output() {
+ return this.output;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToMongoDbTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToMongoDbTaskProperties.java
index 0d5f978e4b7c..9477624b0c36 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToMongoDbTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToMongoDbTaskProperties.java
@@ -17,7 +17,7 @@
* Properties for the task that validates the connection to and provides
* information about a MongoDB server.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = ConnectToMongoDbTaskProperties.class)
@JsonTypeName("Connect.MongoDb")
public class ConnectToMongoDbTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceMySqlTaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceMySqlTaskInput.java
index 3f2239d3fcd5..11c543452b33 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceMySqlTaskInput.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceMySqlTaskInput.java
@@ -21,7 +21,7 @@ public class ConnectToSourceMySqlTaskInput {
private MySqlConnectionInfo sourceConnectionInfo;
/**
- * Target Platform for the migration. Possible values include:
+ * Target Platform for the migration. Possible values include: 'SqlServer',
* 'AzureDbForMySQL'.
*/
@JsonProperty(value = "targetPlatform")
@@ -56,7 +56,7 @@ public ConnectToSourceMySqlTaskInput withSourceConnectionInfo(MySqlConnectionInf
}
/**
- * Get target Platform for the migration. Possible values include: 'AzureDbForMySQL'.
+ * Get target Platform for the migration. Possible values include: 'SqlServer', 'AzureDbForMySQL'.
*
* @return the targetPlatform value
*/
@@ -65,7 +65,7 @@ public MySqlTargetPlatformType targetPlatform() {
}
/**
- * Set target Platform for the migration. Possible values include: 'AzureDbForMySQL'.
+ * Set target Platform for the migration. Possible values include: 'SqlServer', 'AzureDbForMySQL'.
*
* @param targetPlatform the targetPlatform value to set
* @return the ConnectToSourceMySqlTaskInput object itself.
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceMySqlTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceMySqlTaskProperties.java
index f8719ccfacc5..1c0bb1755b48 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceMySqlTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceMySqlTaskProperties.java
@@ -16,7 +16,7 @@
/**
* Properties for the task that validates MySQL database connection.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = ConnectToSourceMySqlTaskProperties.class)
@JsonTypeName("ConnectToSource.MySql")
public class ConnectToSourceMySqlTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceNonSqlTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceNonSqlTaskOutput.java
index 37e89141a1c7..c86a04fd9289 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceNonSqlTaskOutput.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceNonSqlTaskOutput.java
@@ -12,7 +12,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/**
- * Output for connect to Oracle, MySQL type source.
+ * Output for connect to MySQL type source.
*/
public class ConnectToSourceNonSqlTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceOracleSyncTaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceOracleSyncTaskInput.java
new file mode 100644
index 000000000000..e9bcecfc2343
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceOracleSyncTaskInput.java
@@ -0,0 +1,43 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input for the task that validates Oracle database connection.
+ */
+public class ConnectToSourceOracleSyncTaskInput {
+ /**
+ * Information for connecting to Oracle source.
+ */
+ @JsonProperty(value = "sourceConnectionInfo", required = true)
+ private OracleConnectionInfo sourceConnectionInfo;
+
+ /**
+ * Get information for connecting to Oracle source.
+ *
+ * @return the sourceConnectionInfo value
+ */
+ public OracleConnectionInfo sourceConnectionInfo() {
+ return this.sourceConnectionInfo;
+ }
+
+ /**
+ * Set information for connecting to Oracle source.
+ *
+ * @param sourceConnectionInfo the sourceConnectionInfo value to set
+ * @return the ConnectToSourceOracleSyncTaskInput object itself.
+ */
+ public ConnectToSourceOracleSyncTaskInput withSourceConnectionInfo(OracleConnectionInfo sourceConnectionInfo) {
+ this.sourceConnectionInfo = sourceConnectionInfo;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceOracleSyncTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceOracleSyncTaskOutput.java
new file mode 100644
index 000000000000..a3e777fd70fb
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceOracleSyncTaskOutput.java
@@ -0,0 +1,78 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Output for the task that validates Oracle database connection.
+ */
+public class ConnectToSourceOracleSyncTaskOutput {
+ /**
+ * Version of the source server.
+ */
+ @JsonProperty(value = "sourceServerVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String sourceServerVersion;
+
+ /**
+ * List of schemas on source server.
+ */
+ @JsonProperty(value = "databases", access = JsonProperty.Access.WRITE_ONLY)
+ private List databases;
+
+ /**
+ * Source server brand version.
+ */
+ @JsonProperty(value = "sourceServerBrandVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String sourceServerBrandVersion;
+
+ /**
+ * Validation errors associated with the task.
+ */
+ @JsonProperty(value = "validationErrors", access = JsonProperty.Access.WRITE_ONLY)
+ private List validationErrors;
+
+ /**
+ * Get version of the source server.
+ *
+ * @return the sourceServerVersion value
+ */
+ public String sourceServerVersion() {
+ return this.sourceServerVersion;
+ }
+
+ /**
+ * Get list of schemas on source server.
+ *
+ * @return the databases value
+ */
+ public List databases() {
+ return this.databases;
+ }
+
+ /**
+ * Get source server brand version.
+ *
+ * @return the sourceServerBrandVersion value
+ */
+ public String sourceServerBrandVersion() {
+ return this.sourceServerBrandVersion;
+ }
+
+ /**
+ * Get validation errors associated with the task.
+ *
+ * @return the validationErrors value
+ */
+ public List validationErrors() {
+ return this.validationErrors;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceOracleSyncTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceOracleSyncTaskProperties.java
new file mode 100644
index 000000000000..a76f8051037f
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceOracleSyncTaskProperties.java
@@ -0,0 +1,63 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Properties for the task that validates Oracle database connection.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = ConnectToSourceOracleSyncTaskProperties.class)
+@JsonTypeName("ConnectToSource.Oracle.Sync")
+public class ConnectToSourceOracleSyncTaskProperties extends ProjectTaskProperties {
+ /**
+ * Task input.
+ */
+ @JsonProperty(value = "input")
+ private ConnectToSourceOracleSyncTaskInput input;
+
+ /**
+ * Task output. This is ignored if submitted.
+ */
+ @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY)
+ private List output;
+
+ /**
+ * Get task input.
+ *
+ * @return the input value
+ */
+ public ConnectToSourceOracleSyncTaskInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set task input.
+ *
+ * @param input the input value to set
+ * @return the ConnectToSourceOracleSyncTaskProperties object itself.
+ */
+ public ConnectToSourceOracleSyncTaskProperties withInput(ConnectToSourceOracleSyncTaskInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get task output. This is ignored if submitted.
+ *
+ * @return the output value
+ */
+ public List output() {
+ return this.output;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskInput.java
new file mode 100644
index 000000000000..ed637ac50eec
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskInput.java
@@ -0,0 +1,44 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input for the task that validates connection to PostgreSQL and source server
+ * requirements.
+ */
+public class ConnectToSourcePostgreSqlSyncTaskInput {
+ /**
+ * Connection information for source PostgreSQL server.
+ */
+ @JsonProperty(value = "sourceConnectionInfo", required = true)
+ private PostgreSqlConnectionInfo sourceConnectionInfo;
+
+ /**
+ * Get connection information for source PostgreSQL server.
+ *
+ * @return the sourceConnectionInfo value
+ */
+ public PostgreSqlConnectionInfo sourceConnectionInfo() {
+ return this.sourceConnectionInfo;
+ }
+
+ /**
+ * Set connection information for source PostgreSQL server.
+ *
+ * @param sourceConnectionInfo the sourceConnectionInfo value to set
+ * @return the ConnectToSourcePostgreSqlSyncTaskInput object itself.
+ */
+ public ConnectToSourcePostgreSqlSyncTaskInput withSourceConnectionInfo(PostgreSqlConnectionInfo sourceConnectionInfo) {
+ this.sourceConnectionInfo = sourceConnectionInfo;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskOutput.java
new file mode 100644
index 000000000000..b1aad780a575
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskOutput.java
@@ -0,0 +1,94 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Output for the task that validates connection to PostgreSQL and source
+ * server requirements.
+ */
+public class ConnectToSourcePostgreSqlSyncTaskOutput {
+ /**
+ * Result identifier.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /**
+ * Version of the source server.
+ */
+ @JsonProperty(value = "sourceServerVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String sourceServerVersion;
+
+ /**
+ * List of databases on source server.
+ */
+ @JsonProperty(value = "databases", access = JsonProperty.Access.WRITE_ONLY)
+ private List databases;
+
+ /**
+ * Source server brand version.
+ */
+ @JsonProperty(value = "sourceServerBrandVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String sourceServerBrandVersion;
+
+ /**
+ * Validation errors associated with the task.
+ */
+ @JsonProperty(value = "validationErrors", access = JsonProperty.Access.WRITE_ONLY)
+ private List validationErrors;
+
+ /**
+ * Get result identifier.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get version of the source server.
+ *
+ * @return the sourceServerVersion value
+ */
+ public String sourceServerVersion() {
+ return this.sourceServerVersion;
+ }
+
+ /**
+ * Get list of databases on source server.
+ *
+ * @return the databases value
+ */
+ public List databases() {
+ return this.databases;
+ }
+
+ /**
+ * Get source server brand version.
+ *
+ * @return the sourceServerBrandVersion value
+ */
+ public String sourceServerBrandVersion() {
+ return this.sourceServerBrandVersion;
+ }
+
+ /**
+ * Get validation errors associated with the task.
+ *
+ * @return the validationErrors value
+ */
+ public List validationErrors() {
+ return this.validationErrors;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskProperties.java
new file mode 100644
index 000000000000..7baf6ccc0153
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskProperties.java
@@ -0,0 +1,64 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Properties for the task that validates connection to PostgreSQL server and
+ * source server requirements for online migration.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = ConnectToSourcePostgreSqlSyncTaskProperties.class)
+@JsonTypeName("ConnectToSource.PostgreSql.Sync")
+public class ConnectToSourcePostgreSqlSyncTaskProperties extends ProjectTaskProperties {
+ /**
+ * Task input.
+ */
+ @JsonProperty(value = "input")
+ private ConnectToSourcePostgreSqlSyncTaskInput input;
+
+ /**
+ * Task output. This is ignored if submitted.
+ */
+ @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY)
+ private List output;
+
+ /**
+ * Get task input.
+ *
+ * @return the input value
+ */
+ public ConnectToSourcePostgreSqlSyncTaskInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set task input.
+ *
+ * @param input the input value to set
+ * @return the ConnectToSourcePostgreSqlSyncTaskProperties object itself.
+ */
+ public ConnectToSourcePostgreSqlSyncTaskProperties withInput(ConnectToSourcePostgreSqlSyncTaskInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get task output. This is ignored if submitted.
+ *
+ * @return the output value
+ */
+ public List output() {
+ return this.output;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerSyncTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerSyncTaskProperties.java
index f3a6974a86ad..1dee0528673e 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerSyncTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerSyncTaskProperties.java
@@ -17,7 +17,7 @@
* Properties for the task that validates connection to SQL Server and source
* server requirements for online migration.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = ConnectToSourceSqlServerSyncTaskProperties.class)
@JsonTypeName("ConnectToSource.SqlServer.Sync")
public class ConnectToSourceSqlServerSyncTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskInput.java
index c20b8dbc670a..94c6d9855136 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskInput.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskInput.java
@@ -29,6 +29,12 @@ public class ConnectToSourceSqlServerTaskInput {
@JsonProperty(value = "checkPermissionsGroup")
private ServerLevelPermissionsGroup checkPermissionsGroup;
+ /**
+ * Flag for whether to collect databases from source server.
+ */
+ @JsonProperty(value = "collectDatabases")
+ private Boolean collectDatabases;
+
/**
* Flag for whether to collect logins from source server.
*/
@@ -47,6 +53,13 @@ public class ConnectToSourceSqlServerTaskInput {
@JsonProperty(value = "collectTdeCertificateInfo")
private Boolean collectTdeCertificateInfo;
+ /**
+ * Flag for whether to validate SSIS catalog is reachable on the source
+ * server.
+ */
+ @JsonProperty(value = "validateSsisCatalogOnly")
+ private Boolean validateSsisCatalogOnly;
+
/**
* Get connection information for Source SQL Server.
*
@@ -87,6 +100,26 @@ public ConnectToSourceSqlServerTaskInput withCheckPermissionsGroup(ServerLevelPe
return this;
}
+ /**
+ * Get flag for whether to collect databases from source server.
+ *
+ * @return the collectDatabases value
+ */
+ public Boolean collectDatabases() {
+ return this.collectDatabases;
+ }
+
+ /**
+ * Set flag for whether to collect databases from source server.
+ *
+ * @param collectDatabases the collectDatabases value to set
+ * @return the ConnectToSourceSqlServerTaskInput object itself.
+ */
+ public ConnectToSourceSqlServerTaskInput withCollectDatabases(Boolean collectDatabases) {
+ this.collectDatabases = collectDatabases;
+ return this;
+ }
+
/**
* Get flag for whether to collect logins from source server.
*
@@ -147,4 +180,24 @@ public ConnectToSourceSqlServerTaskInput withCollectTdeCertificateInfo(Boolean c
return this;
}
+ /**
+ * Get flag for whether to validate SSIS catalog is reachable on the source server.
+ *
+ * @return the validateSsisCatalogOnly value
+ */
+ public Boolean validateSsisCatalogOnly() {
+ return this.validateSsisCatalogOnly;
+ }
+
+ /**
+ * Set flag for whether to validate SSIS catalog is reachable on the source server.
+ *
+ * @param validateSsisCatalogOnly the validateSsisCatalogOnly value to set
+ * @return the ConnectToSourceSqlServerTaskInput object itself.
+ */
+ public ConnectToSourceSqlServerTaskInput withValidateSsisCatalogOnly(Boolean validateSsisCatalogOnly) {
+ this.validateSsisCatalogOnly = validateSsisCatalogOnly;
+ return this;
+ }
+
}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutput.java
index c21fd4845606..b1dea666688a 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutput.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutput.java
@@ -17,7 +17,7 @@
* Output for the task that validates connection to SQL Server and also
* validates source server requirements.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = ConnectToSourceSqlServerTaskOutput.class)
@JsonTypeName("ConnectToSourceSqlServerTaskOutput")
@JsonSubTypes({
@JsonSubTypes.Type(name = "AgentJobLevelOutput", value = ConnectToSourceSqlServerTaskOutputAgentJobLevel.class),
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputAgentJobLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputAgentJobLevel.java
index 6fad4be12de2..ce3fa6d859a4 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputAgentJobLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputAgentJobLevel.java
@@ -18,7 +18,7 @@
* Agent Job level output for the task that validates connection to SQL Server
* and also validates source server requirements.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = ConnectToSourceSqlServerTaskOutputAgentJobLevel.class)
@JsonTypeName("AgentJobLevelOutput")
public class ConnectToSourceSqlServerTaskOutputAgentJobLevel extends ConnectToSourceSqlServerTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputDatabaseLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputDatabaseLevel.java
index 25f294d2a841..0fb4f60f4dc7 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputDatabaseLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputDatabaseLevel.java
@@ -17,7 +17,7 @@
* Database level output for the task that validates connection to SQL Server
* and also validates source server requirements.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = ConnectToSourceSqlServerTaskOutputDatabaseLevel.class)
@JsonTypeName("DatabaseLevelOutput")
public class ConnectToSourceSqlServerTaskOutputDatabaseLevel extends ConnectToSourceSqlServerTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputLoginLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputLoginLevel.java
index f4cbbae769c5..83e4ca0b704c 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputLoginLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputLoginLevel.java
@@ -16,7 +16,7 @@
* Login level output for the task that validates connection to SQL Server and
* also validates source server requirements.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = ConnectToSourceSqlServerTaskOutputLoginLevel.class)
@JsonTypeName("LoginLevelOutput")
public class ConnectToSourceSqlServerTaskOutputLoginLevel extends ConnectToSourceSqlServerTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputTaskLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputTaskLevel.java
index e1b1870bda07..403532deab09 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputTaskLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputTaskLevel.java
@@ -18,7 +18,7 @@
* Task level output for the task that validates connection to SQL Server and
* also validates source server requirements.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = ConnectToSourceSqlServerTaskOutputTaskLevel.class)
@JsonTypeName("TaskLevelOutput")
public class ConnectToSourceSqlServerTaskOutputTaskLevel extends ConnectToSourceSqlServerTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskProperties.java
index 50c0c18713d0..1cd0abb274cb 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToSourceSqlServerTaskProperties.java
@@ -17,7 +17,7 @@
* Properties for the task that validates connection to SQL Server and also
* validates source server requirements.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = ConnectToSourceSqlServerTaskProperties.class)
@JsonTypeName("ConnectToSource.SqlServer")
public class ConnectToSourceSqlServerTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForMySqlTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForMySqlTaskProperties.java
index 0ba4955a2809..79fa93730ad5 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForMySqlTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForMySqlTaskProperties.java
@@ -17,7 +17,7 @@
* Properties for the task that validates connection to Azure Database for
* MySQL and target server requirements.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = ConnectToTargetAzureDbForMySqlTaskProperties.class)
@JsonTypeName("ConnectToTarget.AzureDbForMySql")
public class ConnectToTargetAzureDbForMySqlTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskInput.java
new file mode 100644
index 000000000000..bff9b0d99930
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskInput.java
@@ -0,0 +1,70 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input for the task that validates connection to Azure Database for
+ * PostgreSQL and target server requirements.
+ */
+public class ConnectToTargetAzureDbForPostgreSqlSyncTaskInput {
+ /**
+ * Connection information for source PostgreSQL server.
+ */
+ @JsonProperty(value = "sourceConnectionInfo", required = true)
+ private PostgreSqlConnectionInfo sourceConnectionInfo;
+
+ /**
+ * Connection information for target Azure Database for PostgreSQL server.
+ */
+ @JsonProperty(value = "targetConnectionInfo", required = true)
+ private PostgreSqlConnectionInfo targetConnectionInfo;
+
+ /**
+ * Get connection information for source PostgreSQL server.
+ *
+ * @return the sourceConnectionInfo value
+ */
+ public PostgreSqlConnectionInfo sourceConnectionInfo() {
+ return this.sourceConnectionInfo;
+ }
+
+ /**
+ * Set connection information for source PostgreSQL server.
+ *
+ * @param sourceConnectionInfo the sourceConnectionInfo value to set
+ * @return the ConnectToTargetAzureDbForPostgreSqlSyncTaskInput object itself.
+ */
+ public ConnectToTargetAzureDbForPostgreSqlSyncTaskInput withSourceConnectionInfo(PostgreSqlConnectionInfo sourceConnectionInfo) {
+ this.sourceConnectionInfo = sourceConnectionInfo;
+ return this;
+ }
+
+ /**
+ * Get connection information for target Azure Database for PostgreSQL server.
+ *
+ * @return the targetConnectionInfo value
+ */
+ public PostgreSqlConnectionInfo targetConnectionInfo() {
+ return this.targetConnectionInfo;
+ }
+
+ /**
+ * Set connection information for target Azure Database for PostgreSQL server.
+ *
+ * @param targetConnectionInfo the targetConnectionInfo value to set
+ * @return the ConnectToTargetAzureDbForPostgreSqlSyncTaskInput object itself.
+ */
+ public ConnectToTargetAzureDbForPostgreSqlSyncTaskInput withTargetConnectionInfo(PostgreSqlConnectionInfo targetConnectionInfo) {
+ this.targetConnectionInfo = targetConnectionInfo;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput.java
new file mode 100644
index 000000000000..9cb10b4ba160
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput.java
@@ -0,0 +1,94 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Output for the task that validates connection to Azure Database for
+ * PostgreSQL and target server requirements.
+ */
+public class ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput {
+ /**
+ * Result identifier.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /**
+ * Version of the target server.
+ */
+ @JsonProperty(value = "targetServerVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetServerVersion;
+
+ /**
+ * List of databases on target server.
+ */
+ @JsonProperty(value = "databases", access = JsonProperty.Access.WRITE_ONLY)
+ private List databases;
+
+ /**
+ * Target server brand version.
+ */
+ @JsonProperty(value = "targetServerBrandVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetServerBrandVersion;
+
+ /**
+ * Validation errors associated with the task.
+ */
+ @JsonProperty(value = "validationErrors", access = JsonProperty.Access.WRITE_ONLY)
+ private List validationErrors;
+
+ /**
+ * Get result identifier.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get version of the target server.
+ *
+ * @return the targetServerVersion value
+ */
+ public String targetServerVersion() {
+ return this.targetServerVersion;
+ }
+
+ /**
+ * Get list of databases on target server.
+ *
+ * @return the databases value
+ */
+ public List databases() {
+ return this.databases;
+ }
+
+ /**
+ * Get target server brand version.
+ *
+ * @return the targetServerBrandVersion value
+ */
+ public String targetServerBrandVersion() {
+ return this.targetServerBrandVersion;
+ }
+
+ /**
+ * Get validation errors associated with the task.
+ *
+ * @return the validationErrors value
+ */
+ public List validationErrors() {
+ return this.validationErrors;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.java
new file mode 100644
index 000000000000..5634c372d5fe
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.java
@@ -0,0 +1,64 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Properties for the task that validates connection to Azure Database For
+ * PostgreSQL server and target server requirements for online migration.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.class)
+@JsonTypeName("ConnectToTarget.AzureDbForPostgreSql.Sync")
+public class ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties extends ProjectTaskProperties {
+ /**
+ * Task input.
+ */
+ @JsonProperty(value = "input")
+ private ConnectToTargetAzureDbForPostgreSqlSyncTaskInput input;
+
+ /**
+ * Task output. This is ignored if submitted.
+ */
+ @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY)
+ private List output;
+
+ /**
+ * Get task input.
+ *
+ * @return the input value
+ */
+ public ConnectToTargetAzureDbForPostgreSqlSyncTaskInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set task input.
+ *
+ * @param input the input value to set
+ * @return the ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties object itself.
+ */
+ public ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties withInput(ConnectToTargetAzureDbForPostgreSqlSyncTaskInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get task output. This is ignored if submitted.
+ *
+ * @return the output value
+ */
+ public List output() {
+ return this.output;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput.java
new file mode 100644
index 000000000000..f682bd71f8c2
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput.java
@@ -0,0 +1,44 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input for the task that validates connection to Azure Database for
+ * PostgreSQL and target server requirements for Oracle source.
+ */
+public class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput {
+ /**
+ * Connection information for target Azure Database for PostgreSQL server.
+ */
+ @JsonProperty(value = "targetConnectionInfo", required = true)
+ private PostgreSqlConnectionInfo targetConnectionInfo;
+
+ /**
+ * Get connection information for target Azure Database for PostgreSQL server.
+ *
+ * @return the targetConnectionInfo value
+ */
+ public PostgreSqlConnectionInfo targetConnectionInfo() {
+ return this.targetConnectionInfo;
+ }
+
+ /**
+ * Set connection information for target Azure Database for PostgreSQL server.
+ *
+ * @param targetConnectionInfo the targetConnectionInfo value to set
+ * @return the ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput object itself.
+ */
+ public ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput withTargetConnectionInfo(PostgreSqlConnectionInfo targetConnectionInfo) {
+ this.targetConnectionInfo = targetConnectionInfo;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput.java
new file mode 100644
index 000000000000..775112b5ae41
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput.java
@@ -0,0 +1,105 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Output for the task that validates connection to Azure Database for
+ * PostgreSQL and target server requirements for Oracle source.
+ */
+public class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput {
+ /**
+ * Version of the target server.
+ */
+ @JsonProperty(value = "targetServerVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetServerVersion;
+
+ /**
+ * List of databases on target server.
+ */
+ @JsonProperty(value = "databases", access = JsonProperty.Access.WRITE_ONLY)
+ private List databases;
+
+ /**
+ * Target server brand version.
+ */
+ @JsonProperty(value = "targetServerBrandVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetServerBrandVersion;
+
+ /**
+ * Validation errors associated with the task.
+ */
+ @JsonProperty(value = "validationErrors", access = JsonProperty.Access.WRITE_ONLY)
+ private List validationErrors;
+
+ /**
+ * Mapping of schemas per database.
+ */
+ @JsonProperty(value = "databaseSchemaMap")
+ private List databaseSchemaMap;
+
+ /**
+ * Get version of the target server.
+ *
+ * @return the targetServerVersion value
+ */
+ public String targetServerVersion() {
+ return this.targetServerVersion;
+ }
+
+ /**
+ * Get list of databases on target server.
+ *
+ * @return the databases value
+ */
+ public List databases() {
+ return this.databases;
+ }
+
+ /**
+ * Get target server brand version.
+ *
+ * @return the targetServerBrandVersion value
+ */
+ public String targetServerBrandVersion() {
+ return this.targetServerBrandVersion;
+ }
+
+ /**
+ * Get validation errors associated with the task.
+ *
+ * @return the validationErrors value
+ */
+ public List validationErrors() {
+ return this.validationErrors;
+ }
+
+ /**
+ * Get mapping of schemas per database.
+ *
+ * @return the databaseSchemaMap value
+ */
+ public List databaseSchemaMap() {
+ return this.databaseSchemaMap;
+ }
+
+ /**
+ * Set mapping of schemas per database.
+ *
+ * @param databaseSchemaMap the databaseSchemaMap value to set
+ * @return the ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput object itself.
+ */
+ public ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput withDatabaseSchemaMap(List databaseSchemaMap) {
+ this.databaseSchemaMap = databaseSchemaMap;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem.java
new file mode 100644
index 000000000000..2d43d5a735ba
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem.java
@@ -0,0 +1,72 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * The
+ * ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem
+ * model.
+ */
+public class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem {
+ /**
+ * The database property.
+ */
+ @JsonProperty(value = "database")
+ private String database;
+
+ /**
+ * The schemas property.
+ */
+ @JsonProperty(value = "schemas")
+ private List schemas;
+
+ /**
+ * Get the database value.
+ *
+ * @return the database value
+ */
+ public String database() {
+ return this.database;
+ }
+
+ /**
+ * Set the database value.
+ *
+ * @param database the database value to set
+ * @return the ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem object itself.
+ */
+ public ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem withDatabase(String database) {
+ this.database = database;
+ return this;
+ }
+
+ /**
+ * Get the schemas value.
+ *
+ * @return the schemas value
+ */
+ public List schemas() {
+ return this.schemas;
+ }
+
+ /**
+ * Set the schemas value.
+ *
+ * @param schemas the schemas value to set
+ * @return the ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem object itself.
+ */
+ public ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem withSchemas(List schemas) {
+ this.schemas = schemas;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties.java
new file mode 100644
index 000000000000..871ab0a66616
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties.java
@@ -0,0 +1,65 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Properties for the task that validates connection to Azure Database For
+ * PostgreSQL server and target server requirements for online migration for
+ * Oracle source.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties.class)
+@JsonTypeName("ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync")
+public class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties extends ProjectTaskProperties {
+ /**
+ * Task input.
+ */
+ @JsonProperty(value = "input")
+ private ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput input;
+
+ /**
+ * Task output. This is ignored if submitted.
+ */
+ @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY)
+ private List output;
+
+ /**
+ * Get task input.
+ *
+ * @return the input value
+ */
+ public ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set task input.
+ *
+ * @param input the input value to set
+ * @return the ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties object itself.
+ */
+ public ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties withInput(ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get task output. This is ignored if submitted.
+ *
+ * @return the output value
+ */
+ public List output() {
+ return this.output;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlDbTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlDbTaskProperties.java
index 41bf8703326e..f1e95979af9a 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlDbTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlDbTaskProperties.java
@@ -17,7 +17,7 @@
* Properties for the task that validates connection to SQL DB and target
* server requirements.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = ConnectToTargetSqlDbTaskProperties.class)
@JsonTypeName("ConnectToTarget.SqlDb")
public class ConnectToTargetSqlDbTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskInput.java
new file mode 100644
index 000000000000..ca40c9b0f243
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskInput.java
@@ -0,0 +1,72 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input for the task that validates connection to Azure SQL Database Managed
+ * Instance online scenario.
+ */
+public class ConnectToTargetSqlMISyncTaskInput {
+ /**
+ * Connection information for Azure SQL Database Managed Instance.
+ */
+ @JsonProperty(value = "targetConnectionInfo", required = true)
+ private MiSqlConnectionInfo targetConnectionInfo;
+
+ /**
+ * Azure Active Directory Application the DMS instance will use to connect
+ * to the target instance of Azure SQL Database Managed Instance and the
+ * Azure Storage Account.
+ */
+ @JsonProperty(value = "azureApp", required = true)
+ private AzureActiveDirectoryApp azureApp;
+
+ /**
+ * Get connection information for Azure SQL Database Managed Instance.
+ *
+ * @return the targetConnectionInfo value
+ */
+ public MiSqlConnectionInfo targetConnectionInfo() {
+ return this.targetConnectionInfo;
+ }
+
+ /**
+ * Set connection information for Azure SQL Database Managed Instance.
+ *
+ * @param targetConnectionInfo the targetConnectionInfo value to set
+ * @return the ConnectToTargetSqlMISyncTaskInput object itself.
+ */
+ public ConnectToTargetSqlMISyncTaskInput withTargetConnectionInfo(MiSqlConnectionInfo targetConnectionInfo) {
+ this.targetConnectionInfo = targetConnectionInfo;
+ return this;
+ }
+
+ /**
+ * Get azure Active Directory Application the DMS instance will use to connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage Account.
+ *
+ * @return the azureApp value
+ */
+ public AzureActiveDirectoryApp azureApp() {
+ return this.azureApp;
+ }
+
+ /**
+ * Set azure Active Directory Application the DMS instance will use to connect to the target instance of Azure SQL Database Managed Instance and the Azure Storage Account.
+ *
+ * @param azureApp the azureApp value to set
+ * @return the ConnectToTargetSqlMISyncTaskInput object itself.
+ */
+ public ConnectToTargetSqlMISyncTaskInput withAzureApp(AzureActiveDirectoryApp azureApp) {
+ this.azureApp = azureApp;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskOutput.java
new file mode 100644
index 000000000000..76fed29c64ca
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskOutput.java
@@ -0,0 +1,64 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Output for the task that validates connection to Azure SQL Database Managed
+ * Instance.
+ */
+public class ConnectToTargetSqlMISyncTaskOutput {
+ /**
+ * Target server version.
+ */
+ @JsonProperty(value = "targetServerVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetServerVersion;
+
+ /**
+ * Target server brand version.
+ */
+ @JsonProperty(value = "targetServerBrandVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetServerBrandVersion;
+
+ /**
+ * Validation errors.
+ */
+ @JsonProperty(value = "validationErrors", access = JsonProperty.Access.WRITE_ONLY)
+ private List validationErrors;
+
+ /**
+ * Get target server version.
+ *
+ * @return the targetServerVersion value
+ */
+ public String targetServerVersion() {
+ return this.targetServerVersion;
+ }
+
+ /**
+ * Get target server brand version.
+ *
+ * @return the targetServerBrandVersion value
+ */
+ public String targetServerBrandVersion() {
+ return this.targetServerBrandVersion;
+ }
+
+ /**
+ * Get validation errors.
+ *
+ * @return the validationErrors value
+ */
+ public List validationErrors() {
+ return this.validationErrors;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskProperties.java
new file mode 100644
index 000000000000..e519cb6fc76a
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskProperties.java
@@ -0,0 +1,64 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Properties for the task that validates connection to Azure SQL Database
+ * Managed Instance.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = ConnectToTargetSqlMISyncTaskProperties.class)
+@JsonTypeName("ConnectToTarget.AzureSqlDbMI.Sync.LRS")
+public class ConnectToTargetSqlMISyncTaskProperties extends ProjectTaskProperties {
+ /**
+ * Task input.
+ */
+ @JsonProperty(value = "input")
+ private ConnectToTargetSqlMISyncTaskInput input;
+
+ /**
+ * Task output. This is ignored if submitted.
+ */
+ @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY)
+ private List output;
+
+ /**
+ * Get task input.
+ *
+ * @return the input value
+ */
+ public ConnectToTargetSqlMISyncTaskInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set task input.
+ *
+ * @param input the input value to set
+ * @return the ConnectToTargetSqlMISyncTaskProperties object itself.
+ */
+ public ConnectToTargetSqlMISyncTaskProperties withInput(ConnectToTargetSqlMISyncTaskInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get task output. This is ignored if submitted.
+ *
+ * @return the output value
+ */
+ public List output() {
+ return this.output;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMITaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMITaskInput.java
index c272b707524f..725c16c1cfad 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMITaskInput.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMITaskInput.java
@@ -21,6 +21,25 @@ public class ConnectToTargetSqlMITaskInput {
@JsonProperty(value = "targetConnectionInfo", required = true)
private SqlConnectionInfo targetConnectionInfo;
+ /**
+ * Flag for whether to collect logins from target SQL MI server.
+ */
+ @JsonProperty(value = "collectLogins")
+ private Boolean collectLogins;
+
+ /**
+ * Flag for whether to collect agent jobs from target SQL MI server.
+ */
+ @JsonProperty(value = "collectAgentJobs")
+ private Boolean collectAgentJobs;
+
+ /**
+ * Flag for whether to validate SSIS catalog is reachable on the target SQL
+ * MI server.
+ */
+ @JsonProperty(value = "validateSsisCatalogOnly")
+ private Boolean validateSsisCatalogOnly;
+
/**
* Get connection information for target SQL Server.
*
@@ -41,4 +60,64 @@ public ConnectToTargetSqlMITaskInput withTargetConnectionInfo(SqlConnectionInfo
return this;
}
+ /**
+ * Get flag for whether to collect logins from target SQL MI server.
+ *
+ * @return the collectLogins value
+ */
+ public Boolean collectLogins() {
+ return this.collectLogins;
+ }
+
+ /**
+ * Set flag for whether to collect logins from target SQL MI server.
+ *
+ * @param collectLogins the collectLogins value to set
+ * @return the ConnectToTargetSqlMITaskInput object itself.
+ */
+ public ConnectToTargetSqlMITaskInput withCollectLogins(Boolean collectLogins) {
+ this.collectLogins = collectLogins;
+ return this;
+ }
+
+ /**
+ * Get flag for whether to collect agent jobs from target SQL MI server.
+ *
+ * @return the collectAgentJobs value
+ */
+ public Boolean collectAgentJobs() {
+ return this.collectAgentJobs;
+ }
+
+ /**
+ * Set flag for whether to collect agent jobs from target SQL MI server.
+ *
+ * @param collectAgentJobs the collectAgentJobs value to set
+ * @return the ConnectToTargetSqlMITaskInput object itself.
+ */
+ public ConnectToTargetSqlMITaskInput withCollectAgentJobs(Boolean collectAgentJobs) {
+ this.collectAgentJobs = collectAgentJobs;
+ return this;
+ }
+
+ /**
+ * Get flag for whether to validate SSIS catalog is reachable on the target SQL MI server.
+ *
+ * @return the validateSsisCatalogOnly value
+ */
+ public Boolean validateSsisCatalogOnly() {
+ return this.validateSsisCatalogOnly;
+ }
+
+ /**
+ * Set flag for whether to validate SSIS catalog is reachable on the target SQL MI server.
+ *
+ * @param validateSsisCatalogOnly the validateSsisCatalogOnly value to set
+ * @return the ConnectToTargetSqlMITaskInput object itself.
+ */
+ public ConnectToTargetSqlMITaskInput withValidateSsisCatalogOnly(Boolean validateSsisCatalogOnly) {
+ this.validateSsisCatalogOnly = validateSsisCatalogOnly;
+ return this;
+ }
+
}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMITaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMITaskProperties.java
index faea27badcd5..2e607944fb82 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMITaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlMITaskProperties.java
@@ -17,7 +17,7 @@
* Properties for the task that validates connection to Azure SQL Database
* Managed Instance.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = ConnectToTargetSqlMITaskProperties.class)
@JsonTypeName("ConnectToTarget.AzureSqlDbMI")
public class ConnectToTargetSqlMITaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlSqlDbSyncTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlSqlDbSyncTaskProperties.java
index a9f1f370bc61..b888fe78181c 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlSqlDbSyncTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectToTargetSqlSqlDbSyncTaskProperties.java
@@ -17,7 +17,7 @@
* Properties for the task that validates connection to SQL DB and target
* server requirements for online migration.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = ConnectToTargetSqlSqlDbSyncTaskProperties.class)
@JsonTypeName("ConnectToTarget.SqlDb.Sync")
public class ConnectToTargetSqlSqlDbSyncTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectionInfo.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectionInfo.java
index 66a77d7439ff..79d4024da87f 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectionInfo.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ConnectionInfo.java
@@ -16,30 +16,45 @@
/**
* Defines the connection properties of a server.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", defaultImpl = ConnectionInfo.class)
@JsonTypeName("Unknown")
@JsonSubTypes({
+ @JsonSubTypes.Type(name = "Migrate.SqlServer.AzureDbSqlMi.Complete", value = MigrateMISyncCompleteCommandProperties.class),
@JsonSubTypes.Type(name = "Migrate.Sync.Complete.Database", value = MigrateSyncCompleteCommandProperties.class),
+ @JsonSubTypes.Type(name = "MiSqlConnectionInfo", value = MiSqlConnectionInfo.class),
@JsonSubTypes.Type(name = "PostgreSqlConnectionInfo", value = PostgreSqlConnectionInfo.class),
+ @JsonSubTypes.Type(name = "OracleConnectionInfo", value = OracleConnectionInfo.class),
@JsonSubTypes.Type(name = "MySqlConnectionInfo", value = MySqlConnectionInfo.class),
@JsonSubTypes.Type(name = "MongoDbConnectionInfo", value = MongoDbConnectionInfo.class),
@JsonSubTypes.Type(name = "SqlConnectionInfo", value = SqlConnectionInfo.class),
+ @JsonSubTypes.Type(name = "Migrate.Ssis", value = MigrateSsisTaskProperties.class),
@JsonSubTypes.Type(name = "GetTDECertificates.Sql", value = GetTdeCertificatesSqlTaskProperties.class),
+ @JsonSubTypes.Type(name = "Validate.Oracle.AzureDbPostgreSql.Sync", value = ValidateOracleAzureDbForPostgreSqlSyncTaskProperties.class),
@JsonSubTypes.Type(name = "Validate.MongoDb", value = ValidateMongoDbTaskProperties.class),
+ @JsonSubTypes.Type(name = "ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS", value = ValidateMigrationInputSqlServerSqlMISyncTaskProperties.class),
@JsonSubTypes.Type(name = "ValidateMigrationInput.SqlServer.AzureSqlDbMI", value = ValidateMigrationInputSqlServerSqlMITaskProperties.class),
@JsonSubTypes.Type(name = "ValidateMigrationInput.SqlServer.SqlDb.Sync", value = ValidateMigrationInputSqlServerSqlDbSyncTaskProperties.class),
+ @JsonSubTypes.Type(name = "Migrate.Oracle.AzureDbForPostgreSql.Sync", value = MigrateOracleAzureDbForPostgreSqlSyncTaskProperties.class),
@JsonSubTypes.Type(name = "Migrate.PostgreSql.AzureDbForPostgreSql.Sync", value = MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties.class),
@JsonSubTypes.Type(name = "Migrate.MySql.AzureDbForMySql.Sync", value = MigrateMySqlAzureDbForMySqlSyncTaskProperties.class),
@JsonSubTypes.Type(name = "Migrate.SqlServer.AzureSqlDb.Sync", value = MigrateSqlServerSqlDbSyncTaskProperties.class),
@JsonSubTypes.Type(name = "Migrate.SqlServer.SqlDb", value = MigrateSqlServerSqlDbTaskProperties.class),
+ @JsonSubTypes.Type(name = "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS", value = MigrateSqlServerSqlMISyncTaskProperties.class),
@JsonSubTypes.Type(name = "Migrate.SqlServer.AzureSqlDbMI", value = MigrateSqlServerSqlMITaskProperties.class),
@JsonSubTypes.Type(name = "Migrate.MongoDb", value = MigrateMongoDbTaskProperties.class),
@JsonSubTypes.Type(name = "ConnectToTarget.AzureDbForMySql", value = ConnectToTargetAzureDbForMySqlTaskProperties.class),
+ @JsonSubTypes.Type(name = "ConnectToTarget.AzureSqlDbMI.Sync.LRS", value = ConnectToTargetSqlMISyncTaskProperties.class),
@JsonSubTypes.Type(name = "ConnectToTarget.AzureSqlDbMI", value = ConnectToTargetSqlMITaskProperties.class),
+ @JsonSubTypes.Type(name = "GetUserTablesPostgreSql", value = GetUserTablesPostgreSqlTaskProperties.class),
+ @JsonSubTypes.Type(name = "GetUserTablesOracle", value = GetUserTablesOracleTaskProperties.class),
@JsonSubTypes.Type(name = "GetUserTables.AzureSqlDb.Sync", value = GetUserTablesSqlSyncTaskProperties.class),
@JsonSubTypes.Type(name = "GetUserTables.Sql", value = GetUserTablesSqlTaskProperties.class),
+ @JsonSubTypes.Type(name = "ConnectToTarget.Oracle.AzureDbForPostgreSql.Sync", value = ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties.class),
+ @JsonSubTypes.Type(name = "ConnectToTarget.AzureDbForPostgreSql.Sync", value = ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.class),
@JsonSubTypes.Type(name = "ConnectToTarget.SqlDb.Sync", value = ConnectToTargetSqlSqlDbSyncTaskProperties.class),
@JsonSubTypes.Type(name = "ConnectToTarget.SqlDb", value = ConnectToTargetSqlDbTaskProperties.class),
+ @JsonSubTypes.Type(name = "ConnectToSource.Oracle.Sync", value = ConnectToSourceOracleSyncTaskProperties.class),
+ @JsonSubTypes.Type(name = "ConnectToSource.PostgreSql.Sync", value = ConnectToSourcePostgreSqlSyncTaskProperties.class),
@JsonSubTypes.Type(name = "ConnectToSource.SqlServer.Sync", value = ConnectToSourceSqlServerSyncTaskProperties.class),
@JsonSubTypes.Type(name = "ConnectToSource.SqlServer", value = ConnectToSourceSqlServerTaskProperties.class),
@JsonSubTypes.Type(name = "Connect.MongoDb", value = ConnectToMongoDbTaskProperties.class),
@@ -47,7 +62,10 @@
@JsonSubTypes.Type(name = "MigrateSchemaSqlServerSqlDb", value = MigrateSchemaSqlServerSqlDbTaskProperties.class),
@JsonSubTypes.Type(name = "cancel", value = MongoDbCancelCommand.class),
@JsonSubTypes.Type(name = "finish", value = MongoDbFinishCommand.class),
- @JsonSubTypes.Type(name = "restart", value = MongoDbRestartCommand.class)
+ @JsonSubTypes.Type(name = "restart", value = MongoDbRestartCommand.class),
+ @JsonSubTypes.Type(name = "Service.Check.OCI", value = CheckOCIDriverTaskProperties.class),
+ @JsonSubTypes.Type(name = "Service.Upload.OCI", value = UploadOCIDriverTaskProperties.class),
+ @JsonSubTypes.Type(name = "Service.Install.OCI", value = InstallOCIDriverTaskProperties.class)
})
public class ConnectionInfo {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/DatabaseMigrationState.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/DatabaseMigrationState.java
new file mode 100644
index 000000000000..62fd134648ac
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/DatabaseMigrationState.java
@@ -0,0 +1,65 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.Collection;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.microsoft.rest.ExpandableStringEnum;
+
+/**
+ * Defines values for DatabaseMigrationState.
+ */
+public final class DatabaseMigrationState extends ExpandableStringEnum {
+ /** Static value UNDEFINED for DatabaseMigrationState. */
+ public static final DatabaseMigrationState UNDEFINED = fromString("UNDEFINED");
+
+ /** Static value INITIAL for DatabaseMigrationState. */
+ public static final DatabaseMigrationState INITIAL = fromString("INITIAL");
+
+ /** Static value FULL_BACKUP_UPLOAD_START for DatabaseMigrationState. */
+ public static final DatabaseMigrationState FULL_BACKUP_UPLOAD_START = fromString("FULL_BACKUP_UPLOAD_START");
+
+ /** Static value LOG_SHIPPING_START for DatabaseMigrationState. */
+ public static final DatabaseMigrationState LOG_SHIPPING_START = fromString("LOG_SHIPPING_START");
+
+ /** Static value UPLOAD_LOG_FILES_START for DatabaseMigrationState. */
+ public static final DatabaseMigrationState UPLOAD_LOG_FILES_START = fromString("UPLOAD_LOG_FILES_START");
+
+ /** Static value CUTOVER_START for DatabaseMigrationState. */
+ public static final DatabaseMigrationState CUTOVER_START = fromString("CUTOVER_START");
+
+ /** Static value POST_CUTOVER_COMPLETE for DatabaseMigrationState. */
+ public static final DatabaseMigrationState POST_CUTOVER_COMPLETE = fromString("POST_CUTOVER_COMPLETE");
+
+ /** Static value COMPLETED for DatabaseMigrationState. */
+ public static final DatabaseMigrationState COMPLETED = fromString("COMPLETED");
+
+ /** Static value CANCELLED for DatabaseMigrationState. */
+ public static final DatabaseMigrationState CANCELLED = fromString("CANCELLED");
+
+ /** Static value FAILED for DatabaseMigrationState. */
+ public static final DatabaseMigrationState FAILED = fromString("FAILED");
+
+ /**
+ * Creates or finds a DatabaseMigrationState from its string representation.
+ * @param name a name to look for
+ * @return the corresponding DatabaseMigrationState
+ */
+ @JsonCreator
+ public static DatabaseMigrationState fromString(String name) {
+ return fromString(name, DatabaseMigrationState.class);
+ }
+
+ /**
+ * @return known DatabaseMigrationState values
+ */
+ public static Collection values() {
+ return values(DatabaseMigrationState.class);
+ }
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetTdeCertificatesSqlTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetTdeCertificatesSqlTaskProperties.java
index 859c4d2e44e7..0c8521e017be 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetTdeCertificatesSqlTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetTdeCertificatesSqlTaskProperties.java
@@ -16,7 +16,7 @@
/**
* Properties for the task that gets TDE certificates in Base64 encoded format.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = GetTdeCertificatesSqlTaskProperties.class)
@JsonTypeName("GetTDECertificates.Sql")
public class GetTdeCertificatesSqlTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesOracleTaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesOracleTaskInput.java
new file mode 100644
index 000000000000..9272e4a781a4
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesOracleTaskInput.java
@@ -0,0 +1,71 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input for the task that gets the list of tables contained within a provided
+ * list of Oracle schemas.
+ */
+public class GetUserTablesOracleTaskInput {
+ /**
+ * Information for connecting to Oracle source.
+ */
+ @JsonProperty(value = "connectionInfo", required = true)
+ private OracleConnectionInfo connectionInfo;
+
+ /**
+ * List of Oracle schemas for which to collect tables.
+ */
+ @JsonProperty(value = "selectedSchemas", required = true)
+ private List selectedSchemas;
+
+ /**
+ * Get information for connecting to Oracle source.
+ *
+ * @return the connectionInfo value
+ */
+ public OracleConnectionInfo connectionInfo() {
+ return this.connectionInfo;
+ }
+
+ /**
+ * Set information for connecting to Oracle source.
+ *
+ * @param connectionInfo the connectionInfo value to set
+ * @return the GetUserTablesOracleTaskInput object itself.
+ */
+ public GetUserTablesOracleTaskInput withConnectionInfo(OracleConnectionInfo connectionInfo) {
+ this.connectionInfo = connectionInfo;
+ return this;
+ }
+
+ /**
+ * Get list of Oracle schemas for which to collect tables.
+ *
+ * @return the selectedSchemas value
+ */
+ public List selectedSchemas() {
+ return this.selectedSchemas;
+ }
+
+ /**
+ * Set list of Oracle schemas for which to collect tables.
+ *
+ * @param selectedSchemas the selectedSchemas value to set
+ * @return the GetUserTablesOracleTaskInput object itself.
+ */
+ public GetUserTablesOracleTaskInput withSelectedSchemas(List selectedSchemas) {
+ this.selectedSchemas = selectedSchemas;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesOracleTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesOracleTaskOutput.java
new file mode 100644
index 000000000000..969b4e2e4d07
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesOracleTaskOutput.java
@@ -0,0 +1,64 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Output for the task that gets the list of tables contained within a provided
+ * list of Oracle schemas.
+ */
+public class GetUserTablesOracleTaskOutput {
+ /**
+ * The schema this result is for.
+ */
+ @JsonProperty(value = "schemaName", access = JsonProperty.Access.WRITE_ONLY)
+ private String schemaName;
+
+ /**
+ * List of valid tables found for this schema.
+ */
+ @JsonProperty(value = "tables", access = JsonProperty.Access.WRITE_ONLY)
+ private List tables;
+
+ /**
+ * Validation errors associated with the task.
+ */
+ @JsonProperty(value = "validationErrors", access = JsonProperty.Access.WRITE_ONLY)
+ private List validationErrors;
+
+ /**
+ * Get the schema this result is for.
+ *
+ * @return the schemaName value
+ */
+ public String schemaName() {
+ return this.schemaName;
+ }
+
+ /**
+ * Get list of valid tables found for this schema.
+ *
+ * @return the tables value
+ */
+ public List tables() {
+ return this.tables;
+ }
+
+ /**
+ * Get validation errors associated with the task.
+ *
+ * @return the validationErrors value
+ */
+ public List validationErrors() {
+ return this.validationErrors;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesOracleTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesOracleTaskProperties.java
new file mode 100644
index 000000000000..f4cf0aae0b76
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesOracleTaskProperties.java
@@ -0,0 +1,64 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Properties for the task that collects user tables for the given list of
+ * Oracle schemas.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = GetUserTablesOracleTaskProperties.class)
+@JsonTypeName("GetUserTablesOracle")
+public class GetUserTablesOracleTaskProperties extends ProjectTaskProperties {
+ /**
+ * Task input.
+ */
+ @JsonProperty(value = "input")
+ private GetUserTablesOracleTaskInput input;
+
+ /**
+ * Task output. This is ignored if submitted.
+ */
+ @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY)
+ private List output;
+
+ /**
+ * Get task input.
+ *
+ * @return the input value
+ */
+ public GetUserTablesOracleTaskInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set task input.
+ *
+ * @param input the input value to set
+ * @return the GetUserTablesOracleTaskProperties object itself.
+ */
+ public GetUserTablesOracleTaskProperties withInput(GetUserTablesOracleTaskInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get task output. This is ignored if submitted.
+ *
+ * @return the output value
+ */
+ public List output() {
+ return this.output;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesPostgreSqlTaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesPostgreSqlTaskInput.java
new file mode 100644
index 000000000000..9732d6b6ad08
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesPostgreSqlTaskInput.java
@@ -0,0 +1,71 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input for the task that gets the list of tables for a provided list of
+ * PostgreSQL databases.
+ */
+public class GetUserTablesPostgreSqlTaskInput {
+ /**
+ * Information for connecting to PostgreSQL source.
+ */
+ @JsonProperty(value = "connectionInfo", required = true)
+ private PostgreSqlConnectionInfo connectionInfo;
+
+ /**
+ * List of PostgreSQL databases for which to collect tables.
+ */
+ @JsonProperty(value = "selectedDatabases", required = true)
+ private List selectedDatabases;
+
+ /**
+ * Get information for connecting to PostgreSQL source.
+ *
+ * @return the connectionInfo value
+ */
+ public PostgreSqlConnectionInfo connectionInfo() {
+ return this.connectionInfo;
+ }
+
+ /**
+ * Set information for connecting to PostgreSQL source.
+ *
+ * @param connectionInfo the connectionInfo value to set
+ * @return the GetUserTablesPostgreSqlTaskInput object itself.
+ */
+ public GetUserTablesPostgreSqlTaskInput withConnectionInfo(PostgreSqlConnectionInfo connectionInfo) {
+ this.connectionInfo = connectionInfo;
+ return this;
+ }
+
+ /**
+ * Get list of PostgreSQL databases for which to collect tables.
+ *
+ * @return the selectedDatabases value
+ */
+ public List selectedDatabases() {
+ return this.selectedDatabases;
+ }
+
+ /**
+ * Set list of PostgreSQL databases for which to collect tables.
+ *
+ * @param selectedDatabases the selectedDatabases value to set
+ * @return the GetUserTablesPostgreSqlTaskInput object itself.
+ */
+ public GetUserTablesPostgreSqlTaskInput withSelectedDatabases(List selectedDatabases) {
+ this.selectedDatabases = selectedDatabases;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesPostgreSqlTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesPostgreSqlTaskOutput.java
new file mode 100644
index 000000000000..e191a82a6162
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesPostgreSqlTaskOutput.java
@@ -0,0 +1,64 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Output for the task that gets the list of tables for a provided list of
+ * PostgreSQL databases.
+ */
+public class GetUserTablesPostgreSqlTaskOutput {
+ /**
+ * The database this result is for.
+ */
+ @JsonProperty(value = "databaseName", access = JsonProperty.Access.WRITE_ONLY)
+ private String databaseName;
+
+ /**
+ * List of valid tables found for this database.
+ */
+ @JsonProperty(value = "tables", access = JsonProperty.Access.WRITE_ONLY)
+ private List tables;
+
+ /**
+ * Validation errors associated with the task.
+ */
+ @JsonProperty(value = "validationErrors", access = JsonProperty.Access.WRITE_ONLY)
+ private List validationErrors;
+
+ /**
+ * Get the database this result is for.
+ *
+ * @return the databaseName value
+ */
+ public String databaseName() {
+ return this.databaseName;
+ }
+
+ /**
+ * Get list of valid tables found for this database.
+ *
+ * @return the tables value
+ */
+ public List tables() {
+ return this.tables;
+ }
+
+ /**
+ * Get validation errors associated with the task.
+ *
+ * @return the validationErrors value
+ */
+ public List validationErrors() {
+ return this.validationErrors;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesPostgreSqlTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesPostgreSqlTaskProperties.java
new file mode 100644
index 000000000000..e96ec1e90903
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesPostgreSqlTaskProperties.java
@@ -0,0 +1,64 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Properties for the task that collects user tables for the given list of
+ * databases.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = GetUserTablesPostgreSqlTaskProperties.class)
+@JsonTypeName("GetUserTablesPostgreSql")
+public class GetUserTablesPostgreSqlTaskProperties extends ProjectTaskProperties {
+ /**
+ * Task input.
+ */
+ @JsonProperty(value = "input")
+ private GetUserTablesPostgreSqlTaskInput input;
+
+ /**
+ * Task output. This is ignored if submitted.
+ */
+ @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY)
+ private List output;
+
+ /**
+ * Get task input.
+ *
+ * @return the input value
+ */
+ public GetUserTablesPostgreSqlTaskInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set task input.
+ *
+ * @param input the input value to set
+ * @return the GetUserTablesPostgreSqlTaskProperties object itself.
+ */
+ public GetUserTablesPostgreSqlTaskProperties withInput(GetUserTablesPostgreSqlTaskInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get task output. This is ignored if submitted.
+ *
+ * @return the output value
+ */
+ public List output() {
+ return this.output;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesSqlSyncTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesSqlSyncTaskProperties.java
index 6fc255df11d1..c5403146628a 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesSqlSyncTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesSqlSyncTaskProperties.java
@@ -17,7 +17,7 @@
* Properties for the task that collects user tables for the given list of
* databases.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = GetUserTablesSqlSyncTaskProperties.class)
@JsonTypeName("GetUserTables.AzureSqlDb.Sync")
public class GetUserTablesSqlSyncTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesSqlTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesSqlTaskProperties.java
index d3e975fd41b5..21e987b48f37 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesSqlTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/GetUserTablesSqlTaskProperties.java
@@ -17,7 +17,7 @@
* Properties for the task that collects user tables for the given list of
* databases.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = GetUserTablesSqlTaskProperties.class)
@JsonTypeName("GetUserTables.Sql")
public class GetUserTablesSqlTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/InstallOCIDriverTaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/InstallOCIDriverTaskInput.java
new file mode 100644
index 000000000000..39e15dc30224
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/InstallOCIDriverTaskInput.java
@@ -0,0 +1,43 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input for the service task to install an OCI driver.
+ */
+public class InstallOCIDriverTaskInput {
+ /**
+ * Name of the uploaded driver package to install.
+ */
+ @JsonProperty(value = "driverPackageName")
+ private String driverPackageName;
+
+ /**
+ * Get name of the uploaded driver package to install.
+ *
+ * @return the driverPackageName value
+ */
+ public String driverPackageName() {
+ return this.driverPackageName;
+ }
+
+ /**
+ * Set name of the uploaded driver package to install.
+ *
+ * @param driverPackageName the driverPackageName value to set
+ * @return the InstallOCIDriverTaskInput object itself.
+ */
+ public InstallOCIDriverTaskInput withDriverPackageName(String driverPackageName) {
+ this.driverPackageName = driverPackageName;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/InstallOCIDriverTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/InstallOCIDriverTaskOutput.java
new file mode 100644
index 000000000000..8fee73903a3e
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/InstallOCIDriverTaskOutput.java
@@ -0,0 +1,33 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Output for the service task to install an OCI driver.
+ */
+public class InstallOCIDriverTaskOutput {
+ /**
+ * Validation errors.
+ */
+ @JsonProperty(value = "validationErrors", access = JsonProperty.Access.WRITE_ONLY)
+ private List validationErrors;
+
+ /**
+ * Get validation errors.
+ *
+ * @return the validationErrors value
+ */
+ public List validationErrors() {
+ return this.validationErrors;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/InstallOCIDriverTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/InstallOCIDriverTaskProperties.java
new file mode 100644
index 000000000000..86443cf43865
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/InstallOCIDriverTaskProperties.java
@@ -0,0 +1,63 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Properties for the task that installs an OCI driver.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = InstallOCIDriverTaskProperties.class)
+@JsonTypeName("Service.Install.OCI")
+public class InstallOCIDriverTaskProperties extends ProjectTaskProperties {
+ /**
+ * The input property.
+ */
+ @JsonProperty(value = "input")
+ private InstallOCIDriverTaskInput input;
+
+ /**
+ * Task output. This is ignored if submitted.
+ */
+ @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY)
+ private List output;
+
+ /**
+ * Get the input value.
+ *
+ * @return the input value
+ */
+ public InstallOCIDriverTaskInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set the input value.
+ *
+ * @param input the input value to set
+ * @return the InstallOCIDriverTaskProperties object itself.
+ */
+ public InstallOCIDriverTaskProperties withInput(InstallOCIDriverTaskInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get task output. This is ignored if submitted.
+ *
+ * @return the output value
+ */
+ public List output() {
+ return this.output;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MiSqlConnectionInfo.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MiSqlConnectionInfo.java
new file mode 100644
index 000000000000..0c68a37e473b
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MiSqlConnectionInfo.java
@@ -0,0 +1,48 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Properties required to create a connection to Azure SQL database Managed
+ * instance.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", defaultImpl = MiSqlConnectionInfo.class)
+@JsonTypeName("MiSqlConnectionInfo")
+public class MiSqlConnectionInfo extends ConnectionInfo {
+ /**
+ * Resource id for Azure SQL database Managed instance.
+ */
+ @JsonProperty(value = "managedInstanceResourceId", required = true)
+ private String managedInstanceResourceId;
+
+ /**
+ * Get resource id for Azure SQL database Managed instance.
+ *
+ * @return the managedInstanceResourceId value
+ */
+ public String managedInstanceResourceId() {
+ return this.managedInstanceResourceId;
+ }
+
+ /**
+ * Set resource id for Azure SQL database Managed instance.
+ *
+ * @param managedInstanceResourceId the managedInstanceResourceId value to set
+ * @return the MiSqlConnectionInfo object itself.
+ */
+ public MiSqlConnectionInfo withManagedInstanceResourceId(String managedInstanceResourceId) {
+ this.managedInstanceResourceId = managedInstanceResourceId;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMISyncCompleteCommandInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMISyncCompleteCommandInput.java
new file mode 100644
index 000000000000..6086851bc836
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMISyncCompleteCommandInput.java
@@ -0,0 +1,44 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input for command that completes online migration for an Azure SQL Database
+ * Managed Instance.
+ */
+public class MigrateMISyncCompleteCommandInput {
+ /**
+ * Name of managed instance database.
+ */
+ @JsonProperty(value = "sourceDatabaseName", required = true)
+ private String sourceDatabaseName;
+
+ /**
+ * Get name of managed instance database.
+ *
+ * @return the sourceDatabaseName value
+ */
+ public String sourceDatabaseName() {
+ return this.sourceDatabaseName;
+ }
+
+ /**
+ * Set name of managed instance database.
+ *
+ * @param sourceDatabaseName the sourceDatabaseName value to set
+ * @return the MigrateMISyncCompleteCommandInput object itself.
+ */
+ public MigrateMISyncCompleteCommandInput withSourceDatabaseName(String sourceDatabaseName) {
+ this.sourceDatabaseName = sourceDatabaseName;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMISyncCompleteCommandOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMISyncCompleteCommandOutput.java
new file mode 100644
index 000000000000..b41de92b4891
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMISyncCompleteCommandOutput.java
@@ -0,0 +1,45 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Output for command that completes online migration for an Azure SQL Database
+ * Managed Instance.
+ */
+public class MigrateMISyncCompleteCommandOutput {
+ /**
+ * List of errors that happened during the command execution.
+ */
+ @JsonProperty(value = "errors")
+ private List errors;
+
+ /**
+ * Get list of errors that happened during the command execution.
+ *
+ * @return the errors value
+ */
+ public List errors() {
+ return this.errors;
+ }
+
+ /**
+ * Set list of errors that happened during the command execution.
+ *
+ * @param errors the errors value to set
+ * @return the MigrateMISyncCompleteCommandOutput object itself.
+ */
+ public MigrateMISyncCompleteCommandOutput withErrors(List errors) {
+ this.errors = errors;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMISyncCompleteCommandProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMISyncCompleteCommandProperties.java
new file mode 100644
index 000000000000..b694c2c81168
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMISyncCompleteCommandProperties.java
@@ -0,0 +1,64 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.microsoft.azure.management.datamigration.v2018_07_15_preview.implementation.CommandPropertiesInner;
+
+/**
+ * Properties for the command that completes online migration for an Azure SQL
+ * Database Managed Instance.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "commandType", defaultImpl = MigrateMISyncCompleteCommandProperties.class)
+@JsonTypeName("Migrate.SqlServer.AzureDbSqlMi.Complete")
+public class MigrateMISyncCompleteCommandProperties extends CommandPropertiesInner {
+ /**
+ * Command input.
+ */
+ @JsonProperty(value = "input")
+ private MigrateMISyncCompleteCommandInput input;
+
+ /**
+ * Command output. This is ignored if submitted.
+ */
+ @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY)
+ private MigrateMISyncCompleteCommandOutput output;
+
+ /**
+ * Get command input.
+ *
+ * @return the input value
+ */
+ public MigrateMISyncCompleteCommandInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set command input.
+ *
+ * @param input the input value to set
+ * @return the MigrateMISyncCompleteCommandProperties object itself.
+ */
+ public MigrateMISyncCompleteCommandProperties withInput(MigrateMISyncCompleteCommandInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get command output. This is ignored if submitted.
+ *
+ * @return the output value
+ */
+ public MigrateMISyncCompleteCommandOutput output() {
+ return this.output;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMongoDbTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMongoDbTaskProperties.java
index 3783388278f6..0a05721e7f53 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMongoDbTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMongoDbTaskProperties.java
@@ -16,7 +16,7 @@
/**
* Properties for the task that migrates data between MongoDB data sources.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = MigrateMongoDbTaskProperties.class)
@JsonTypeName("Migrate.MongoDb")
public class MigrateMongoDbTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.java
index 9c6511a2ddb2..afb4df949796 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.java
@@ -8,6 +8,7 @@
package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
@@ -28,6 +29,24 @@ public class MigrateMySqlAzureDbForMySqlSyncDatabaseInput {
@JsonProperty(value = "targetDatabaseName")
private String targetDatabaseName;
+ /**
+ * Migration settings which tune the migration behavior.
+ */
+ @JsonProperty(value = "migrationSetting")
+ private Map migrationSetting;
+
+ /**
+ * Source settings to tune source endpoint migration behavior.
+ */
+ @JsonProperty(value = "sourceSetting")
+ private Map sourceSetting;
+
+ /**
+ * Target settings to tune target endpoint migration behavior.
+ */
+ @JsonProperty(value = "targetSetting")
+ private Map targetSetting;
+
/**
* Get name of the database.
*
@@ -68,4 +87,64 @@ public MigrateMySqlAzureDbForMySqlSyncDatabaseInput withTargetDatabaseName(Strin
return this;
}
+ /**
+ * Get migration settings which tune the migration behavior.
+ *
+ * @return the migrationSetting value
+ */
+ public Map migrationSetting() {
+ return this.migrationSetting;
+ }
+
+ /**
+ * Set migration settings which tune the migration behavior.
+ *
+ * @param migrationSetting the migrationSetting value to set
+ * @return the MigrateMySqlAzureDbForMySqlSyncDatabaseInput object itself.
+ */
+ public MigrateMySqlAzureDbForMySqlSyncDatabaseInput withMigrationSetting(Map migrationSetting) {
+ this.migrationSetting = migrationSetting;
+ return this;
+ }
+
+ /**
+ * Get source settings to tune source endpoint migration behavior.
+ *
+ * @return the sourceSetting value
+ */
+ public Map sourceSetting() {
+ return this.sourceSetting;
+ }
+
+ /**
+ * Set source settings to tune source endpoint migration behavior.
+ *
+ * @param sourceSetting the sourceSetting value to set
+ * @return the MigrateMySqlAzureDbForMySqlSyncDatabaseInput object itself.
+ */
+ public MigrateMySqlAzureDbForMySqlSyncDatabaseInput withSourceSetting(Map sourceSetting) {
+ this.sourceSetting = sourceSetting;
+ return this;
+ }
+
+ /**
+ * Get target settings to tune target endpoint migration behavior.
+ *
+ * @return the targetSetting value
+ */
+ public Map targetSetting() {
+ return this.targetSetting;
+ }
+
+ /**
+ * Set target settings to tune target endpoint migration behavior.
+ *
+ * @param targetSetting the targetSetting value to set
+ * @return the MigrateMySqlAzureDbForMySqlSyncDatabaseInput object itself.
+ */
+ public MigrateMySqlAzureDbForMySqlSyncDatabaseInput withTargetSetting(Map targetSetting) {
+ this.targetSetting = targetSetting;
+ return this;
+ }
+
}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutput.java
index 65519021593f..adab82444daa 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutput.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutput.java
@@ -17,7 +17,7 @@
* Output for the task that migrates MySQL databases to Azure Database for
* MySQL for online migrations.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateMySqlAzureDbForMySqlSyncTaskOutput.class)
@JsonTypeName("MigrateMySqlAzureDbForMySqlSyncTaskOutput")
@JsonSubTypes({
@JsonSubTypes.Type(name = "DatabaseLevelErrorOutput", value = MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError.class),
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError.java
index 75a8a0837b7b..49cbcc1b03f7 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError.java
@@ -16,7 +16,7 @@
/**
* The MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError.class)
@JsonTypeName("DatabaseLevelErrorOutput")
public class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError extends MigrateMySqlAzureDbForMySqlSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel.java
index 54e7ede733d7..5e9ef0029d43 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel.java
@@ -16,7 +16,7 @@
/**
* The MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel.class)
@JsonTypeName("DatabaseLevelOutput")
public class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel extends MigrateMySqlAzureDbForMySqlSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputError.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputError.java
index c6f586d45a32..9633409eb9ee 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputError.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputError.java
@@ -15,7 +15,7 @@
/**
* The MigrateMySqlAzureDbForMySqlSyncTaskOutputError model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateMySqlAzureDbForMySqlSyncTaskOutputError.class)
@JsonTypeName("ErrorOutput")
public class MigrateMySqlAzureDbForMySqlSyncTaskOutputError extends MigrateMySqlAzureDbForMySqlSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel.java
index f905f16855a4..fd30236afc58 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel.java
@@ -16,7 +16,7 @@
/**
* The MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel.class)
@JsonTypeName("MigrationLevelOutput")
public class MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel extends MigrateMySqlAzureDbForMySqlSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel.java
index 10a44aea9873..9b714b311904 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel.java
@@ -16,7 +16,7 @@
/**
* The MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel.class)
@JsonTypeName("TableLevelOutput")
public class MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel extends MigrateMySqlAzureDbForMySqlSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskProperties.java
index eb6da201f3af..c2110fb52f59 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncTaskProperties.java
@@ -17,7 +17,7 @@
* Properties for the task that migrates MySQL databases to Azure Database for
* MySQL for online migrations.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = MigrateMySqlAzureDbForMySqlSyncTaskProperties.class)
@JsonTypeName("Migrate.MySql.AzureDbForMySql.Sync")
public class MigrateMySqlAzureDbForMySqlSyncTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbForPostgreSqlSyncTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbForPostgreSqlSyncTaskProperties.java
new file mode 100644
index 000000000000..08fa5d22ac40
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbForPostgreSqlSyncTaskProperties.java
@@ -0,0 +1,64 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Properties for the task that migrates Oracle to Azure Database for
+ * PostgreSQL for online migrations.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = MigrateOracleAzureDbForPostgreSqlSyncTaskProperties.class)
+@JsonTypeName("Migrate.Oracle.AzureDbForPostgreSql.Sync")
+public class MigrateOracleAzureDbForPostgreSqlSyncTaskProperties extends ProjectTaskProperties {
+ /**
+ * Task input.
+ */
+ @JsonProperty(value = "input")
+ private MigrateOracleAzureDbPostgreSqlSyncTaskInput input;
+
+ /**
+ * Task output. This is ignored if submitted.
+ */
+ @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY)
+ private List output;
+
+ /**
+ * Get task input.
+ *
+ * @return the input value
+ */
+ public MigrateOracleAzureDbPostgreSqlSyncTaskInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set task input.
+ *
+ * @param input the input value to set
+ * @return the MigrateOracleAzureDbForPostgreSqlSyncTaskProperties object itself.
+ */
+ public MigrateOracleAzureDbForPostgreSqlSyncTaskProperties withInput(MigrateOracleAzureDbPostgreSqlSyncTaskInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get task output. This is ignored if submitted.
+ *
+ * @return the output value
+ */
+ public List output() {
+ return this.output;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncDatabaseInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncDatabaseInput.java
new file mode 100644
index 000000000000..5fddb98cb0f7
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncDatabaseInput.java
@@ -0,0 +1,228 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.Map;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Database specific information for Oracle to Azure Database for PostgreSQL
+ * migration task inputs.
+ */
+public class MigrateOracleAzureDbPostgreSqlSyncDatabaseInput {
+ /**
+ * How to handle object name casing: either Preserve or ToLower.
+ */
+ @JsonProperty(value = "caseManipulation")
+ private String caseManipulation;
+
+ /**
+ * Name of the migration pipeline.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * Name of the source schema.
+ */
+ @JsonProperty(value = "schemaName")
+ private String schemaName;
+
+ /**
+ * Mapping of source to target tables.
+ */
+ @JsonProperty(value = "tableMap")
+ private Map tableMap;
+
+ /**
+ * Name of target database. Note: Target database will be truncated before
+ * starting migration.
+ */
+ @JsonProperty(value = "targetDatabaseName")
+ private String targetDatabaseName;
+
+ /**
+ * Migration settings which tune the migration behavior.
+ */
+ @JsonProperty(value = "migrationSetting")
+ private Map migrationSetting;
+
+ /**
+ * Source settings to tune source endpoint migration behavior.
+ */
+ @JsonProperty(value = "sourceSetting")
+ private Map sourceSetting;
+
+ /**
+ * Target settings to tune target endpoint migration behavior.
+ */
+ @JsonProperty(value = "targetSetting")
+ private Map targetSetting;
+
+ /**
+ * Get how to handle object name casing: either Preserve or ToLower.
+ *
+ * @return the caseManipulation value
+ */
+ public String caseManipulation() {
+ return this.caseManipulation;
+ }
+
+ /**
+ * Set how to handle object name casing: either Preserve or ToLower.
+ *
+ * @param caseManipulation the caseManipulation value to set
+ * @return the MigrateOracleAzureDbPostgreSqlSyncDatabaseInput object itself.
+ */
+ public MigrateOracleAzureDbPostgreSqlSyncDatabaseInput withCaseManipulation(String caseManipulation) {
+ this.caseManipulation = caseManipulation;
+ return this;
+ }
+
+ /**
+ * Get name of the migration pipeline.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set name of the migration pipeline.
+ *
+ * @param name the name value to set
+ * @return the MigrateOracleAzureDbPostgreSqlSyncDatabaseInput object itself.
+ */
+ public MigrateOracleAzureDbPostgreSqlSyncDatabaseInput withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get name of the source schema.
+ *
+ * @return the schemaName value
+ */
+ public String schemaName() {
+ return this.schemaName;
+ }
+
+ /**
+ * Set name of the source schema.
+ *
+ * @param schemaName the schemaName value to set
+ * @return the MigrateOracleAzureDbPostgreSqlSyncDatabaseInput object itself.
+ */
+ public MigrateOracleAzureDbPostgreSqlSyncDatabaseInput withSchemaName(String schemaName) {
+ this.schemaName = schemaName;
+ return this;
+ }
+
+ /**
+ * Get mapping of source to target tables.
+ *
+ * @return the tableMap value
+ */
+ public Map tableMap() {
+ return this.tableMap;
+ }
+
+ /**
+ * Set mapping of source to target tables.
+ *
+ * @param tableMap the tableMap value to set
+ * @return the MigrateOracleAzureDbPostgreSqlSyncDatabaseInput object itself.
+ */
+ public MigrateOracleAzureDbPostgreSqlSyncDatabaseInput withTableMap(Map tableMap) {
+ this.tableMap = tableMap;
+ return this;
+ }
+
+ /**
+ * Get name of target database. Note: Target database will be truncated before starting migration.
+ *
+ * @return the targetDatabaseName value
+ */
+ public String targetDatabaseName() {
+ return this.targetDatabaseName;
+ }
+
+ /**
+ * Set name of target database. Note: Target database will be truncated before starting migration.
+ *
+ * @param targetDatabaseName the targetDatabaseName value to set
+ * @return the MigrateOracleAzureDbPostgreSqlSyncDatabaseInput object itself.
+ */
+ public MigrateOracleAzureDbPostgreSqlSyncDatabaseInput withTargetDatabaseName(String targetDatabaseName) {
+ this.targetDatabaseName = targetDatabaseName;
+ return this;
+ }
+
+ /**
+ * Get migration settings which tune the migration behavior.
+ *
+ * @return the migrationSetting value
+ */
+ public Map migrationSetting() {
+ return this.migrationSetting;
+ }
+
+ /**
+ * Set migration settings which tune the migration behavior.
+ *
+ * @param migrationSetting the migrationSetting value to set
+ * @return the MigrateOracleAzureDbPostgreSqlSyncDatabaseInput object itself.
+ */
+ public MigrateOracleAzureDbPostgreSqlSyncDatabaseInput withMigrationSetting(Map migrationSetting) {
+ this.migrationSetting = migrationSetting;
+ return this;
+ }
+
+ /**
+ * Get source settings to tune source endpoint migration behavior.
+ *
+ * @return the sourceSetting value
+ */
+ public Map sourceSetting() {
+ return this.sourceSetting;
+ }
+
+ /**
+ * Set source settings to tune source endpoint migration behavior.
+ *
+ * @param sourceSetting the sourceSetting value to set
+ * @return the MigrateOracleAzureDbPostgreSqlSyncDatabaseInput object itself.
+ */
+ public MigrateOracleAzureDbPostgreSqlSyncDatabaseInput withSourceSetting(Map sourceSetting) {
+ this.sourceSetting = sourceSetting;
+ return this;
+ }
+
+ /**
+ * Get target settings to tune target endpoint migration behavior.
+ *
+ * @return the targetSetting value
+ */
+ public Map targetSetting() {
+ return this.targetSetting;
+ }
+
+ /**
+ * Set target settings to tune target endpoint migration behavior.
+ *
+ * @param targetSetting the targetSetting value to set
+ * @return the MigrateOracleAzureDbPostgreSqlSyncDatabaseInput object itself.
+ */
+ public MigrateOracleAzureDbPostgreSqlSyncDatabaseInput withTargetSetting(Map targetSetting) {
+ this.targetSetting = targetSetting;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskInput.java
new file mode 100644
index 000000000000..e71a9f74af8c
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskInput.java
@@ -0,0 +1,97 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input for the task that migrates Oracle databases to Azure Database for
+ * PostgreSQL for online migrations.
+ */
+public class MigrateOracleAzureDbPostgreSqlSyncTaskInput {
+ /**
+ * Databases to migrate.
+ */
+ @JsonProperty(value = "selectedDatabases", required = true)
+ private List selectedDatabases;
+
+ /**
+ * Connection information for target Azure Database for PostgreSQL.
+ */
+ @JsonProperty(value = "targetConnectionInfo", required = true)
+ private PostgreSqlConnectionInfo targetConnectionInfo;
+
+ /**
+ * Connection information for source Oracle.
+ */
+ @JsonProperty(value = "sourceConnectionInfo", required = true)
+ private OracleConnectionInfo sourceConnectionInfo;
+
+ /**
+ * Get databases to migrate.
+ *
+ * @return the selectedDatabases value
+ */
+ public List selectedDatabases() {
+ return this.selectedDatabases;
+ }
+
+ /**
+ * Set databases to migrate.
+ *
+ * @param selectedDatabases the selectedDatabases value to set
+ * @return the MigrateOracleAzureDbPostgreSqlSyncTaskInput object itself.
+ */
+ public MigrateOracleAzureDbPostgreSqlSyncTaskInput withSelectedDatabases(List selectedDatabases) {
+ this.selectedDatabases = selectedDatabases;
+ return this;
+ }
+
+ /**
+ * Get connection information for target Azure Database for PostgreSQL.
+ *
+ * @return the targetConnectionInfo value
+ */
+ public PostgreSqlConnectionInfo targetConnectionInfo() {
+ return this.targetConnectionInfo;
+ }
+
+ /**
+ * Set connection information for target Azure Database for PostgreSQL.
+ *
+ * @param targetConnectionInfo the targetConnectionInfo value to set
+ * @return the MigrateOracleAzureDbPostgreSqlSyncTaskInput object itself.
+ */
+ public MigrateOracleAzureDbPostgreSqlSyncTaskInput withTargetConnectionInfo(PostgreSqlConnectionInfo targetConnectionInfo) {
+ this.targetConnectionInfo = targetConnectionInfo;
+ return this;
+ }
+
+ /**
+ * Get connection information for source Oracle.
+ *
+ * @return the sourceConnectionInfo value
+ */
+ public OracleConnectionInfo sourceConnectionInfo() {
+ return this.sourceConnectionInfo;
+ }
+
+ /**
+ * Set connection information for source Oracle.
+ *
+ * @param sourceConnectionInfo the sourceConnectionInfo value to set
+ * @return the MigrateOracleAzureDbPostgreSqlSyncTaskInput object itself.
+ */
+ public MigrateOracleAzureDbPostgreSqlSyncTaskInput withSourceConnectionInfo(OracleConnectionInfo sourceConnectionInfo) {
+ this.sourceConnectionInfo = sourceConnectionInfo;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutput.java
new file mode 100644
index 000000000000..042c9e737263
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutput.java
@@ -0,0 +1,45 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+
+/**
+ * Output for the task that migrates Oracle databases to Azure Database for
+ * PostgreSQL for online migrations.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateOracleAzureDbPostgreSqlSyncTaskOutput.class)
+@JsonTypeName("MigrateOracleAzureDbPostgreSqlSyncTaskOutput")
+@JsonSubTypes({
+ @JsonSubTypes.Type(name = "DatabaseLevelErrorOutput", value = MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError.class),
+ @JsonSubTypes.Type(name = "ErrorOutput", value = MigrateOracleAzureDbPostgreSqlSyncTaskOutputError.class),
+ @JsonSubTypes.Type(name = "TableLevelOutput", value = MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel.class),
+ @JsonSubTypes.Type(name = "DatabaseLevelOutput", value = MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel.class),
+ @JsonSubTypes.Type(name = "MigrationLevelOutput", value = MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel.class)
+})
+public class MigrateOracleAzureDbPostgreSqlSyncTaskOutput {
+ /**
+ * Result identifier.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /**
+ * Get result identifier.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError.java
new file mode 100644
index 000000000000..3cf00268fbc6
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError.java
@@ -0,0 +1,74 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * The MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError model.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError.class)
+@JsonTypeName("DatabaseLevelErrorOutput")
+public class MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError extends MigrateOracleAzureDbPostgreSqlSyncTaskOutput {
+ /**
+ * Error message.
+ */
+ @JsonProperty(value = "errorMessage")
+ private String errorMessage;
+
+ /**
+ * List of error events.
+ */
+ @JsonProperty(value = "events")
+ private List events;
+
+ /**
+ * Get error message.
+ *
+ * @return the errorMessage value
+ */
+ public String errorMessage() {
+ return this.errorMessage;
+ }
+
+ /**
+ * Set error message.
+ *
+ * @param errorMessage the errorMessage value to set
+ * @return the MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError object itself.
+ */
+ public MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError withErrorMessage(String errorMessage) {
+ this.errorMessage = errorMessage;
+ return this;
+ }
+
+ /**
+ * Get list of error events.
+ *
+ * @return the events value
+ */
+ public List events() {
+ return this.events;
+ }
+
+ /**
+ * Set list of error events.
+ *
+ * @param events the events value to set
+ * @return the MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError object itself.
+ */
+ public MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError withEvents(List events) {
+ this.events = events;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel.java
new file mode 100644
index 000000000000..e95d9e5c96c4
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel.java
@@ -0,0 +1,250 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * The MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel model.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel.class)
+@JsonTypeName("DatabaseLevelOutput")
+public class MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel extends MigrateOracleAzureDbPostgreSqlSyncTaskOutput {
+ /**
+ * Name of the database.
+ */
+ @JsonProperty(value = "databaseName", access = JsonProperty.Access.WRITE_ONLY)
+ private String databaseName;
+
+ /**
+ * Migration start time.
+ */
+ @JsonProperty(value = "startedOn", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime startedOn;
+
+ /**
+ * Migration end time.
+ */
+ @JsonProperty(value = "endedOn", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime endedOn;
+
+ /**
+ * Migration state that this database is in. Possible values include:
+ * 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', 'RUNNING',
+ * 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING',
+ * 'CANCELLED', 'FAILED'.
+ */
+ @JsonProperty(value = "migrationState", access = JsonProperty.Access.WRITE_ONLY)
+ private SyncDatabaseMigrationReportingState migrationState;
+
+ /**
+ * Number of incoming changes.
+ */
+ @JsonProperty(value = "incomingChanges", access = JsonProperty.Access.WRITE_ONLY)
+ private Long incomingChanges;
+
+ /**
+ * Number of applied changes.
+ */
+ @JsonProperty(value = "appliedChanges", access = JsonProperty.Access.WRITE_ONLY)
+ private Long appliedChanges;
+
+ /**
+ * Number of cdc inserts.
+ */
+ @JsonProperty(value = "cdcInsertCounter", access = JsonProperty.Access.WRITE_ONLY)
+ private Long cdcInsertCounter;
+
+ /**
+ * Number of cdc deletes.
+ */
+ @JsonProperty(value = "cdcDeleteCounter", access = JsonProperty.Access.WRITE_ONLY)
+ private Long cdcDeleteCounter;
+
+ /**
+ * Number of cdc updates.
+ */
+ @JsonProperty(value = "cdcUpdateCounter", access = JsonProperty.Access.WRITE_ONLY)
+ private Long cdcUpdateCounter;
+
+ /**
+ * Number of tables completed in full load.
+ */
+ @JsonProperty(value = "fullLoadCompletedTables", access = JsonProperty.Access.WRITE_ONLY)
+ private Long fullLoadCompletedTables;
+
+ /**
+ * Number of tables loading in full load.
+ */
+ @JsonProperty(value = "fullLoadLoadingTables", access = JsonProperty.Access.WRITE_ONLY)
+ private Long fullLoadLoadingTables;
+
+ /**
+ * Number of tables queued in full load.
+ */
+ @JsonProperty(value = "fullLoadQueuedTables", access = JsonProperty.Access.WRITE_ONLY)
+ private Long fullLoadQueuedTables;
+
+ /**
+ * Number of tables errored in full load.
+ */
+ @JsonProperty(value = "fullLoadErroredTables", access = JsonProperty.Access.WRITE_ONLY)
+ private Long fullLoadErroredTables;
+
+ /**
+ * Indicates if initial load (full load) has been completed.
+ */
+ @JsonProperty(value = "initializationCompleted", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean initializationCompleted;
+
+ /**
+ * CDC apply latency.
+ */
+ @JsonProperty(value = "latency", access = JsonProperty.Access.WRITE_ONLY)
+ private Long latency;
+
+ /**
+ * Get name of the database.
+ *
+ * @return the databaseName value
+ */
+ public String databaseName() {
+ return this.databaseName;
+ }
+
+ /**
+ * Get migration start time.
+ *
+ * @return the startedOn value
+ */
+ public DateTime startedOn() {
+ return this.startedOn;
+ }
+
+ /**
+ * Get migration end time.
+ *
+ * @return the endedOn value
+ */
+ public DateTime endedOn() {
+ return this.endedOn;
+ }
+
+ /**
+ * Get migration state that this database is in. Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED'.
+ *
+ * @return the migrationState value
+ */
+ public SyncDatabaseMigrationReportingState migrationState() {
+ return this.migrationState;
+ }
+
+ /**
+ * Get number of incoming changes.
+ *
+ * @return the incomingChanges value
+ */
+ public Long incomingChanges() {
+ return this.incomingChanges;
+ }
+
+ /**
+ * Get number of applied changes.
+ *
+ * @return the appliedChanges value
+ */
+ public Long appliedChanges() {
+ return this.appliedChanges;
+ }
+
+ /**
+ * Get number of cdc inserts.
+ *
+ * @return the cdcInsertCounter value
+ */
+ public Long cdcInsertCounter() {
+ return this.cdcInsertCounter;
+ }
+
+ /**
+ * Get number of cdc deletes.
+ *
+ * @return the cdcDeleteCounter value
+ */
+ public Long cdcDeleteCounter() {
+ return this.cdcDeleteCounter;
+ }
+
+ /**
+ * Get number of cdc updates.
+ *
+ * @return the cdcUpdateCounter value
+ */
+ public Long cdcUpdateCounter() {
+ return this.cdcUpdateCounter;
+ }
+
+ /**
+ * Get number of tables completed in full load.
+ *
+ * @return the fullLoadCompletedTables value
+ */
+ public Long fullLoadCompletedTables() {
+ return this.fullLoadCompletedTables;
+ }
+
+ /**
+ * Get number of tables loading in full load.
+ *
+ * @return the fullLoadLoadingTables value
+ */
+ public Long fullLoadLoadingTables() {
+ return this.fullLoadLoadingTables;
+ }
+
+ /**
+ * Get number of tables queued in full load.
+ *
+ * @return the fullLoadQueuedTables value
+ */
+ public Long fullLoadQueuedTables() {
+ return this.fullLoadQueuedTables;
+ }
+
+ /**
+ * Get number of tables errored in full load.
+ *
+ * @return the fullLoadErroredTables value
+ */
+ public Long fullLoadErroredTables() {
+ return this.fullLoadErroredTables;
+ }
+
+ /**
+ * Get indicates if initial load (full load) has been completed.
+ *
+ * @return the initializationCompleted value
+ */
+ public Boolean initializationCompleted() {
+ return this.initializationCompleted;
+ }
+
+ /**
+ * Get cDC apply latency.
+ *
+ * @return the latency value
+ */
+ public Long latency() {
+ return this.latency;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputError.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputError.java
new file mode 100644
index 000000000000..5465992358b7
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputError.java
@@ -0,0 +1,36 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * The MigrateOracleAzureDbPostgreSqlSyncTaskOutputError model.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateOracleAzureDbPostgreSqlSyncTaskOutputError.class)
+@JsonTypeName("ErrorOutput")
+public class MigrateOracleAzureDbPostgreSqlSyncTaskOutputError extends MigrateOracleAzureDbPostgreSqlSyncTaskOutput {
+ /**
+ * Migration error.
+ */
+ @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY)
+ private ReportableException error;
+
+ /**
+ * Get migration error.
+ *
+ * @return the error value
+ */
+ public ReportableException error() {
+ return this.error;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel.java
new file mode 100644
index 000000000000..d68477fbb43c
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel.java
@@ -0,0 +1,112 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * The MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel model.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel.class)
+@JsonTypeName("MigrationLevelOutput")
+public class MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel extends MigrateOracleAzureDbPostgreSqlSyncTaskOutput {
+ /**
+ * Migration start time.
+ */
+ @JsonProperty(value = "startedOn", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime startedOn;
+
+ /**
+ * Migration end time.
+ */
+ @JsonProperty(value = "endedOn", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime endedOn;
+
+ /**
+ * Source server version.
+ */
+ @JsonProperty(value = "sourceServerVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String sourceServerVersion;
+
+ /**
+ * Source server name.
+ */
+ @JsonProperty(value = "sourceServer", access = JsonProperty.Access.WRITE_ONLY)
+ private String sourceServer;
+
+ /**
+ * Target server version.
+ */
+ @JsonProperty(value = "targetServerVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetServerVersion;
+
+ /**
+ * Target server name.
+ */
+ @JsonProperty(value = "targetServer", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetServer;
+
+ /**
+ * Get migration start time.
+ *
+ * @return the startedOn value
+ */
+ public DateTime startedOn() {
+ return this.startedOn;
+ }
+
+ /**
+ * Get migration end time.
+ *
+ * @return the endedOn value
+ */
+ public DateTime endedOn() {
+ return this.endedOn;
+ }
+
+ /**
+ * Get source server version.
+ *
+ * @return the sourceServerVersion value
+ */
+ public String sourceServerVersion() {
+ return this.sourceServerVersion;
+ }
+
+ /**
+ * Get source server name.
+ *
+ * @return the sourceServer value
+ */
+ public String sourceServer() {
+ return this.sourceServer;
+ }
+
+ /**
+ * Get target server version.
+ *
+ * @return the targetServerVersion value
+ */
+ public String targetServerVersion() {
+ return this.targetServerVersion;
+ }
+
+ /**
+ * Get target server name.
+ *
+ * @return the targetServer value
+ */
+ public String targetServer() {
+ return this.targetServer;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel.java
new file mode 100644
index 000000000000..c862f841e342
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel.java
@@ -0,0 +1,218 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * The MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel model.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel.class)
+@JsonTypeName("TableLevelOutput")
+public class MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel extends MigrateOracleAzureDbPostgreSqlSyncTaskOutput {
+ /**
+ * Name of the table.
+ */
+ @JsonProperty(value = "tableName", access = JsonProperty.Access.WRITE_ONLY)
+ private String tableName;
+
+ /**
+ * Name of the database.
+ */
+ @JsonProperty(value = "databaseName", access = JsonProperty.Access.WRITE_ONLY)
+ private String databaseName;
+
+ /**
+ * Number of applied inserts.
+ */
+ @JsonProperty(value = "cdcInsertCounter", access = JsonProperty.Access.WRITE_ONLY)
+ private Long cdcInsertCounter;
+
+ /**
+ * Number of applied updates.
+ */
+ @JsonProperty(value = "cdcUpdateCounter", access = JsonProperty.Access.WRITE_ONLY)
+ private Long cdcUpdateCounter;
+
+ /**
+ * Number of applied deletes.
+ */
+ @JsonProperty(value = "cdcDeleteCounter", access = JsonProperty.Access.WRITE_ONLY)
+ private Long cdcDeleteCounter;
+
+ /**
+ * Estimate to finish full load.
+ */
+ @JsonProperty(value = "fullLoadEstFinishTime", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime fullLoadEstFinishTime;
+
+ /**
+ * Full load start time.
+ */
+ @JsonProperty(value = "fullLoadStartedOn", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime fullLoadStartedOn;
+
+ /**
+ * Full load end time.
+ */
+ @JsonProperty(value = "fullLoadEndedOn", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime fullLoadEndedOn;
+
+ /**
+ * Number of rows applied in full load.
+ */
+ @JsonProperty(value = "fullLoadTotalRows", access = JsonProperty.Access.WRITE_ONLY)
+ private Long fullLoadTotalRows;
+
+ /**
+ * Current state of the table migration. Possible values include:
+ * 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', 'CANCELED', 'ERROR', 'FAILED'.
+ */
+ @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
+ private SyncTableMigrationState state;
+
+ /**
+ * Total number of applied changes.
+ */
+ @JsonProperty(value = "totalChangesApplied", access = JsonProperty.Access.WRITE_ONLY)
+ private Long totalChangesApplied;
+
+ /**
+ * Number of data errors occurred.
+ */
+ @JsonProperty(value = "dataErrorsCounter", access = JsonProperty.Access.WRITE_ONLY)
+ private Long dataErrorsCounter;
+
+ /**
+ * Last modified time on target.
+ */
+ @JsonProperty(value = "lastModifiedTime", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime lastModifiedTime;
+
+ /**
+ * Get name of the table.
+ *
+ * @return the tableName value
+ */
+ public String tableName() {
+ return this.tableName;
+ }
+
+ /**
+ * Get name of the database.
+ *
+ * @return the databaseName value
+ */
+ public String databaseName() {
+ return this.databaseName;
+ }
+
+ /**
+ * Get number of applied inserts.
+ *
+ * @return the cdcInsertCounter value
+ */
+ public Long cdcInsertCounter() {
+ return this.cdcInsertCounter;
+ }
+
+ /**
+ * Get number of applied updates.
+ *
+ * @return the cdcUpdateCounter value
+ */
+ public Long cdcUpdateCounter() {
+ return this.cdcUpdateCounter;
+ }
+
+ /**
+ * Get number of applied deletes.
+ *
+ * @return the cdcDeleteCounter value
+ */
+ public Long cdcDeleteCounter() {
+ return this.cdcDeleteCounter;
+ }
+
+ /**
+ * Get estimate to finish full load.
+ *
+ * @return the fullLoadEstFinishTime value
+ */
+ public DateTime fullLoadEstFinishTime() {
+ return this.fullLoadEstFinishTime;
+ }
+
+ /**
+ * Get full load start time.
+ *
+ * @return the fullLoadStartedOn value
+ */
+ public DateTime fullLoadStartedOn() {
+ return this.fullLoadStartedOn;
+ }
+
+ /**
+ * Get full load end time.
+ *
+ * @return the fullLoadEndedOn value
+ */
+ public DateTime fullLoadEndedOn() {
+ return this.fullLoadEndedOn;
+ }
+
+ /**
+ * Get number of rows applied in full load.
+ *
+ * @return the fullLoadTotalRows value
+ */
+ public Long fullLoadTotalRows() {
+ return this.fullLoadTotalRows;
+ }
+
+ /**
+ * Get current state of the table migration. Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', 'CANCELED', 'ERROR', 'FAILED'.
+ *
+ * @return the state value
+ */
+ public SyncTableMigrationState state() {
+ return this.state;
+ }
+
+ /**
+ * Get total number of applied changes.
+ *
+ * @return the totalChangesApplied value
+ */
+ public Long totalChangesApplied() {
+ return this.totalChangesApplied;
+ }
+
+ /**
+ * Get number of data errors occurred.
+ *
+ * @return the dataErrorsCounter value
+ */
+ public Long dataErrorsCounter() {
+ return this.dataErrorsCounter;
+ }
+
+ /**
+ * Get last modified time on target.
+ *
+ * @return the lastModifiedTime value
+ */
+ public DateTime lastModifiedTime() {
+ return this.lastModifiedTime;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.java
index 6a94a76c5c05..e827d7f09eb0 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.java
@@ -8,6 +8,7 @@
package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
@@ -28,6 +29,24 @@ public class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput {
@JsonProperty(value = "targetDatabaseName")
private String targetDatabaseName;
+ /**
+ * Migration settings which tune the migration behavior.
+ */
+ @JsonProperty(value = "migrationSetting")
+ private Map migrationSetting;
+
+ /**
+ * Source settings to tune source endpoint migration behavior.
+ */
+ @JsonProperty(value = "sourceSetting")
+ private Map sourceSetting;
+
+ /**
+ * Target settings to tune target endpoint migration behavior.
+ */
+ @JsonProperty(value = "targetSetting")
+ private Map targetSetting;
+
/**
* Get name of the database.
*
@@ -68,4 +87,64 @@ public MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput withTargetDatabase
return this;
}
+ /**
+ * Get migration settings which tune the migration behavior.
+ *
+ * @return the migrationSetting value
+ */
+ public Map migrationSetting() {
+ return this.migrationSetting;
+ }
+
+ /**
+ * Set migration settings which tune the migration behavior.
+ *
+ * @param migrationSetting the migrationSetting value to set
+ * @return the MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput object itself.
+ */
+ public MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput withMigrationSetting(Map migrationSetting) {
+ this.migrationSetting = migrationSetting;
+ return this;
+ }
+
+ /**
+ * Get source settings to tune source endpoint migration behavior.
+ *
+ * @return the sourceSetting value
+ */
+ public Map sourceSetting() {
+ return this.sourceSetting;
+ }
+
+ /**
+ * Set source settings to tune source endpoint migration behavior.
+ *
+ * @param sourceSetting the sourceSetting value to set
+ * @return the MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput object itself.
+ */
+ public MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput withSourceSetting(Map sourceSetting) {
+ this.sourceSetting = sourceSetting;
+ return this;
+ }
+
+ /**
+ * Get target settings to tune target endpoint migration behavior.
+ *
+ * @return the targetSetting value
+ */
+ public Map targetSetting() {
+ return this.targetSetting;
+ }
+
+ /**
+ * Set target settings to tune target endpoint migration behavior.
+ *
+ * @param targetSetting the targetSetting value to set
+ * @return the MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput object itself.
+ */
+ public MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput withTargetSetting(Map targetSetting) {
+ this.targetSetting = targetSetting;
+ return this;
+ }
+
}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput.java
index b2caf288b8bd..84715f9f89f8 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput.java
@@ -17,7 +17,7 @@
* Output for the task that migrates PostgreSQL databases to Azure Database for
* PostgreSQL for online migrations.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput.class)
@JsonTypeName("MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput")
@JsonSubTypes({
@JsonSubTypes.Type(name = "DatabaseLevelErrorOutput", value = MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError.class),
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError.java
index fde8231b698d..26ec9b044bf3 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError.java
@@ -16,7 +16,7 @@
/**
* The MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError.class)
@JsonTypeName("DatabaseLevelErrorOutput")
public class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError extends MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel.java
index a759838cb565..44467bca1be3 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel.java
@@ -16,7 +16,7 @@
/**
* The MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel.class)
@JsonTypeName("DatabaseLevelOutput")
public class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel extends MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError.java
index 599359a2a16b..1884024a209e 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError.java
@@ -15,7 +15,7 @@
/**
* The MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError.class)
@JsonTypeName("ErrorOutput")
public class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError extends MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel.java
index 98b491f20e27..034fd6b91f0f 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel.java
@@ -16,7 +16,7 @@
/**
* The MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel.class)
@JsonTypeName("MigrationLevelOutput")
public class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel extends MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel.java
index b6110c68117c..9755fe4ab717 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel.java
@@ -16,7 +16,7 @@
/**
* The MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel.class)
@JsonTypeName("TableLevelOutput")
public class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel extends MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties.java
index 7dc6e5a45e71..6ab70240201f 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties.java
@@ -17,7 +17,7 @@
* Properties for the task that migrates PostgreSQL databases to Azure Database
* for PostgreSQL for online migrations.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties.class)
@JsonTypeName("Migrate.PostgreSql.AzureDbForPostgreSql.Sync")
public class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutput.java
index 459900dadd05..c4d5d10fc6ac 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutput.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutput.java
@@ -17,7 +17,7 @@
* Output for the task that migrates Schema for SQL Server databases to Azure
* SQL databases.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSchemaSqlServerSqlDbTaskOutput.class)
@JsonTypeName("MigrateSchemaSqlServerSqlDbTaskOutput")
@JsonSubTypes({
@JsonSubTypes.Type(name = "MigrationLevelOutput", value = MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel.class),
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel.java
index 35925e75b8e4..59bd26ec0a1f 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel.java
@@ -16,7 +16,7 @@
/**
* The MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel.class)
@JsonTypeName("DatabaseLevelOutput")
public class MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel extends MigrateSchemaSqlServerSqlDbTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutputError.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutputError.java
index 3a9a777ec600..fe927a0aae77 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutputError.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutputError.java
@@ -15,7 +15,7 @@
/**
* The MigrateSchemaSqlServerSqlDbTaskOutputError model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSchemaSqlServerSqlDbTaskOutputError.class)
@JsonTypeName("SchemaErrorOutput")
public class MigrateSchemaSqlServerSqlDbTaskOutputError extends MigrateSchemaSqlServerSqlDbTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel.java
index 7700414a53eb..d5f547f9f36c 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel.java
@@ -16,7 +16,7 @@
/**
* The MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel.class)
@JsonTypeName("MigrationLevelOutput")
public class MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel extends MigrateSchemaSqlServerSqlDbTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskProperties.java
index 7b23c0e96a5f..ffb3f23d7701 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlServerSqlDbTaskProperties.java
@@ -17,7 +17,7 @@
* Properties for task that migrates Schema for SQL Server databases to Azure
* SQL databases.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = MigrateSchemaSqlServerSqlDbTaskProperties.class)
@JsonTypeName("MigrateSchemaSqlServerSqlDb")
public class MigrateSchemaSqlServerSqlDbTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlTaskOutputError.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlTaskOutputError.java
index c70710d8f878..6b5d66a50884 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlTaskOutputError.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSchemaSqlTaskOutputError.java
@@ -15,7 +15,7 @@
/**
* The MigrateSchemaSqlTaskOutputError model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSchemaSqlTaskOutputError.class)
@JsonTypeName("ErrorOutput")
public class MigrateSchemaSqlTaskOutputError extends MigrateSchemaSqlServerSqlDbTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutput.java
index 0540eb2da927..7d4d6a44da61 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutput.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutput.java
@@ -17,7 +17,7 @@
* Output for the task that migrates on-prem SQL Server databases to Azure SQL
* Database for online migrations.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlDbSyncTaskOutput.class)
@JsonTypeName("MigrateSqlServerSqlDbSyncTaskOutput")
@JsonSubTypes({
@JsonSubTypes.Type(name = "DatabaseLevelErrorOutput", value = MigrateSqlServerSqlDbSyncTaskOutputDatabaseError.class),
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputDatabaseError.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputDatabaseError.java
index 6f2263e3677f..0e51b1f9084c 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputDatabaseError.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputDatabaseError.java
@@ -16,7 +16,7 @@
/**
* The MigrateSqlServerSqlDbSyncTaskOutputDatabaseError model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlDbSyncTaskOutputDatabaseError.class)
@JsonTypeName("DatabaseLevelErrorOutput")
public class MigrateSqlServerSqlDbSyncTaskOutputDatabaseError extends MigrateSqlServerSqlDbSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel.java
index 72d0467ed9e5..dd3c3f3f087a 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel.java
@@ -16,7 +16,7 @@
/**
* The MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel.class)
@JsonTypeName("DatabaseLevelOutput")
public class MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel extends MigrateSqlServerSqlDbSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputError.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputError.java
index 69873a8038fb..d993c717eacb 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputError.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputError.java
@@ -15,7 +15,7 @@
/**
* The MigrateSqlServerSqlDbSyncTaskOutputError model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlDbSyncTaskOutputError.class)
@JsonTypeName("ErrorOutput")
public class MigrateSqlServerSqlDbSyncTaskOutputError extends MigrateSqlServerSqlDbSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel.java
index d3c2489ed59b..9bc1cbb87afb 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel.java
@@ -16,7 +16,7 @@
/**
* The MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel.class)
@JsonTypeName("MigrationLevelOutput")
public class MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel extends MigrateSqlServerSqlDbSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputTableLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputTableLevel.java
index 216322c39b9c..1532d40afaf8 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputTableLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskOutputTableLevel.java
@@ -16,7 +16,7 @@
/**
* The MigrateSqlServerSqlDbSyncTaskOutputTableLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlDbSyncTaskOutputTableLevel.class)
@JsonTypeName("TableLevelOutput")
public class MigrateSqlServerSqlDbSyncTaskOutputTableLevel extends MigrateSqlServerSqlDbSyncTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskProperties.java
index 2e1b90f09cf8..b2966e47e6dc 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbSyncTaskProperties.java
@@ -17,7 +17,7 @@
* Properties for the task that migrates on-prem SQL Server databases to Azure
* SQL Database for online migrations.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = MigrateSqlServerSqlDbSyncTaskProperties.class)
@JsonTypeName("Migrate.SqlServer.AzureSqlDb.Sync")
public class MigrateSqlServerSqlDbSyncTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutput.java
index 6f41e1d6530c..5d5b6deab73f 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutput.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutput.java
@@ -17,7 +17,7 @@
* Output for the task that migrates on-prem SQL Server databases to Azure SQL
* Database.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlDbTaskOutput.class)
@JsonTypeName("MigrateSqlServerSqlDbTaskOutput")
@JsonSubTypes({
@JsonSubTypes.Type(name = "ErrorOutput", value = MigrateSqlServerSqlDbTaskOutputError.class),
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputDatabaseLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputDatabaseLevel.java
index 37cf51a7a2fd..879ffc6692c9 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputDatabaseLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputDatabaseLevel.java
@@ -18,7 +18,7 @@
/**
* The MigrateSqlServerSqlDbTaskOutputDatabaseLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlDbTaskOutputDatabaseLevel.class)
@JsonTypeName("DatabaseLevelOutput")
public class MigrateSqlServerSqlDbTaskOutputDatabaseLevel extends MigrateSqlServerSqlDbTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputError.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputError.java
index 3266b090a366..acd9bd8cd695 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputError.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputError.java
@@ -15,7 +15,7 @@
/**
* The MigrateSqlServerSqlDbTaskOutputError model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlDbTaskOutputError.class)
@JsonTypeName("ErrorOutput")
public class MigrateSqlServerSqlDbTaskOutputError extends MigrateSqlServerSqlDbTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputMigrationLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputMigrationLevel.java
index a4051b9b9485..ed4d1924ccd0 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputMigrationLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputMigrationLevel.java
@@ -18,7 +18,7 @@
/**
* The MigrateSqlServerSqlDbTaskOutputMigrationLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlDbTaskOutputMigrationLevel.class)
@JsonTypeName("MigrationLevelOutput")
public class MigrateSqlServerSqlDbTaskOutputMigrationLevel extends MigrateSqlServerSqlDbTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputTableLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputTableLevel.java
index 357c527dacb0..dce11ea0f477 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputTableLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskOutputTableLevel.java
@@ -16,7 +16,7 @@
/**
* The MigrateSqlServerSqlDbTaskOutputTableLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlDbTaskOutputTableLevel.class)
@JsonTypeName("TableLevelOutput")
public class MigrateSqlServerSqlDbTaskOutputTableLevel extends MigrateSqlServerSqlDbTaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskProperties.java
index 3a13b549153c..bff3b16bcb96 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlDbTaskProperties.java
@@ -17,7 +17,7 @@
* Properties for the task that migrates on-prem SQL Server databases to Azure
* SQL Database.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = MigrateSqlServerSqlDbTaskProperties.class)
@JsonTypeName("Migrate.SqlServer.SqlDb")
public class MigrateSqlServerSqlDbTaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskInput.java
new file mode 100644
index 000000000000..e7f371f75f80
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskInput.java
@@ -0,0 +1,17 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+
+/**
+ * Input for task that migrates SQL Server databases to Azure SQL Database
+ * Managed Instance online scenario.
+ */
+public class MigrateSqlServerSqlMISyncTaskInput extends SqlServerSqlMISyncTaskInput {
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutput.java
new file mode 100644
index 000000000000..b17e835650ce
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutput.java
@@ -0,0 +1,43 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+
+/**
+ * Output for task that migrates SQL Server databases to Azure SQL Database
+ * Managed Instance using Log Replay Service.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlMISyncTaskOutput.class)
+@JsonTypeName("MigrateSqlServerSqlMISyncTaskOutput")
+@JsonSubTypes({
+ @JsonSubTypes.Type(name = "ErrorOutput", value = MigrateSqlServerSqlMISyncTaskOutputError.class),
+ @JsonSubTypes.Type(name = "DatabaseLevelOutput", value = MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.class),
+ @JsonSubTypes.Type(name = "MigrationLevelOutput", value = MigrateSqlServerSqlMISyncTaskOutputMigrationLevel.class)
+})
+public class MigrateSqlServerSqlMISyncTaskOutput {
+ /**
+ * Result identifier.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /**
+ * Get result identifier.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.java
new file mode 100644
index 000000000000..523eb08dd3b8
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.java
@@ -0,0 +1,193 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import org.joda.time.DateTime;
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * The MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel model.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.class)
+@JsonTypeName("DatabaseLevelOutput")
+public class MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel extends MigrateSqlServerSqlMISyncTaskOutput {
+ /**
+ * Name of the database.
+ */
+ @JsonProperty(value = "sourceDatabaseName", access = JsonProperty.Access.WRITE_ONLY)
+ private String sourceDatabaseName;
+
+ /**
+ * Current state of database. Possible values include: 'UNDEFINED',
+ * 'INITIAL', 'FULL_BACKUP_UPLOAD_START', 'LOG_SHIPPING_START',
+ * 'UPLOAD_LOG_FILES_START', 'CUTOVER_START', 'POST_CUTOVER_COMPLETE',
+ * 'COMPLETED', 'CANCELLED', 'FAILED'.
+ */
+ @JsonProperty(value = "migrationState", access = JsonProperty.Access.WRITE_ONLY)
+ private DatabaseMigrationState migrationState;
+
+ /**
+ * Database migration start time.
+ */
+ @JsonProperty(value = "startedOn", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime startedOn;
+
+ /**
+ * Database migration end time.
+ */
+ @JsonProperty(value = "endedOn", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime endedOn;
+
+ /**
+ * Details of full backup set.
+ */
+ @JsonProperty(value = "fullBackupSetInfo", access = JsonProperty.Access.WRITE_ONLY)
+ private BackupSetInfo fullBackupSetInfo;
+
+ /**
+ * Last applied backup set information.
+ */
+ @JsonProperty(value = "lastRestoredBackupSetInfo", access = JsonProperty.Access.WRITE_ONLY)
+ private BackupSetInfo lastRestoredBackupSetInfo;
+
+ /**
+ * Backup sets that are currently active (Either being uploaded or getting
+ * restored).
+ */
+ @JsonProperty(value = "activeBackupSets", access = JsonProperty.Access.WRITE_ONLY)
+ private List activeBackupSets;
+
+ /**
+ * Name of container created in the Azure Storage account where backups are
+ * copied to.
+ */
+ @JsonProperty(value = "containerName", access = JsonProperty.Access.WRITE_ONLY)
+ private String containerName;
+
+ /**
+ * prefix string to use for querying errors for this database.
+ */
+ @JsonProperty(value = "errorPrefix", access = JsonProperty.Access.WRITE_ONLY)
+ private String errorPrefix;
+
+ /**
+ * Whether full backup has been applied to the target database or not.
+ */
+ @JsonProperty(value = "isFullBackupRestored", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean isFullBackupRestored;
+
+ /**
+ * Migration exceptions and warnings.
+ */
+ @JsonProperty(value = "exceptionsAndWarnings", access = JsonProperty.Access.WRITE_ONLY)
+ private List exceptionsAndWarnings;
+
+ /**
+ * Get name of the database.
+ *
+ * @return the sourceDatabaseName value
+ */
+ public String sourceDatabaseName() {
+ return this.sourceDatabaseName;
+ }
+
+ /**
+ * Get current state of database. Possible values include: 'UNDEFINED', 'INITIAL', 'FULL_BACKUP_UPLOAD_START', 'LOG_SHIPPING_START', 'UPLOAD_LOG_FILES_START', 'CUTOVER_START', 'POST_CUTOVER_COMPLETE', 'COMPLETED', 'CANCELLED', 'FAILED'.
+ *
+ * @return the migrationState value
+ */
+ public DatabaseMigrationState migrationState() {
+ return this.migrationState;
+ }
+
+ /**
+ * Get database migration start time.
+ *
+ * @return the startedOn value
+ */
+ public DateTime startedOn() {
+ return this.startedOn;
+ }
+
+ /**
+ * Get database migration end time.
+ *
+ * @return the endedOn value
+ */
+ public DateTime endedOn() {
+ return this.endedOn;
+ }
+
+ /**
+ * Get details of full backup set.
+ *
+ * @return the fullBackupSetInfo value
+ */
+ public BackupSetInfo fullBackupSetInfo() {
+ return this.fullBackupSetInfo;
+ }
+
+ /**
+ * Get last applied backup set information.
+ *
+ * @return the lastRestoredBackupSetInfo value
+ */
+ public BackupSetInfo lastRestoredBackupSetInfo() {
+ return this.lastRestoredBackupSetInfo;
+ }
+
+ /**
+ * Get backup sets that are currently active (Either being uploaded or getting restored).
+ *
+ * @return the activeBackupSets value
+ */
+ public List activeBackupSets() {
+ return this.activeBackupSets;
+ }
+
+ /**
+ * Get name of container created in the Azure Storage account where backups are copied to.
+ *
+ * @return the containerName value
+ */
+ public String containerName() {
+ return this.containerName;
+ }
+
+ /**
+ * Get prefix string to use for querying errors for this database.
+ *
+ * @return the errorPrefix value
+ */
+ public String errorPrefix() {
+ return this.errorPrefix;
+ }
+
+ /**
+ * Get whether full backup has been applied to the target database or not.
+ *
+ * @return the isFullBackupRestored value
+ */
+ public Boolean isFullBackupRestored() {
+ return this.isFullBackupRestored;
+ }
+
+ /**
+ * Get migration exceptions and warnings.
+ *
+ * @return the exceptionsAndWarnings value
+ */
+ public List exceptionsAndWarnings() {
+ return this.exceptionsAndWarnings;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputError.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputError.java
new file mode 100644
index 000000000000..7fa0947997aa
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputError.java
@@ -0,0 +1,36 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * The MigrateSqlServerSqlMISyncTaskOutputError model.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlMISyncTaskOutputError.class)
+@JsonTypeName("ErrorOutput")
+public class MigrateSqlServerSqlMISyncTaskOutputError extends MigrateSqlServerSqlMISyncTaskOutput {
+ /**
+ * Migration error.
+ */
+ @JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY)
+ private ReportableException error;
+
+ /**
+ * Get migration error.
+ *
+ * @return the error value
+ */
+ public ReportableException error() {
+ return this.error;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputMigrationLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputMigrationLevel.java
new file mode 100644
index 000000000000..4da76ed9e0b2
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputMigrationLevel.java
@@ -0,0 +1,188 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import org.joda.time.DateTime;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * The MigrateSqlServerSqlMISyncTaskOutputMigrationLevel model.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlMISyncTaskOutputMigrationLevel.class)
+@JsonTypeName("MigrationLevelOutput")
+public class MigrateSqlServerSqlMISyncTaskOutputMigrationLevel extends MigrateSqlServerSqlMISyncTaskOutput {
+ /**
+ * Count of databases.
+ */
+ @JsonProperty(value = "databaseCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer databaseCount;
+
+ /**
+ * Current state of migration. Possible values include: 'None',
+ * 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped'.
+ */
+ @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
+ private MigrationState state;
+
+ /**
+ * Migration start time.
+ */
+ @JsonProperty(value = "startedOn", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime startedOn;
+
+ /**
+ * Migration end time.
+ */
+ @JsonProperty(value = "endedOn", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime endedOn;
+
+ /**
+ * Source server name.
+ */
+ @JsonProperty(value = "sourceServerName", access = JsonProperty.Access.WRITE_ONLY)
+ private String sourceServerName;
+
+ /**
+ * Source server version.
+ */
+ @JsonProperty(value = "sourceServerVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String sourceServerVersion;
+
+ /**
+ * Source server brand version.
+ */
+ @JsonProperty(value = "sourceServerBrandVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String sourceServerBrandVersion;
+
+ /**
+ * Target server name.
+ */
+ @JsonProperty(value = "targetServerName", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetServerName;
+
+ /**
+ * Target server version.
+ */
+ @JsonProperty(value = "targetServerVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetServerVersion;
+
+ /**
+ * Target server brand version.
+ */
+ @JsonProperty(value = "targetServerBrandVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetServerBrandVersion;
+
+ /**
+ * Number of database level errors.
+ */
+ @JsonProperty(value = "databaseErrorCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer databaseErrorCount;
+
+ /**
+ * Get count of databases.
+ *
+ * @return the databaseCount value
+ */
+ public Integer databaseCount() {
+ return this.databaseCount;
+ }
+
+ /**
+ * Get current state of migration. Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped'.
+ *
+ * @return the state value
+ */
+ public MigrationState state() {
+ return this.state;
+ }
+
+ /**
+ * Get migration start time.
+ *
+ * @return the startedOn value
+ */
+ public DateTime startedOn() {
+ return this.startedOn;
+ }
+
+ /**
+ * Get migration end time.
+ *
+ * @return the endedOn value
+ */
+ public DateTime endedOn() {
+ return this.endedOn;
+ }
+
+ /**
+ * Get source server name.
+ *
+ * @return the sourceServerName value
+ */
+ public String sourceServerName() {
+ return this.sourceServerName;
+ }
+
+ /**
+ * Get source server version.
+ *
+ * @return the sourceServerVersion value
+ */
+ public String sourceServerVersion() {
+ return this.sourceServerVersion;
+ }
+
+ /**
+ * Get source server brand version.
+ *
+ * @return the sourceServerBrandVersion value
+ */
+ public String sourceServerBrandVersion() {
+ return this.sourceServerBrandVersion;
+ }
+
+ /**
+ * Get target server name.
+ *
+ * @return the targetServerName value
+ */
+ public String targetServerName() {
+ return this.targetServerName;
+ }
+
+ /**
+ * Get target server version.
+ *
+ * @return the targetServerVersion value
+ */
+ public String targetServerVersion() {
+ return this.targetServerVersion;
+ }
+
+ /**
+ * Get target server brand version.
+ *
+ * @return the targetServerBrandVersion value
+ */
+ public String targetServerBrandVersion() {
+ return this.targetServerBrandVersion;
+ }
+
+ /**
+ * Get number of database level errors.
+ *
+ * @return the databaseErrorCount value
+ */
+ public Integer databaseErrorCount() {
+ return this.databaseErrorCount;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskProperties.java
new file mode 100644
index 000000000000..57e3596835a7
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskProperties.java
@@ -0,0 +1,64 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Properties for task that migrates SQL Server databases to Azure SQL Database
+ * Managed Instance sync scenario.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = MigrateSqlServerSqlMISyncTaskProperties.class)
+@JsonTypeName("Migrate.SqlServer.AzureSqlDbMI.Sync.LRS")
+public class MigrateSqlServerSqlMISyncTaskProperties extends ProjectTaskProperties {
+ /**
+ * Task input.
+ */
+ @JsonProperty(value = "input")
+ private MigrateSqlServerSqlMISyncTaskInput input;
+
+ /**
+ * Task output. This is ignored if submitted.
+ */
+ @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY)
+ private List output;
+
+ /**
+ * Get task input.
+ *
+ * @return the input value
+ */
+ public MigrateSqlServerSqlMISyncTaskInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set task input.
+ *
+ * @param input the input value to set
+ * @return the MigrateSqlServerSqlMISyncTaskProperties object itself.
+ */
+ public MigrateSqlServerSqlMISyncTaskProperties withInput(MigrateSqlServerSqlMISyncTaskInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get task output. This is ignored if submitted.
+ *
+ * @return the output value
+ */
+ public List output() {
+ return this.output;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutput.java
index 17cabcea6140..0c91b24ef7ab 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutput.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutput.java
@@ -17,7 +17,7 @@
* Output for task that migrates SQL Server databases to Azure SQL Database
* Managed Instance.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlMITaskOutput.class)
@JsonTypeName("MigrateSqlServerSqlMITaskOutput")
@JsonSubTypes({
@JsonSubTypes.Type(name = "ErrorOutput", value = MigrateSqlServerSqlMITaskOutputError.class),
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputAgentJobLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputAgentJobLevel.java
index aa303584f674..2f7a37f1d71c 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputAgentJobLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputAgentJobLevel.java
@@ -17,7 +17,7 @@
/**
* The MigrateSqlServerSqlMITaskOutputAgentJobLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlMITaskOutputAgentJobLevel.class)
@JsonTypeName("AgentJobLevelOutput")
public class MigrateSqlServerSqlMITaskOutputAgentJobLevel extends MigrateSqlServerSqlMITaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputDatabaseLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputDatabaseLevel.java
index 02bff80a6848..db2188ff62e1 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputDatabaseLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputDatabaseLevel.java
@@ -17,7 +17,7 @@
/**
* The MigrateSqlServerSqlMITaskOutputDatabaseLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlMITaskOutputDatabaseLevel.class)
@JsonTypeName("DatabaseLevelOutput")
public class MigrateSqlServerSqlMITaskOutputDatabaseLevel extends MigrateSqlServerSqlMITaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputError.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputError.java
index 7277a2e49d7a..fb6df32dcf2d 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputError.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputError.java
@@ -15,7 +15,7 @@
/**
* The MigrateSqlServerSqlMITaskOutputError model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlMITaskOutputError.class)
@JsonTypeName("ErrorOutput")
public class MigrateSqlServerSqlMITaskOutputError extends MigrateSqlServerSqlMITaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputLoginLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputLoginLevel.java
index 71154cab8c11..496c6e11d8c4 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputLoginLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputLoginLevel.java
@@ -17,7 +17,7 @@
/**
* The MigrateSqlServerSqlMITaskOutputLoginLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlMITaskOutputLoginLevel.class)
@JsonTypeName("LoginLevelOutput")
public class MigrateSqlServerSqlMITaskOutputLoginLevel extends MigrateSqlServerSqlMITaskOutput {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputMigrationLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputMigrationLevel.java
index 8986b440acd1..008fc3150ce7 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputMigrationLevel.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputMigrationLevel.java
@@ -18,7 +18,7 @@
/**
* The MigrateSqlServerSqlMITaskOutputMigrationLevel model.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSqlServerSqlMITaskOutputMigrationLevel.class)
@JsonTypeName("MigrationLevelOutput")
public class MigrateSqlServerSqlMITaskOutputMigrationLevel extends MigrateSqlServerSqlMITaskOutput {
/**
@@ -73,10 +73,10 @@ public class MigrateSqlServerSqlMITaskOutputMigrationLevel extends MigrateSqlSer
private Map serverRoleResults;
/**
- * Map of users to database name of orphaned users.
+ * List of orphaned users.
*/
- @JsonProperty(value = "orphanedUsers", access = JsonProperty.Access.WRITE_ONLY)
- private Map orphanedUsers;
+ @JsonProperty(value = "orphanedUsersInfo", access = JsonProperty.Access.WRITE_ONLY)
+ private List orphanedUsersInfo;
/**
* Selected databases as a map from database name to database id.
@@ -187,12 +187,12 @@ public Map serverRoleResults() {
}
/**
- * Get map of users to database name of orphaned users.
+ * Get list of orphaned users.
*
- * @return the orphanedUsers value
+ * @return the orphanedUsersInfo value
*/
- public Map orphanedUsers() {
- return this.orphanedUsers;
+ public List orphanedUsersInfo() {
+ return this.orphanedUsersInfo;
}
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskProperties.java
index 094797a6c57c..9631cfd12f85 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSqlServerSqlMITaskProperties.java
@@ -17,7 +17,7 @@
* Properties for task that migrates SQL Server databases to Azure SQL Database
* Managed Instance.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = MigrateSqlServerSqlMITaskProperties.class)
@JsonTypeName("Migrate.SqlServer.AzureSqlDbMI")
public class MigrateSqlServerSqlMITaskProperties extends ProjectTaskProperties {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskInput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskInput.java
new file mode 100644
index 000000000000..1452b178145a
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskInput.java
@@ -0,0 +1,44 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Input for task that migrates SSIS packages from SQL Server to Azure SQL
+ * Database Managed Instance.
+ */
+public class MigrateSsisTaskInput extends SqlMigrationTaskInput {
+ /**
+ * SSIS package migration information.
+ */
+ @JsonProperty(value = "ssisMigrationInfo", required = true)
+ private SsisMigrationInfo ssisMigrationInfo;
+
+ /**
+ * Get sSIS package migration information.
+ *
+ * @return the ssisMigrationInfo value
+ */
+ public SsisMigrationInfo ssisMigrationInfo() {
+ return this.ssisMigrationInfo;
+ }
+
+ /**
+ * Set sSIS package migration information.
+ *
+ * @param ssisMigrationInfo the ssisMigrationInfo value to set
+ * @return the MigrateSsisTaskInput object itself.
+ */
+ public MigrateSsisTaskInput withSsisMigrationInfo(SsisMigrationInfo ssisMigrationInfo) {
+ this.ssisMigrationInfo = ssisMigrationInfo;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskOutput.java
new file mode 100644
index 000000000000..0cb303340fbd
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskOutput.java
@@ -0,0 +1,42 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+
+/**
+ * Output for task that migrates SSIS packages from SQL Server to Azure SQL
+ * Database Managed Instance.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSsisTaskOutput.class)
+@JsonTypeName("MigrateSsisTaskOutput")
+@JsonSubTypes({
+ @JsonSubTypes.Type(name = "SsisProjectLevelOutput", value = MigrateSsisTaskOutputProjectLevel.class),
+ @JsonSubTypes.Type(name = "MigrationLevelOutput", value = MigrateSsisTaskOutputMigrationLevel.class)
+})
+public class MigrateSsisTaskOutput {
+ /**
+ * Result identifier.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /**
+ * Get result identifier.
+ *
+ * @return the id value
+ */
+ public String id() {
+ return this.id;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskOutputMigrationLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskOutputMigrationLevel.java
new file mode 100644
index 000000000000..c24425c84374
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskOutputMigrationLevel.java
@@ -0,0 +1,176 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import org.joda.time.DateTime;
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * The MigrateSsisTaskOutputMigrationLevel model.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSsisTaskOutputMigrationLevel.class)
+@JsonTypeName("MigrationLevelOutput")
+public class MigrateSsisTaskOutputMigrationLevel extends MigrateSsisTaskOutput {
+ /**
+ * Migration start time.
+ */
+ @JsonProperty(value = "startedOn", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime startedOn;
+
+ /**
+ * Migration end time.
+ */
+ @JsonProperty(value = "endedOn", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime endedOn;
+
+ /**
+ * Current status of migration. Possible values include: 'Default',
+ * 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', 'Configured',
+ * 'Running', 'Error', 'Stopped', 'Completed', 'CompletedWithWarnings'.
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private MigrationStatus status;
+
+ /**
+ * Migration progress message.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * Source server version.
+ */
+ @JsonProperty(value = "sourceServerVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String sourceServerVersion;
+
+ /**
+ * Source server brand version.
+ */
+ @JsonProperty(value = "sourceServerBrandVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String sourceServerBrandVersion;
+
+ /**
+ * Target server version.
+ */
+ @JsonProperty(value = "targetServerVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetServerVersion;
+
+ /**
+ * Target server brand version.
+ */
+ @JsonProperty(value = "targetServerBrandVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String targetServerBrandVersion;
+
+ /**
+ * Migration exceptions and warnings.
+ */
+ @JsonProperty(value = "exceptionsAndWarnings", access = JsonProperty.Access.WRITE_ONLY)
+ private List exceptionsAndWarnings;
+
+ /**
+ * Stage of SSIS migration. Possible values include: 'None', 'Initialize',
+ * 'InProgress', 'Completed'.
+ */
+ @JsonProperty(value = "stage", access = JsonProperty.Access.WRITE_ONLY)
+ private SsisMigrationStage stage;
+
+ /**
+ * Get migration start time.
+ *
+ * @return the startedOn value
+ */
+ public DateTime startedOn() {
+ return this.startedOn;
+ }
+
+ /**
+ * Get migration end time.
+ *
+ * @return the endedOn value
+ */
+ public DateTime endedOn() {
+ return this.endedOn;
+ }
+
+ /**
+ * Get current status of migration. Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', 'Configured', 'Running', 'Error', 'Stopped', 'Completed', 'CompletedWithWarnings'.
+ *
+ * @return the status value
+ */
+ public MigrationStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Get migration progress message.
+ *
+ * @return the message value
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Get source server version.
+ *
+ * @return the sourceServerVersion value
+ */
+ public String sourceServerVersion() {
+ return this.sourceServerVersion;
+ }
+
+ /**
+ * Get source server brand version.
+ *
+ * @return the sourceServerBrandVersion value
+ */
+ public String sourceServerBrandVersion() {
+ return this.sourceServerBrandVersion;
+ }
+
+ /**
+ * Get target server version.
+ *
+ * @return the targetServerVersion value
+ */
+ public String targetServerVersion() {
+ return this.targetServerVersion;
+ }
+
+ /**
+ * Get target server brand version.
+ *
+ * @return the targetServerBrandVersion value
+ */
+ public String targetServerBrandVersion() {
+ return this.targetServerBrandVersion;
+ }
+
+ /**
+ * Get migration exceptions and warnings.
+ *
+ * @return the exceptionsAndWarnings value
+ */
+ public List exceptionsAndWarnings() {
+ return this.exceptionsAndWarnings;
+ }
+
+ /**
+ * Get stage of SSIS migration. Possible values include: 'None', 'Initialize', 'InProgress', 'Completed'.
+ *
+ * @return the stage value
+ */
+ public SsisMigrationStage stage() {
+ return this.stage;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskOutputProjectLevel.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskOutputProjectLevel.java
new file mode 100644
index 000000000000..d43c19c35b37
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskOutputProjectLevel.java
@@ -0,0 +1,145 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import org.joda.time.DateTime;
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * The MigrateSsisTaskOutputProjectLevel model.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "resultType", defaultImpl = MigrateSsisTaskOutputProjectLevel.class)
+@JsonTypeName("SsisProjectLevelOutput")
+public class MigrateSsisTaskOutputProjectLevel extends MigrateSsisTaskOutput {
+ /**
+ * Name of the folder.
+ */
+ @JsonProperty(value = "folderName", access = JsonProperty.Access.WRITE_ONLY)
+ private String folderName;
+
+ /**
+ * Name of the project.
+ */
+ @JsonProperty(value = "projectName", access = JsonProperty.Access.WRITE_ONLY)
+ private String projectName;
+
+ /**
+ * Current state of migration. Possible values include: 'None',
+ * 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped'.
+ */
+ @JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
+ private MigrationState state;
+
+ /**
+ * Stage of SSIS migration. Possible values include: 'None', 'Initialize',
+ * 'InProgress', 'Completed'.
+ */
+ @JsonProperty(value = "stage", access = JsonProperty.Access.WRITE_ONLY)
+ private SsisMigrationStage stage;
+
+ /**
+ * Migration start time.
+ */
+ @JsonProperty(value = "startedOn", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime startedOn;
+
+ /**
+ * Migration end time.
+ */
+ @JsonProperty(value = "endedOn", access = JsonProperty.Access.WRITE_ONLY)
+ private DateTime endedOn;
+
+ /**
+ * Migration progress message.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * Migration exceptions and warnings.
+ */
+ @JsonProperty(value = "exceptionsAndWarnings", access = JsonProperty.Access.WRITE_ONLY)
+ private List exceptionsAndWarnings;
+
+ /**
+ * Get name of the folder.
+ *
+ * @return the folderName value
+ */
+ public String folderName() {
+ return this.folderName;
+ }
+
+ /**
+ * Get name of the project.
+ *
+ * @return the projectName value
+ */
+ public String projectName() {
+ return this.projectName;
+ }
+
+ /**
+ * Get current state of migration. Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', 'Stopped'.
+ *
+ * @return the state value
+ */
+ public MigrationState state() {
+ return this.state;
+ }
+
+ /**
+ * Get stage of SSIS migration. Possible values include: 'None', 'Initialize', 'InProgress', 'Completed'.
+ *
+ * @return the stage value
+ */
+ public SsisMigrationStage stage() {
+ return this.stage;
+ }
+
+ /**
+ * Get migration start time.
+ *
+ * @return the startedOn value
+ */
+ public DateTime startedOn() {
+ return this.startedOn;
+ }
+
+ /**
+ * Get migration end time.
+ *
+ * @return the endedOn value
+ */
+ public DateTime endedOn() {
+ return this.endedOn;
+ }
+
+ /**
+ * Get migration progress message.
+ *
+ * @return the message value
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Get migration exceptions and warnings.
+ *
+ * @return the exceptionsAndWarnings value
+ */
+ public List exceptionsAndWarnings() {
+ return this.exceptionsAndWarnings;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskProperties.java
new file mode 100644
index 000000000000..eed248aef840
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSsisTaskProperties.java
@@ -0,0 +1,64 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Properties for task that migrates SSIS packages from SQL Server databases to
+ * Azure SQL Database Managed Instance.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType", defaultImpl = MigrateSsisTaskProperties.class)
+@JsonTypeName("Migrate.Ssis")
+public class MigrateSsisTaskProperties extends ProjectTaskProperties {
+ /**
+ * Task input.
+ */
+ @JsonProperty(value = "input")
+ private MigrateSsisTaskInput input;
+
+ /**
+ * Task output. This is ignored if submitted.
+ */
+ @JsonProperty(value = "output", access = JsonProperty.Access.WRITE_ONLY)
+ private List output;
+
+ /**
+ * Get task input.
+ *
+ * @return the input value
+ */
+ public MigrateSsisTaskInput input() {
+ return this.input;
+ }
+
+ /**
+ * Set task input.
+ *
+ * @param input the input value to set
+ * @return the MigrateSsisTaskProperties object itself.
+ */
+ public MigrateSsisTaskProperties withInput(MigrateSsisTaskInput input) {
+ this.input = input;
+ return this;
+ }
+
+ /**
+ * Get task output. This is ignored if submitted.
+ *
+ * @return the output value
+ */
+ public List output() {
+ return this.output;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSyncCompleteCommandOutput.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSyncCompleteCommandOutput.java
index 0dfbf528803b..6579e80906a9 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSyncCompleteCommandOutput.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSyncCompleteCommandOutput.java
@@ -15,30 +15,34 @@
* Output for command that completes sync migration for a database.
*/
public class MigrateSyncCompleteCommandOutput {
+ /**
+ * Result identifier.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
/**
* List of errors that happened during the command execution.
*/
- @JsonProperty(value = "errors")
+ @JsonProperty(value = "errors", access = JsonProperty.Access.WRITE_ONLY)
private List errors;
/**
- * Get list of errors that happened during the command execution.
+ * Get result identifier.
*
- * @return the errors value
+ * @return the id value
*/
- public List errors() {
- return this.errors;
+ public String id() {
+ return this.id;
}
/**
- * Set list of errors that happened during the command execution.
+ * Get list of errors that happened during the command execution.
*
- * @param errors the errors value to set
- * @return the MigrateSyncCompleteCommandOutput object itself.
+ * @return the errors value
*/
- public MigrateSyncCompleteCommandOutput withErrors(List errors) {
- this.errors = errors;
- return this;
+ public List errors() {
+ return this.errors;
}
}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSyncCompleteCommandProperties.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSyncCompleteCommandProperties.java
index 477e139c4f4b..90280d568391 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSyncCompleteCommandProperties.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MigrateSyncCompleteCommandProperties.java
@@ -16,7 +16,7 @@
/**
* Properties for the command that completes sync migration for a database.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "commandType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "commandType", defaultImpl = MigrateSyncCompleteCommandProperties.class)
@JsonTypeName("Migrate.Sync.Complete.Database")
public class MigrateSyncCompleteCommandProperties extends CommandPropertiesInner {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbCancelCommand.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbCancelCommand.java
index 776625685df2..c65398e3e76a 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbCancelCommand.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbCancelCommand.java
@@ -16,7 +16,7 @@
/**
* Properties for the command that cancels a migration in whole or in part.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "commandType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "commandType", defaultImpl = MongoDbCancelCommand.class)
@JsonTypeName("cancel")
public class MongoDbCancelCommand extends CommandPropertiesInner {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbConnectionInfo.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbConnectionInfo.java
index 3a1b6d17e99e..f41986750ef3 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbConnectionInfo.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbConnectionInfo.java
@@ -15,7 +15,7 @@
/**
* Describes a connection to a MongoDB data source.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", defaultImpl = MongoDbConnectionInfo.class)
@JsonTypeName("MongoDbConnectionInfo")
public class MongoDbConnectionInfo extends ConnectionInfo {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbFinishCommand.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbFinishCommand.java
index a22b8632007a..85f5b0e18af0 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbFinishCommand.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbFinishCommand.java
@@ -16,7 +16,7 @@
/**
* Properties for the command that finishes a migration in whole or in part.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "commandType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "commandType", defaultImpl = MongoDbFinishCommand.class)
@JsonTypeName("finish")
public class MongoDbFinishCommand extends CommandPropertiesInner {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbRestartCommand.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbRestartCommand.java
index e453e76a90e4..f47c4cccdfd2 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbRestartCommand.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MongoDbRestartCommand.java
@@ -16,7 +16,7 @@
/**
* Properties for the command that restarts a migration in whole or in part.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "commandType")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "commandType", defaultImpl = MongoDbRestartCommand.class)
@JsonTypeName("restart")
public class MongoDbRestartCommand extends CommandPropertiesInner {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MySqlConnectionInfo.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MySqlConnectionInfo.java
index b3af8d084b3d..d75e4980374d 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MySqlConnectionInfo.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MySqlConnectionInfo.java
@@ -15,7 +15,7 @@
/**
* Information for connecting to MySQL server.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", defaultImpl = MySqlConnectionInfo.class)
@JsonTypeName("MySqlConnectionInfo")
public class MySqlConnectionInfo extends ConnectionInfo {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MySqlTargetPlatformType.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MySqlTargetPlatformType.java
index b0c121f4cfb5..5be2e5b98bf3 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MySqlTargetPlatformType.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/MySqlTargetPlatformType.java
@@ -16,6 +16,9 @@
* Defines values for MySqlTargetPlatformType.
*/
public final class MySqlTargetPlatformType extends ExpandableStringEnum {
+ /** Static value SqlServer for MySqlTargetPlatformType. */
+ public static final MySqlTargetPlatformType SQL_SERVER = fromString("SqlServer");
+
/** Static value AzureDbForMySQL for MySqlTargetPlatformType. */
public static final MySqlTargetPlatformType AZURE_DB_FOR_MY_SQL = fromString("AzureDbForMySQL");
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/OracleConnectionInfo.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/OracleConnectionInfo.java
new file mode 100644
index 000000000000..0027f1ada356
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/OracleConnectionInfo.java
@@ -0,0 +1,47 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/**
+ * Information for connecting to Oracle server.
+ */
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", defaultImpl = OracleConnectionInfo.class)
+@JsonTypeName("OracleConnectionInfo")
+public class OracleConnectionInfo extends ConnectionInfo {
+ /**
+ * EZConnect or TNSName connection string.
+ */
+ @JsonProperty(value = "dataSource", required = true)
+ private String dataSource;
+
+ /**
+ * Get eZConnect or TNSName connection string.
+ *
+ * @return the dataSource value
+ */
+ public String dataSource() {
+ return this.dataSource;
+ }
+
+ /**
+ * Set eZConnect or TNSName connection string.
+ *
+ * @param dataSource the dataSource value to set
+ * @return the OracleConnectionInfo object itself.
+ */
+ public OracleConnectionInfo withDataSource(String dataSource) {
+ this.dataSource = dataSource;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/OracleOCIDriverInfo.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/OracleOCIDriverInfo.java
new file mode 100644
index 000000000000..9bcb82a5e74d
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/OracleOCIDriverInfo.java
@@ -0,0 +1,109 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import java.util.List;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Information about an Oracle OCI driver.
+ */
+public class OracleOCIDriverInfo {
+ /**
+ * The name of the driver package.
+ */
+ @JsonProperty(value = "driverName", access = JsonProperty.Access.WRITE_ONLY)
+ private String driverName;
+
+ /**
+ * The size in bytes of the driver package.
+ */
+ @JsonProperty(value = "driverSize", access = JsonProperty.Access.WRITE_ONLY)
+ private String driverSize;
+
+ /**
+ * The MD5 Base64 encoded checksum for the driver package.
+ */
+ @JsonProperty(value = "archiveChecksum", access = JsonProperty.Access.WRITE_ONLY)
+ private String archiveChecksum;
+
+ /**
+ * The checksum for the driver package provided by Oracle.
+ */
+ @JsonProperty(value = "oracleChecksum", access = JsonProperty.Access.WRITE_ONLY)
+ private String oracleChecksum;
+
+ /**
+ * Version listed in the OCI assembly 'oci.dll'.
+ */
+ @JsonProperty(value = "assemblyVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String assemblyVersion;
+
+ /**
+ * List of Oracle database versions supported by this driver. Only major
+ * minor of the version is listed.
+ */
+ @JsonProperty(value = "supportedOracleVersions", access = JsonProperty.Access.WRITE_ONLY)
+ private List supportedOracleVersions;
+
+ /**
+ * Get the name of the driver package.
+ *
+ * @return the driverName value
+ */
+ public String driverName() {
+ return this.driverName;
+ }
+
+ /**
+ * Get the size in bytes of the driver package.
+ *
+ * @return the driverSize value
+ */
+ public String driverSize() {
+ return this.driverSize;
+ }
+
+ /**
+ * Get the MD5 Base64 encoded checksum for the driver package.
+ *
+ * @return the archiveChecksum value
+ */
+ public String archiveChecksum() {
+ return this.archiveChecksum;
+ }
+
+ /**
+ * Get the checksum for the driver package provided by Oracle.
+ *
+ * @return the oracleChecksum value
+ */
+ public String oracleChecksum() {
+ return this.oracleChecksum;
+ }
+
+ /**
+ * Get version listed in the OCI assembly 'oci.dll'.
+ *
+ * @return the assemblyVersion value
+ */
+ public String assemblyVersion() {
+ return this.assemblyVersion;
+ }
+
+ /**
+ * Get list of Oracle database versions supported by this driver. Only major minor of the version is listed.
+ *
+ * @return the supportedOracleVersions value
+ */
+ public List supportedOracleVersions() {
+ return this.supportedOracleVersions;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/OrphanedUserInfo.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/OrphanedUserInfo.java
new file mode 100644
index 000000000000..91da19be880d
--- /dev/null
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/OrphanedUserInfo.java
@@ -0,0 +1,69 @@
+/**
+ * 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.
+ */
+
+package com.microsoft.azure.management.datamigration.v2018_07_15_preview;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Information of orphaned users on the SQL server database.
+ */
+public class OrphanedUserInfo {
+ /**
+ * Name of the orphaned user.
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /**
+ * Parent database of the user.
+ */
+ @JsonProperty(value = "databaseName")
+ private String databaseName;
+
+ /**
+ * Get name of the orphaned user.
+ *
+ * @return the name value
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set name of the orphaned user.
+ *
+ * @param name the name value to set
+ * @return the OrphanedUserInfo object itself.
+ */
+ public OrphanedUserInfo withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get parent database of the user.
+ *
+ * @return the databaseName value
+ */
+ public String databaseName() {
+ return this.databaseName;
+ }
+
+ /**
+ * Set parent database of the user.
+ *
+ * @param databaseName the databaseName value to set
+ * @return the OrphanedUserInfo object itself.
+ */
+ public OrphanedUserInfo withDatabaseName(String databaseName) {
+ this.databaseName = databaseName;
+ return this;
+ }
+
+}
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/PostgreSqlConnectionInfo.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/PostgreSqlConnectionInfo.java
index aa2445651087..5781c09c37b6 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/PostgreSqlConnectionInfo.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/PostgreSqlConnectionInfo.java
@@ -15,7 +15,7 @@
/**
* Information for connecting to PostgreSQL server.
*/
-@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
+@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", defaultImpl = PostgreSqlConnectionInfo.class)
@JsonTypeName("PostgreSqlConnectionInfo")
public class PostgreSqlConnectionInfo extends ConnectionInfo {
/**
diff --git a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ProjectTask.java b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ProjectServiceProjectTask.java
similarity index 72%
rename from datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ProjectTask.java
rename to datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ProjectServiceProjectTask.java
index 72f10fe0c1e3..83c596c98161 100644
--- a/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ProjectTask.java
+++ b/datamigration/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_07_15_preview/ProjectServiceProjectTask.java
@@ -19,9 +19,9 @@
import com.microsoft.azure.management.datamigration.v2018_07_15_preview.implementation.DataMigrationManager;
/**
- * Type representing ProjectTask.
+ * Type representing ProjectServiceProjectTask.
*/
-public interface ProjectTask extends HasInner, Indexable, Refreshable, Updatable, HasManager {
+public interface ProjectServiceProjectTask extends HasInner, Indexable, Refreshable, Updatable