From f2d2d1e89bee3ca4830dc8b492b730e8d894cb0b Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 29 Nov 2018 23:23:58 +0000 Subject: [PATCH 1/5] Generated from 8df81ff4db8d52205d98f35ff08e76c54099842c Adding sync scenarios to public preview swagger --- .../AzureActiveDirectoryApp.java | 95 ++++++ .../v2018_07_15_preview/BackupFileInfo.java | 97 ++++++ .../v2018_07_15_preview/BackupFileStatus.java | 56 ++++ .../v2018_07_15_preview/BackupSetInfo.java | 281 ++++++++++++++++++ .../ConnectToSourceMySqlTaskInput.java | 6 +- ...onnectToSourcePostgreSqlSyncTaskInput.java | 44 +++ ...nnectToSourcePostgreSqlSyncTaskOutput.java | 94 ++++++ ...tToSourcePostgreSqlSyncTaskProperties.java | 64 ++++ ...rgetAzureDbForPostgreSqlSyncTaskInput.java | 70 +++++ ...getAzureDbForPostgreSqlSyncTaskOutput.java | 94 ++++++ ...zureDbForPostgreSqlSyncTaskProperties.java | 64 ++++ .../ConnectToTargetSqlMISyncTaskInput.java | 72 +++++ .../ConnectToTargetSqlMISyncTaskOutput.java | 64 ++++ ...onnectToTargetSqlMISyncTaskProperties.java | 64 ++++ .../v2018_07_15_preview/ConnectionInfo.java | 7 + .../DatabaseMigrationState.java | 65 ++++ .../MiSqlConnectionInfo.java | 48 +++ .../MigrateMISyncCompleteCommandInput.java | 44 +++ .../MigrateMISyncCompleteCommandOutput.java | 45 +++ ...igrateMISyncCompleteCommandProperties.java | 64 ++++ ...MySqlAzureDbForMySqlSyncDatabaseInput.java | 79 +++++ ...AzureDbForPostgreSqlSyncDatabaseInput.java | 79 +++++ .../MigrateSqlServerSqlMISyncTaskInput.java | 17 ++ .../MigrateSqlServerSqlMISyncTaskOutput.java | 43 +++ ...erverSqlMISyncTaskOutputDatabaseLevel.java | 193 ++++++++++++ ...rateSqlServerSqlMISyncTaskOutputError.java | 36 +++ ...rverSqlMISyncTaskOutputMigrationLevel.java | 188 ++++++++++++ ...grateSqlServerSqlMISyncTaskProperties.java | 64 ++++ .../MigrateSyncCompleteCommandOutput.java | 26 +- .../MySqlTargetPlatformType.java | 3 + .../ProjectTaskProperties.java | 7 + .../ServerLevelPermissionsGroup.java | 54 ++-- .../SqlServerSqlMISyncTaskInput.java | 177 +++++++++++ ...ationInputSqlServerSqlMISyncTaskInput.java | 17 ++ ...tionInputSqlServerSqlMISyncTaskOutput.java | 64 ++++ ...InputSqlServerSqlMISyncTaskProperties.java | 64 ++++ .../CommandPropertiesInner.java | 7 + .../DataMigrationServiceClientImpl.java | 15 +- .../implementation/FilesInner.java | 42 +-- .../implementation/OperationsInner.java | 8 +- .../implementation/ProjectsInner.java | 36 +-- .../implementation/ResourceSkusInner.java | 6 +- .../implementation/ServicesInner.java | 114 +++---- .../implementation/TasksInner.java | 60 ++-- .../implementation/UsagesInner.java | 6 +- 45 files changed, 2613 insertions(+), 230 deletions(-) create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/AzureActiveDirectoryApp.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/BackupFileInfo.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/BackupFileStatus.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/BackupSetInfo.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskInput.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskOutput.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskProperties.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskInput.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskInput.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskOutput.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskProperties.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/DatabaseMigrationState.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MiSqlConnectionInfo.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandInput.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandOutput.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandProperties.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskInput.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutput.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputError.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputMigrationLevel.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskProperties.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/SqlServerSqlMISyncTaskInput.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskInput.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskOutput.java create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskProperties.java diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/AzureActiveDirectoryApp.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/AzureActiveDirectoryApp.java new file mode 100644 index 000000000000..256ab4093f03 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/BackupFileInfo.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/BackupFileInfo.java new file mode 100644 index 000000000000..b53f16b7821a --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/BackupFileStatus.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/BackupFileStatus.java new file mode 100644 index 000000000000..cb61c6ffc0d7 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/BackupSetInfo.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/BackupSetInfo.java new file mode 100644 index 000000000000..6d9ac06bc8a0 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourceMySqlTaskInput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourceMySqlTaskInput.java index 761b3934f398..bb9c4e56cbb2 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourceMySqlTaskInput.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskInput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskInput.java new file mode 100644 index 000000000000..bf8c39a095f3 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskOutput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskOutput.java new file mode 100644 index 000000000000..ffc613b5bd38 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskProperties.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskProperties.java new file mode 100644 index 000000000000..fb88a2e5c60c --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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") +@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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskInput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskInput.java new file mode 100644 index 000000000000..2f0106344190 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput.java new file mode 100644 index 000000000000..4fd313549f93 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.java new file mode 100644 index 000000000000..a140d064ac30 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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 Db For PostgreSql + * server and target server requirements for online migration. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType") +@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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskInput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskInput.java new file mode 100644 index 000000000000..dafc5cd4a353 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskOutput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskOutput.java new file mode 100644 index 000000000000..ca75e7ad106e --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskProperties.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetSqlMISyncTaskProperties.java new file mode 100644 index 000000000000..421bdcd84956 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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") +@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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectionInfo.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectionInfo.java index 3b2992385915..5d14e083e0a1 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectionInfo.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectionInfo.java @@ -19,27 +19,34 @@ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") @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 = "MySqlConnectionInfo", value = MySqlConnectionInfo.class), @JsonSubTypes.Type(name = "MongoDbConnectionInfo", value = MongoDbConnectionInfo.class), @JsonSubTypes.Type(name = "SqlConnectionInfo", value = SqlConnectionInfo.class), @JsonSubTypes.Type(name = "GetTDECertificates.Sql", value = GetTdeCertificatesSqlTaskProperties.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.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 = "GetUserTables.AzureSqlDb.Sync", value = GetUserTablesSqlSyncTaskProperties.class), @JsonSubTypes.Type(name = "GetUserTables.Sql", value = GetUserTablesSqlTaskProperties.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.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), diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/DatabaseMigrationState.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/DatabaseMigrationState.java new file mode 100644 index 000000000000..73dbfe787458 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MiSqlConnectionInfo.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MiSqlConnectionInfo.java new file mode 100644 index 000000000000..adb21e0faed4 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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") +@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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandInput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandInput.java new file mode 100644 index 000000000000..15c1e5b72e6b --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.v2018_07_15_preview; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Input for command that completes sync migration for a managed instance + * database. + */ +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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandOutput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandOutput.java new file mode 100644 index 000000000000..4f00d6319d46 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.v2018_07_15_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Output for command that completes sync migration for a managed instance + * database. + */ +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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandProperties.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandProperties.java new file mode 100644 index 000000000000..8b85f7ba994d --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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.azuredatabasemigrationservice.v2018_07_15_preview.implementation.CommandPropertiesInner; + +/** + * Properties for the command that completes sync migration for a managed + * instance database. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "commandType") +@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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.java index 73f3cea6f3e4..eab32ad33289 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMySqlAzureDbForMySqlSyncDatabaseInput.java @@ -8,6 +8,7 @@ package com.microsoft.azure.management.azuredatabasemigrationservice.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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.java index 29bebeb4b44b..91500dc4b069 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput.java @@ -8,6 +8,7 @@ package com.microsoft.azure.management.azuredatabasemigrationservice.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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskInput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskInput.java new file mode 100644 index 000000000000..1ffa26c60639 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutput.java new file mode 100644 index 000000000000..955155d432bb --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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") +@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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel.java new file mode 100644 index 000000000000..1e6824b42535 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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") +@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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputError.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputError.java new file mode 100644 index 000000000000..b88b476aba3a --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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") +@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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputMigrationLevel.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskOutputMigrationLevel.java new file mode 100644 index 000000000000..129e26e594bf --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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") +@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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskProperties.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMISyncTaskProperties.java new file mode 100644 index 000000000000..3165035bfd83 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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") +@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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSyncCompleteCommandOutput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSyncCompleteCommandOutput.java index 4283beaf2738..ab8e872903bb 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSyncCompleteCommandOutput.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MySqlTargetPlatformType.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MySqlTargetPlatformType.java index e5e79ddf3fb6..46692edcaa9f 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MySqlTargetPlatformType.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ProjectTaskProperties.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ProjectTaskProperties.java index b703844f3d24..46adcab448b6 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ProjectTaskProperties.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ProjectTaskProperties.java @@ -23,27 +23,34 @@ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType") @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 = "MySqlConnectionInfo", value = MySqlConnectionInfo.class), @JsonSubTypes.Type(name = "MongoDbConnectionInfo", value = MongoDbConnectionInfo.class), @JsonSubTypes.Type(name = "SqlConnectionInfo", value = SqlConnectionInfo.class), @JsonSubTypes.Type(name = "GetTDECertificates.Sql", value = GetTdeCertificatesSqlTaskProperties.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.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 = "GetUserTables.AzureSqlDb.Sync", value = GetUserTablesSqlSyncTaskProperties.class), @JsonSubTypes.Type(name = "GetUserTables.Sql", value = GetUserTablesSqlTaskProperties.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.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), diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ServerLevelPermissionsGroup.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ServerLevelPermissionsGroup.java index f332a3b6e0f0..2d067f8e8860 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ServerLevelPermissionsGroup.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ServerLevelPermissionsGroup.java @@ -8,40 +8,52 @@ package com.microsoft.azure.management.azuredatabasemigrationservice.v2018_07_15_preview; -import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; -import com.microsoft.rest.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonValue; /** * Defines values for ServerLevelPermissionsGroup. */ -public final class ServerLevelPermissionsGroup extends ExpandableStringEnum { - /** Static value Default for ServerLevelPermissionsGroup. */ - public static final ServerLevelPermissionsGroup DEFAULT = fromString("Default"); +public enum ServerLevelPermissionsGroup { + /** Enum value Default. */ + DEFAULT("Default"), - /** Static value MigrationFromSqlServerToAzureDB for ServerLevelPermissionsGroup. */ - public static final ServerLevelPermissionsGroup MIGRATION_FROM_SQL_SERVER_TO_AZURE_DB = fromString("MigrationFromSqlServerToAzureDB"); + /** Enum value MigrationFromSqlServerToAzureDB. */ + MIGRATION_FROM_SQL_SERVER_TO_AZURE_DB("MigrationFromSqlServerToAzureDB"), - /** Static value MigrationFromSqlServerToAzureMI for ServerLevelPermissionsGroup. */ - public static final ServerLevelPermissionsGroup MIGRATION_FROM_SQL_SERVER_TO_AZURE_MI = fromString("MigrationFromSqlServerToAzureMI"); + /** Enum value MigrationFromSqlServerToAzureMI. */ + MIGRATION_FROM_SQL_SERVER_TO_AZURE_MI("MigrationFromSqlServerToAzureMI"), - /** Static value MigrationFromMySQLToAzureDBForMySQL for ServerLevelPermissionsGroup. */ - public static final ServerLevelPermissionsGroup MIGRATION_FROM_MY_SQLTO_AZURE_DBFOR_MY_SQL = fromString("MigrationFromMySQLToAzureDBForMySQL"); + /** Enum value MigrationFromMySQLToAzureDBForMySQL. */ + MIGRATION_FROM_MY_SQLTO_AZURE_DBFOR_MY_SQL("MigrationFromMySQLToAzureDBForMySQL"); + + /** The actual serialized value for a ServerLevelPermissionsGroup instance. */ + private String value; + + ServerLevelPermissionsGroup(String value) { + this.value = value; + } /** - * Creates or finds a ServerLevelPermissionsGroup from its string representation. - * @param name a name to look for - * @return the corresponding ServerLevelPermissionsGroup + * Parses a serialized value to a ServerLevelPermissionsGroup instance. + * + * @param value the serialized value to parse. + * @return the parsed ServerLevelPermissionsGroup object, or null if unable to parse. */ @JsonCreator - public static ServerLevelPermissionsGroup fromString(String name) { - return fromString(name, ServerLevelPermissionsGroup.class); + public static ServerLevelPermissionsGroup fromString(String value) { + ServerLevelPermissionsGroup[] items = ServerLevelPermissionsGroup.values(); + for (ServerLevelPermissionsGroup item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; } - /** - * @return known ServerLevelPermissionsGroup values - */ - public static Collection values() { - return values(ServerLevelPermissionsGroup.class); + @JsonValue + @Override + public String toString() { + return this.value; } } diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/SqlServerSqlMISyncTaskInput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/SqlServerSqlMISyncTaskInput.java new file mode 100644 index 000000000000..2c960d7165d5 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/SqlServerSqlMISyncTaskInput.java @@ -0,0 +1,177 @@ +/** + * 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.azuredatabasemigrationservice.v2018_07_15_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Input for task that migrates SQL Server databases to Azure SQL Database + * Managed Instance online scenario. + */ +public class SqlServerSqlMISyncTaskInput { + /** + * Databases to migrate. + */ + @JsonProperty(value = "selectedDatabases", required = true) + private List selectedDatabases; + + /** + * Backup file share information for all selected databases. + */ + @JsonProperty(value = "backupFileShare") + private FileShare backupFileShare; + + /** + * Fully qualified resourceId of storage. + */ + @JsonProperty(value = "storageResourceId", required = true) + private String storageResourceId; + + /** + * Connection information for source SQL Server. + */ + @JsonProperty(value = "sourceConnectionInfo", required = true) + private SqlConnectionInfo sourceConnectionInfo; + + /** + * 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 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 SqlServerSqlMISyncTaskInput object itself. + */ + public SqlServerSqlMISyncTaskInput withSelectedDatabases(List selectedDatabases) { + this.selectedDatabases = selectedDatabases; + return this; + } + + /** + * Get backup file share information for all selected databases. + * + * @return the backupFileShare value + */ + public FileShare backupFileShare() { + return this.backupFileShare; + } + + /** + * Set backup file share information for all selected databases. + * + * @param backupFileShare the backupFileShare value to set + * @return the SqlServerSqlMISyncTaskInput object itself. + */ + public SqlServerSqlMISyncTaskInput withBackupFileShare(FileShare backupFileShare) { + this.backupFileShare = backupFileShare; + return this; + } + + /** + * Get fully qualified resourceId of storage. + * + * @return the storageResourceId value + */ + public String storageResourceId() { + return this.storageResourceId; + } + + /** + * Set fully qualified resourceId of storage. + * + * @param storageResourceId the storageResourceId value to set + * @return the SqlServerSqlMISyncTaskInput object itself. + */ + public SqlServerSqlMISyncTaskInput withStorageResourceId(String storageResourceId) { + this.storageResourceId = storageResourceId; + return this; + } + + /** + * Get connection information for source SQL Server. + * + * @return the sourceConnectionInfo value + */ + public SqlConnectionInfo sourceConnectionInfo() { + return this.sourceConnectionInfo; + } + + /** + * Set connection information for source SQL Server. + * + * @param sourceConnectionInfo the sourceConnectionInfo value to set + * @return the SqlServerSqlMISyncTaskInput object itself. + */ + public SqlServerSqlMISyncTaskInput withSourceConnectionInfo(SqlConnectionInfo sourceConnectionInfo) { + this.sourceConnectionInfo = sourceConnectionInfo; + return this; + } + + /** + * 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 SqlServerSqlMISyncTaskInput object itself. + */ + public SqlServerSqlMISyncTaskInput 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 SqlServerSqlMISyncTaskInput object itself. + */ + public SqlServerSqlMISyncTaskInput withAzureApp(AzureActiveDirectoryApp azureApp) { + this.azureApp = azureApp; + return this; + } + +} diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskInput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskInput.java new file mode 100644 index 000000000000..2e29055e0d51 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskInput.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.azuredatabasemigrationservice.v2018_07_15_preview; + + +/** + * Input for task that migrates SQL Server databases to Azure SQL Database + * Managed Instance online scenario. + */ +public class ValidateMigrationInputSqlServerSqlMISyncTaskInput extends SqlServerSqlMISyncTaskInput { +} diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskOutput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskOutput.java new file mode 100644 index 000000000000..96bfef7b90b8 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskOutput.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.azuredatabasemigrationservice.v2018_07_15_preview; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Output for task that validates migration input for Azure SQL Database + * Managed Instance online migration. + */ +public class ValidateMigrationInputSqlServerSqlMISyncTaskOutput { + /** + * Database identifier. + */ + @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) + private String id; + + /** + * Name of database. + */ + @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) + private String name; + + /** + * Errors associated with a selected database object. + */ + @JsonProperty(value = "validationErrors", access = JsonProperty.Access.WRITE_ONLY) + private List validationErrors; + + /** + * Get database identifier. + * + * @return the id value + */ + public String id() { + return this.id; + } + + /** + * Get name of database. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get errors associated with a selected database object. + * + * @return the validationErrors value + */ + public List validationErrors() { + return this.validationErrors; + } + +} diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskProperties.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskProperties.java new file mode 100644 index 000000000000..294c999a09e5 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ValidateMigrationInputSqlServerSqlMISyncTaskProperties.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.azuredatabasemigrationservice.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 validates migration input for SQL to Azure SQL + * Database Managed Instance sync scenario. + */ +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "taskType") +@JsonTypeName("ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS") +public class ValidateMigrationInputSqlServerSqlMISyncTaskProperties extends ProjectTaskProperties { + /** + * Task input. + */ + @JsonProperty(value = "input") + private ValidateMigrationInputSqlServerSqlMISyncTaskInput 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 ValidateMigrationInputSqlServerSqlMISyncTaskInput input() { + return this.input; + } + + /** + * Set task input. + * + * @param input the input value to set + * @return the ValidateMigrationInputSqlServerSqlMISyncTaskProperties object itself. + */ + public ValidateMigrationInputSqlServerSqlMISyncTaskProperties withInput(ValidateMigrationInputSqlServerSqlMISyncTaskInput 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/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/CommandPropertiesInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/CommandPropertiesInner.java index c26acca7d60e..0f2a42b5d14d 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/CommandPropertiesInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/CommandPropertiesInner.java @@ -23,27 +23,34 @@ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "commandType") @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 = "MySqlConnectionInfo", value = MySqlConnectionInfo.class), @JsonSubTypes.Type(name = "MongoDbConnectionInfo", value = MongoDbConnectionInfo.class), @JsonSubTypes.Type(name = "SqlConnectionInfo", value = SqlConnectionInfo.class), @JsonSubTypes.Type(name = "GetTDECertificates.Sql", value = GetTdeCertificatesSqlTaskProperties.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.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 = "GetUserTables.AzureSqlDb.Sync", value = GetUserTablesSqlSyncTaskProperties.class), @JsonSubTypes.Type(name = "GetUserTables.Sql", value = GetUserTablesSqlTaskProperties.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.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), diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/DataMigrationServiceClientImpl.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/DataMigrationServiceClientImpl.java index 06f8c5be3b27..35ec418da214 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/DataMigrationServiceClientImpl.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/DataMigrationServiceClientImpl.java @@ -28,18 +28,6 @@ public AzureClient getAzureClient() { return this.azureClient; } - /** Version of the API. */ - private String apiVersion; - - /** - * Gets Version of the API. - * - * @return the apiVersion value. - */ - public String apiVersion() { - return this.apiVersion; - } - /** Identifier of the subscription. */ private String subscriptionId; @@ -254,7 +242,6 @@ public DataMigrationServiceClientImpl(RestClient restClient) { } protected void initialize() { - this.apiVersion = "2018-07-15-preview"; this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; @@ -275,6 +262,6 @@ protected void initialize() { */ @Override public String userAgent() { - return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "DataMigrationServiceClient", "2018-07-15-preview"); + return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "DataMigrationServiceClient", "2018-07-15-preiew"); } } diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/FilesInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/FilesInner.java index 6ee4a0433963..a64132061f3d 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/FilesInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/FilesInner.java @@ -209,10 +209,8 @@ public Observable>> listSinglePageAsync(f if (projectName == null) { throw new IllegalArgumentException("Parameter projectName 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.list(this.client.subscriptionId(), groupName, serviceName, projectName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.list(this.client.subscriptionId(), groupName, serviceName, projectName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -313,10 +311,8 @@ public Observable> getWithServiceResponseAsync if (fileName == null) { throw new IllegalArgumentException("Parameter fileName 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(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.get(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -424,11 +420,9 @@ public Observable> createOrUpdateWithServiceRe if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } Validator.validate(parameters); - return service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -529,10 +523,8 @@ public Observable> deleteWithServiceResponseAsync(String g if (fileName == null) { throw new IllegalArgumentException("Parameter fileName 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.delete(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -641,11 +633,9 @@ public Observable> updateWithServiceResponseAs if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } Validator.validate(parameters); - return service.update(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.update(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -746,10 +736,8 @@ public Observable> readWithServiceResponse if (fileName == null) { throw new IllegalArgumentException("Parameter fileName 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.read(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.read(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -850,10 +838,8 @@ public Observable> readWriteWithServiceRes if (fileName == null) { throw new IllegalArgumentException("Parameter fileName 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.readWrite(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.readWrite(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/OperationsInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/OperationsInner.java index 3348e184a868..d5fe3ab4d845 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/OperationsInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/OperationsInner.java @@ -150,10 +150,8 @@ public Observable>> call(ServiceResp * @return the PagedList<ServiceOperationInner> object wrapped in {@link ServiceResponse} if successful. */ public Observable>> listSinglePageAsync() { - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - return service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.list(apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -167,7 +165,7 @@ public Observable>> call(Response> listDelegate(Response response) throws ApiErrorException, IOException, IllegalArgumentException { + private ServiceResponse> listDelegate(Response response) throws ApiErrorException, IOException { return this.client.restClient().responseBuilderFactory()., ApiErrorException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ApiErrorException.class) diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ProjectsInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ProjectsInner.java index a35e6438c61c..47936f8182eb 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ProjectsInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ProjectsInner.java @@ -192,10 +192,8 @@ public Observable>> listSinglePageAsync(final if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName 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.list(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.list(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -296,11 +294,9 @@ public Observable> createOrUpdateWithServiceRespon if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } Validator.validate(parameters); - return service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, projectName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, projectName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -395,10 +391,8 @@ public Observable> getWithServiceResponseAsync(Str if (projectName == null) { throw new IllegalArgumentException("Parameter projectName 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(this.client.subscriptionId(), groupName, serviceName, projectName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.get(this.client.subscriptionId(), groupName, serviceName, projectName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -491,11 +485,9 @@ public Observable> deleteWithServiceResponseAsync(String g if (projectName == null) { throw new IllegalArgumentException("Parameter projectName is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } + final String apiVersion = "2018-07-15-preview"; final Boolean deleteRunningTasks = null; - return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -585,10 +577,8 @@ public Observable> deleteWithServiceResponseAsync(String g if (projectName == null) { throw new IllegalArgumentException("Parameter projectName 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.delete(this.client.subscriptionId(), groupName, serviceName, projectName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -690,11 +680,9 @@ public Observable> updateWithServiceResponseAsync( if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } Validator.validate(parameters); - return service.update(this.client.subscriptionId(), groupName, serviceName, projectName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.update(this.client.subscriptionId(), groupName, serviceName, projectName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ResourceSkusInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ResourceSkusInner.java index 5856dee2c883..50622f8f2221 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ResourceSkusInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ResourceSkusInner.java @@ -154,10 +154,8 @@ public Observable>> listSinglePageAsync() 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.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ServicesInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ServicesInner.java index 190cf88a205f..3fccc9e637e9 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ServicesInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ServicesInner.java @@ -222,11 +222,9 @@ public Observable> createOrUpdateWith if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } Validator.validate(parameters); - Observable> observable = service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + final String apiVersion = "2018-07-15-preview"; + Observable> observable = service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -303,11 +301,9 @@ public Observable> beginCreateOrUpdat if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } Validator.validate(parameters); - return service.beginCreateOrUpdate(this.client.subscriptionId(), groupName, serviceName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.beginCreateOrUpdate(this.client.subscriptionId(), groupName, serviceName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -396,10 +392,8 @@ public Observable> getByResourceGroup if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName 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.getByResourceGroup(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.getByResourceGroup(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -485,11 +479,9 @@ public Observable> deleteWithServiceResponseAsync(String g if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } + final String apiVersion = "2018-07-15-preview"; final Boolean deleteRunningTasks = null; - Observable> observable = service.delete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.delete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } /** @@ -561,10 +553,8 @@ public Observable> deleteWithServiceResponseAsync(String g if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - Observable> observable = service.delete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + final String apiVersion = "2018-07-15-preview"; + Observable> observable = service.delete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -633,11 +623,9 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } + final String apiVersion = "2018-07-15-preview"; final Boolean deleteRunningTasks = null; - return service.beginDelete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.beginDelete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -720,10 +708,8 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName 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.beginDelete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.beginDelete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -819,11 +805,9 @@ public Observable> updateWithServiceR if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } Validator.validate(parameters); - Observable> observable = service.update(this.client.subscriptionId(), groupName, serviceName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + final String apiVersion = "2018-07-15-preview"; + Observable> observable = service.update(this.client.subscriptionId(), groupName, serviceName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -900,11 +884,9 @@ public Observable> beginUpdateWithSer if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } Validator.validate(parameters); - return service.beginUpdate(this.client.subscriptionId(), groupName, serviceName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.beginUpdate(this.client.subscriptionId(), groupName, serviceName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -992,10 +974,8 @@ public Observable> chec if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName 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.checkStatus(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.checkStatus(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1081,10 +1061,8 @@ public Observable> startWithServiceResponseAsync(String gr if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - Observable> observable = service.start(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + final String apiVersion = "2018-07-15-preview"; + Observable> observable = service.start(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1153,10 +1131,8 @@ public Observable> beginStartWithServiceResponseAsync(Stri if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName 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.beginStart(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.beginStart(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1243,10 +1219,8 @@ public Observable> stopWithServiceResponseAsync(String gro if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } - Observable> observable = service.stop(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + final String apiVersion = "2018-07-15-preview"; + Observable> observable = service.stop(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1315,10 +1289,8 @@ public Observable> beginStopWithServiceResponseAsync(Strin if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName 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.beginStop(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.beginStop(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1444,10 +1416,8 @@ public Observable>> listSkusSingl if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName 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.listSkus(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.listSkus(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1538,14 +1508,12 @@ public Observable> checkChildrenN if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - return service.checkChildrenNameAvailability(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.checkChildrenNameAvailability(this.client.subscriptionId(), groupName, serviceName, apiVersion, parameters, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1662,10 +1630,8 @@ public Observable>> listByResour if (groupName == null) { throw new IllegalArgumentException("Parameter groupName 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.listByResourceGroup(this.client.subscriptionId(), groupName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.listByResourceGroup(this.client.subscriptionId(), groupName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1774,10 +1740,8 @@ public Observable>> listSinglePa 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.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1861,14 +1825,12 @@ public Observable> checkNameAvail if (location == null) { throw new IllegalArgumentException("Parameter location is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - return service.checkNameAvailability(this.client.subscriptionId(), location, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.checkNameAvailability(this.client.subscriptionId(), location, apiVersion, parameters, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/TasksInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/TasksInner.java index 30f6e97bad0a..b0b117aee0c4 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/TasksInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/TasksInner.java @@ -209,11 +209,9 @@ public Observable>> listSinglePageAsync(f if (projectName == null) { throw new IllegalArgumentException("Parameter projectName is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } + final String apiVersion = "2018-07-15-preview"; final String taskType = null; - return service.list(this.client.subscriptionId(), groupName, serviceName, projectName, this.client.apiVersion(), taskType, this.client.acceptLanguage(), this.client.userAgent()) + return service.list(this.client.subscriptionId(), groupName, serviceName, projectName, apiVersion, taskType, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -344,10 +342,8 @@ public Observable>> listSinglePageAsync(f if (projectName == null) { throw new IllegalArgumentException("Parameter projectName 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.list(this.client.subscriptionId(), groupName, serviceName, projectName, this.client.apiVersion(), taskType, this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.list(this.client.subscriptionId(), groupName, serviceName, projectName, apiVersion, taskType, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -455,11 +451,9 @@ public Observable> createOrUpdateWithServiceRe if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } Validator.validate(parameters); - return service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -561,11 +555,9 @@ public Observable> getWithServiceResponseAsync if (taskName == null) { throw new IllegalArgumentException("Parameter taskName is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } + final String apiVersion = "2018-07-15-preview"; final String expand = null; - return service.get(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, expand, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.get(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, expand, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -663,10 +655,8 @@ public Observable> getWithServiceResponseAsync if (taskName == null) { throw new IllegalArgumentException("Parameter taskName 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(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, expand, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.get(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, expand, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -766,11 +756,9 @@ public Observable> deleteWithServiceResponseAsync(String g if (taskName == null) { throw new IllegalArgumentException("Parameter taskName is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } + final String apiVersion = "2018-07-15-preview"; final Boolean deleteRunningTasks = null; - return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -867,10 +855,8 @@ public Observable> deleteWithServiceResponseAsync(String g if (taskName == null) { throw new IllegalArgumentException("Parameter taskName 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.delete(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -979,11 +965,9 @@ public Observable> updateWithServiceResponseAs if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } Validator.validate(parameters); - return service.update(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.update(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1084,10 +1068,8 @@ public Observable> cancelWithServiceResponseAs if (taskName == null) { throw new IllegalArgumentException("Parameter taskName 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.cancel(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.cancel(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1192,14 +1174,12 @@ public Observable> commandWithServiceRes if (taskName == null) { throw new IllegalArgumentException("Parameter taskName is required and cannot be null."); } - if (this.client.apiVersion() == null) { - throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); - } if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - return service.command(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.command(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, apiVersion, parameters, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/UsagesInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/UsagesInner.java index 2371345d6d78..45577df25ca3 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/UsagesInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/UsagesInner.java @@ -162,10 +162,8 @@ public Observable>> listSinglePageAsync(final S if (location == null) { throw new IllegalArgumentException("Parameter location 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.list(this.client.subscriptionId(), location, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + final String apiVersion = "2018-07-15-preview"; + return service.list(this.client.subscriptionId(), location, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { From f31286bb99bbab01b02dd00510b5235cf8c98e8a Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 3 Dec 2018 19:36:19 +0000 Subject: [PATCH 2/5] Generated from e07d78079a8729b1e87661ccd81059be4995165b Fix comments on pull request --- .../ResourceSkuCapabilities.java | 2 +- .../implementation/TasksInner.java | 8 +- ...ourceSqlServerTaskOutputAgentJobLevel.java | 4 +- ...ToSourceSqlServerTaskOutputLoginLevel.java | 4 +- .../ResourceSkuCapabilities.java | 2 +- .../implementation/TasksInner.java | 8 +- ...tToSourcePostgreSqlSyncTaskProperties.java | 2 +- ...ourceSqlServerTaskOutputAgentJobLevel.java | 4 +- ...ToSourceSqlServerTaskOutputLoginLevel.java | 4 +- ...zureDbForPostgreSqlSyncTaskProperties.java | 4 +- .../MigrateMISyncCompleteCommandInput.java | 4 +- .../MigrateMISyncCompleteCommandOutput.java | 4 +- ...igrateMISyncCompleteCommandProperties.java | 4 +- .../ProjectFileProperties.java | 6 +- .../ResourceSkuCapabilities.java | 2 +- .../SelectedCertificateInput.java | 2 +- .../DataMigrationServiceClientImpl.java | 15 ++- .../implementation/FilesInner.java | 42 ++++--- .../implementation/OperationsInner.java | 8 +- .../implementation/ProjectsInner.java | 36 ++++-- .../implementation/ResourceSkusInner.java | 6 +- .../implementation/ServicesInner.java | 114 ++++++++++++------ .../implementation/TasksInner.java | 68 +++++++---- .../implementation/UsagesInner.java | 6 +- 24 files changed, 231 insertions(+), 128 deletions(-) diff --git a/azuredatabasemigrationservice/resource-manager/v2017_11_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2017_11_15_preview/ResourceSkuCapabilities.java b/azuredatabasemigrationservice/resource-manager/v2017_11_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2017_11_15_preview/ResourceSkuCapabilities.java index 3adf85e70de0..e4c524bf908b 100644 --- a/azuredatabasemigrationservice/resource-manager/v2017_11_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2017_11_15_preview/ResourceSkuCapabilities.java +++ b/azuredatabasemigrationservice/resource-manager/v2017_11_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2017_11_15_preview/ResourceSkuCapabilities.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Describes The SKU capabilites object. + * Describes The SKU capabilities object. */ public class ResourceSkuCapabilities { /** diff --git a/azuredatabasemigrationservice/resource-manager/v2017_11_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2017_11_15_preview/implementation/TasksInner.java b/azuredatabasemigrationservice/resource-manager/v2017_11_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2017_11_15_preview/implementation/TasksInner.java index ff86d6eb789f..6726d984fd66 100644 --- a/azuredatabasemigrationservice/resource-manager/v2017_11_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2017_11_15_preview/implementation/TasksInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2017_11_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2017_11_15_preview/implementation/TasksInner.java @@ -366,7 +366,7 @@ private ServiceResponse> listDelegate(Response createOrUpdateAsync(String groupName, Str /** * Create or update task. - * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an exising one. + * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an existing one. * * @param groupName Name of the resource group * @param serviceName Name of the service @@ -422,7 +422,7 @@ public ProjectTaskInner call(ServiceResponse response) { /** * Create or update task. - * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an exising one. + * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an existing one. * * @param groupName Name of the resource group * @param serviceName Name of the service diff --git a/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/ConnectToSourceSqlServerTaskOutputAgentJobLevel.java b/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/ConnectToSourceSqlServerTaskOutputAgentJobLevel.java index 3af427751108..531314fe0004 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/ConnectToSourceSqlServerTaskOutputAgentJobLevel.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/ConnectToSourceSqlServerTaskOutputAgentJobLevel.java @@ -51,7 +51,7 @@ public class ConnectToSourceSqlServerTaskOutputAgentJobLevel extends ConnectToSo private DateTime lastExecutedOn; /** - * Information about eligiblity of agent job for migration. + * Information about eligibility of agent job for migration. */ @JsonProperty(value = "migrationEligibility", access = JsonProperty.Access.WRITE_ONLY) private MigrationEligibilityInfo migrationEligibility; @@ -102,7 +102,7 @@ public DateTime lastExecutedOn() { } /** - * Get information about eligiblity of agent job for migration. + * Get information about eligibility of agent job for migration. * * @return the migrationEligibility value */ diff --git a/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/ConnectToSourceSqlServerTaskOutputLoginLevel.java b/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/ConnectToSourceSqlServerTaskOutputLoginLevel.java index cd3290d8f7b0..153e0ec04269 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/ConnectToSourceSqlServerTaskOutputLoginLevel.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/ConnectToSourceSqlServerTaskOutputLoginLevel.java @@ -46,7 +46,7 @@ public class ConnectToSourceSqlServerTaskOutputLoginLevel extends ConnectToSourc private Boolean isEnabled; /** - * Information about eligiblity of login for migration. + * Information about eligibility of login for migration. */ @JsonProperty(value = "migrationEligibility", access = JsonProperty.Access.WRITE_ONLY) private MigrationEligibilityInfo migrationEligibility; @@ -88,7 +88,7 @@ public Boolean isEnabled() { } /** - * Get information about eligiblity of login for migration. + * Get information about eligibility of login for migration. * * @return the migrationEligibility value */ diff --git a/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/ResourceSkuCapabilities.java b/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/ResourceSkuCapabilities.java index 7adeb2b6e6a6..9a905ff08fb0 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/ResourceSkuCapabilities.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/ResourceSkuCapabilities.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Describes The SKU capabilites object. + * Describes The SKU capabilities object. */ public class ResourceSkuCapabilities { /** diff --git a/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/implementation/TasksInner.java b/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/implementation/TasksInner.java index 86b29d9960bc..0101b8b62b4b 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/implementation/TasksInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_03_31_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_03_31_preview/implementation/TasksInner.java @@ -366,7 +366,7 @@ private ServiceResponse> listDelegate(Response createOrUpdateAsync(String groupName, Str /** * Create or update task. - * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an exising one. + * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an existing one. * * @param groupName Name of the resource group * @param serviceName Name of the service @@ -422,7 +422,7 @@ public ProjectTaskInner call(ServiceResponse response) { /** * Create or update task. - * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an exising one. + * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an existing one. * * @param groupName Name of the resource group * @param serviceName Name of the service diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskProperties.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskProperties.java index fb88a2e5c60c..5bc1324530f7 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskProperties.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourcePostgreSqlSyncTaskProperties.java @@ -14,7 +14,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; /** - * Properties for the task that validates connection to PostgreSql server and + * 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") diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputAgentJobLevel.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputAgentJobLevel.java index 8dceb41087c6..42e6c0aab149 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputAgentJobLevel.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputAgentJobLevel.java @@ -58,7 +58,7 @@ public class ConnectToSourceSqlServerTaskOutputAgentJobLevel extends ConnectToSo private List validationErrors; /** - * Information about eligiblity of agent job for migration. + * Information about eligibility of agent job for migration. */ @JsonProperty(value = "migrationEligibility", access = JsonProperty.Access.WRITE_ONLY) private MigrationEligibilityInfo migrationEligibility; @@ -118,7 +118,7 @@ public List validationErrors() { } /** - * Get information about eligiblity of agent job for migration. + * Get information about eligibility of agent job for migration. * * @return the migrationEligibility value */ diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputLoginLevel.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputLoginLevel.java index 202188137dd7..a0006a2d3a27 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputLoginLevel.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToSourceSqlServerTaskOutputLoginLevel.java @@ -46,7 +46,7 @@ public class ConnectToSourceSqlServerTaskOutputLoginLevel extends ConnectToSourc private Boolean isEnabled; /** - * Information about eligiblity of login for migration. + * Information about eligibility of login for migration. */ @JsonProperty(value = "migrationEligibility", access = JsonProperty.Access.WRITE_ONLY) private MigrationEligibilityInfo migrationEligibility; @@ -88,7 +88,7 @@ public Boolean isEnabled() { } /** - * Get information about eligiblity of login for migration. + * Get information about eligibility of login for migration. * * @return the migrationEligibility value */ diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.java index a140d064ac30..7a23cf74ce1c 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; /** - * Properties for the task that validates connection to Azure Db For PostgreSql - * server and target server requirements for online migration. + * 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") @JsonTypeName("ConnectToTarget.AzureDbForPostgreSql.Sync") diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandInput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandInput.java index 15c1e5b72e6b..004b47586331 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandInput.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandInput.java @@ -11,8 +11,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Input for command that completes sync migration for a managed instance - * database. + * Input for command that completes online migration for an Azure SQL Database + * Managed Instance. */ public class MigrateMISyncCompleteCommandInput { /** diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandOutput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandOutput.java index 4f00d6319d46..0ca9ddbeb63d 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandOutput.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandOutput.java @@ -12,8 +12,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Output for command that completes sync migration for a managed instance - * database. + * Output for command that completes online migration for an Azure SQL Database + * Managed Instance. */ public class MigrateMISyncCompleteCommandOutput { /** diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandProperties.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandProperties.java index 8b85f7ba994d..785a073e8978 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandProperties.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateMISyncCompleteCommandProperties.java @@ -14,8 +14,8 @@ import com.microsoft.azure.management.azuredatabasemigrationservice.v2018_07_15_preview.implementation.CommandPropertiesInner; /** - * Properties for the command that completes sync migration for a managed - * instance database. + * 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") @JsonTypeName("Migrate.SqlServer.AzureDbSqlMi.Complete") diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ProjectFileProperties.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ProjectFileProperties.java index e06dcf658c1a..9f98ec08bf13 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ProjectFileProperties.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ProjectFileProperties.java @@ -36,7 +36,7 @@ public class ProjectFileProperties { private DateTime lastModified; /** - * File content type. This propery can be modified to reflect the file + * File content type. This property can be modified to reflect the file * content type. */ @JsonProperty(value = "mediaType") @@ -98,7 +98,7 @@ public DateTime lastModified() { } /** - * Get file content type. This propery can be modified to reflect the file content type. + * Get file content type. This property can be modified to reflect the file content type. * * @return the mediaType value */ @@ -107,7 +107,7 @@ public String mediaType() { } /** - * Set file content type. This propery can be modified to reflect the file content type. + * Set file content type. This property can be modified to reflect the file content type. * * @param mediaType the mediaType value to set * @return the ProjectFileProperties object itself. diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ResourceSkuCapabilities.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ResourceSkuCapabilities.java index a240fb6b2ecc..f9da9f8f487e 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ResourceSkuCapabilities.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/ResourceSkuCapabilities.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Describes The SKU capabilites object. + * Describes The SKU capabilities object. */ public class ResourceSkuCapabilities { /** diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/SelectedCertificateInput.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/SelectedCertificateInput.java index b92105ada8d5..80461252dd41 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/SelectedCertificateInput.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/SelectedCertificateInput.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Info for ertificate to be exported for TDE enabled databases. + * Info for certificate to be exported for TDE enabled databases. */ public class SelectedCertificateInput { /** diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/DataMigrationServiceClientImpl.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/DataMigrationServiceClientImpl.java index 35ec418da214..06f8c5be3b27 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/DataMigrationServiceClientImpl.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/DataMigrationServiceClientImpl.java @@ -28,6 +28,18 @@ public AzureClient getAzureClient() { return this.azureClient; } + /** Version of the API. */ + private String apiVersion; + + /** + * Gets Version of the API. + * + * @return the apiVersion value. + */ + public String apiVersion() { + return this.apiVersion; + } + /** Identifier of the subscription. */ private String subscriptionId; @@ -242,6 +254,7 @@ public DataMigrationServiceClientImpl(RestClient restClient) { } protected void initialize() { + this.apiVersion = "2018-07-15-preview"; this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; @@ -262,6 +275,6 @@ protected void initialize() { */ @Override public String userAgent() { - return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "DataMigrationServiceClient", "2018-07-15-preiew"); + return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "DataMigrationServiceClient", "2018-07-15-preview"); } } diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/FilesInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/FilesInner.java index a64132061f3d..6ee4a0433963 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/FilesInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/FilesInner.java @@ -209,8 +209,10 @@ public Observable>> listSinglePageAsync(f if (projectName == null) { throw new IllegalArgumentException("Parameter projectName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.list(this.client.subscriptionId(), groupName, serviceName, projectName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), groupName, serviceName, projectName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -311,8 +313,10 @@ public Observable> getWithServiceResponseAsync if (fileName == null) { throw new IllegalArgumentException("Parameter fileName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.get(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -420,9 +424,11 @@ public Observable> createOrUpdateWithServiceRe if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } Validator.validate(parameters); - final String apiVersion = "2018-07-15-preview"; - return service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + return service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -523,8 +529,10 @@ public Observable> deleteWithServiceResponseAsync(String g if (fileName == null) { throw new IllegalArgumentException("Parameter fileName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -633,9 +641,11 @@ public Observable> updateWithServiceResponseAs if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } Validator.validate(parameters); - final String apiVersion = "2018-07-15-preview"; - return service.update(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + return service.update(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -736,8 +746,10 @@ public Observable> readWithServiceResponse if (fileName == null) { throw new IllegalArgumentException("Parameter fileName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.read(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.read(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -838,8 +850,10 @@ public Observable> readWriteWithServiceRes if (fileName == null) { throw new IllegalArgumentException("Parameter fileName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.readWrite(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.readWrite(this.client.subscriptionId(), groupName, serviceName, projectName, fileName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/OperationsInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/OperationsInner.java index d5fe3ab4d845..3348e184a868 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/OperationsInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/OperationsInner.java @@ -150,8 +150,10 @@ public Observable>> call(ServiceResp * @return the PagedList<ServiceOperationInner> object wrapped in {@link ServiceResponse} if successful. */ public Observable>> listSinglePageAsync() { - final String apiVersion = "2018-07-15-preview"; - return service.list(apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -165,7 +167,7 @@ public Observable>> call(Response> listDelegate(Response response) throws ApiErrorException, IOException { + private ServiceResponse> listDelegate(Response response) throws ApiErrorException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ApiErrorException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ApiErrorException.class) diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ProjectsInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ProjectsInner.java index 47936f8182eb..a35e6438c61c 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ProjectsInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ProjectsInner.java @@ -192,8 +192,10 @@ public Observable>> listSinglePageAsync(final if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.list(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -294,9 +296,11 @@ public Observable> createOrUpdateWithServiceRespon if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } Validator.validate(parameters); - final String apiVersion = "2018-07-15-preview"; - return service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, projectName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + return service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, projectName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -391,8 +395,10 @@ public Observable> getWithServiceResponseAsync(Str if (projectName == null) { throw new IllegalArgumentException("Parameter projectName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.get(this.client.subscriptionId(), groupName, serviceName, projectName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), groupName, serviceName, projectName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -485,9 +491,11 @@ public Observable> deleteWithServiceResponseAsync(String g if (projectName == null) { throw new IllegalArgumentException("Parameter projectName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } final Boolean deleteRunningTasks = null; - return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -577,8 +585,10 @@ public Observable> deleteWithServiceResponseAsync(String g if (projectName == null) { throw new IllegalArgumentException("Parameter projectName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -680,9 +690,11 @@ public Observable> updateWithServiceResponseAsync( if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } Validator.validate(parameters); - final String apiVersion = "2018-07-15-preview"; - return service.update(this.client.subscriptionId(), groupName, serviceName, projectName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + return service.update(this.client.subscriptionId(), groupName, serviceName, projectName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ResourceSkusInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ResourceSkusInner.java index 50622f8f2221..5856dee2c883 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ResourceSkusInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ResourceSkusInner.java @@ -154,8 +154,10 @@ public Observable>> listSinglePageAsync() if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ServicesInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ServicesInner.java index 3fccc9e637e9..190cf88a205f 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ServicesInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/ServicesInner.java @@ -222,9 +222,11 @@ public Observable> createOrUpdateWith if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } Validator.validate(parameters); - final String apiVersion = "2018-07-15-preview"; - Observable> observable = service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -301,9 +303,11 @@ public Observable> beginCreateOrUpdat if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } Validator.validate(parameters); - final String apiVersion = "2018-07-15-preview"; - return service.beginCreateOrUpdate(this.client.subscriptionId(), groupName, serviceName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + return service.beginCreateOrUpdate(this.client.subscriptionId(), groupName, serviceName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -392,8 +396,10 @@ public Observable> getByResourceGroup if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.getByResourceGroup(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.getByResourceGroup(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -479,9 +485,11 @@ public Observable> deleteWithServiceResponseAsync(String g if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } final Boolean deleteRunningTasks = null; - Observable> observable = service.delete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.delete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } /** @@ -553,8 +561,10 @@ public Observable> deleteWithServiceResponseAsync(String g if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - Observable> observable = service.delete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.delete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -623,9 +633,11 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } final Boolean deleteRunningTasks = null; - return service.beginDelete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + return service.beginDelete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -708,8 +720,10 @@ public Observable> beginDeleteWithServiceResponseAsync(Str if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.beginDelete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginDelete(this.client.subscriptionId(), groupName, serviceName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -805,9 +819,11 @@ public Observable> updateWithServiceR if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } Validator.validate(parameters); - final String apiVersion = "2018-07-15-preview"; - Observable> observable = service.update(this.client.subscriptionId(), groupName, serviceName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.update(this.client.subscriptionId(), groupName, serviceName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -884,9 +900,11 @@ public Observable> beginUpdateWithSer if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } Validator.validate(parameters); - final String apiVersion = "2018-07-15-preview"; - return service.beginUpdate(this.client.subscriptionId(), groupName, serviceName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + return service.beginUpdate(this.client.subscriptionId(), groupName, serviceName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -974,8 +992,10 @@ public Observable> chec if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.checkStatus(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.checkStatus(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1061,8 +1081,10 @@ public Observable> startWithServiceResponseAsync(String gr if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - Observable> observable = service.start(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.start(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1131,8 +1153,10 @@ public Observable> beginStartWithServiceResponseAsync(Stri if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.beginStart(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginStart(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1219,8 +1243,10 @@ public Observable> stopWithServiceResponseAsync(String gro if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - Observable> observable = service.stop(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()); + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Observable> observable = service.stop(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPostOrDeleteResultAsync(observable, new TypeToken() { }.getType()); } @@ -1289,8 +1315,10 @@ public Observable> beginStopWithServiceResponseAsync(Strin if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.beginStop(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.beginStop(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1416,8 +1444,10 @@ public Observable>> listSkusSingl if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.listSkus(this.client.subscriptionId(), groupName, serviceName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listSkus(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1508,12 +1538,14 @@ public Observable> checkChildrenN if (serviceName == null) { throw new IllegalArgumentException("Parameter serviceName is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-07-15-preview"; - return service.checkChildrenNameAvailability(this.client.subscriptionId(), groupName, serviceName, apiVersion, parameters, this.client.acceptLanguage(), this.client.userAgent()) + return service.checkChildrenNameAvailability(this.client.subscriptionId(), groupName, serviceName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1630,8 +1662,10 @@ public Observable>> listByResour if (groupName == null) { throw new IllegalArgumentException("Parameter groupName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.listByResourceGroup(this.client.subscriptionId(), groupName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.listByResourceGroup(this.client.subscriptionId(), groupName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1740,8 +1774,10 @@ public Observable>> listSinglePa if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.list(this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1825,12 +1861,14 @@ public Observable> checkNameAvail if (location == null) { throw new IllegalArgumentException("Parameter location is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-07-15-preview"; - return service.checkNameAvailability(this.client.subscriptionId(), location, apiVersion, parameters, this.client.acceptLanguage(), this.client.userAgent()) + return service.checkNameAvailability(this.client.subscriptionId(), location, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/TasksInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/TasksInner.java index b0b117aee0c4..a1a96fb8346e 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/TasksInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/TasksInner.java @@ -209,9 +209,11 @@ public Observable>> listSinglePageAsync(f if (projectName == null) { throw new IllegalArgumentException("Parameter projectName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } final String taskType = null; - return service.list(this.client.subscriptionId(), groupName, serviceName, projectName, apiVersion, taskType, this.client.acceptLanguage(), this.client.userAgent()) + return service.list(this.client.subscriptionId(), groupName, serviceName, projectName, this.client.apiVersion(), taskType, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -342,8 +344,10 @@ public Observable>> listSinglePageAsync(f if (projectName == null) { throw new IllegalArgumentException("Parameter projectName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.list(this.client.subscriptionId(), groupName, serviceName, projectName, apiVersion, taskType, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), groupName, serviceName, projectName, this.client.apiVersion(), taskType, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -366,7 +370,7 @@ private ServiceResponse> listDelegate(Response createOrUpdateAsync(String groupName, Str /** * Create or update task. - * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an exising one. + * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an existing one. * * @param groupName Name of the resource group * @param serviceName Name of the service @@ -422,7 +426,7 @@ public ProjectTaskInner call(ServiceResponse response) { /** * Create or update task. - * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an exising one. + * The tasks resource is a nested, proxy-only resource representing work performed by a DMS instance. The PUT method creates a new task or updates an existing one, although since tasks have no mutable custom properties, there is little reason to update an existing one. * * @param groupName Name of the resource group * @param serviceName Name of the service @@ -451,9 +455,11 @@ public Observable> createOrUpdateWithServiceRe if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } Validator.validate(parameters); - final String apiVersion = "2018-07-15-preview"; - return service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + return service.createOrUpdate(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -555,9 +561,11 @@ public Observable> getWithServiceResponseAsync if (taskName == null) { throw new IllegalArgumentException("Parameter taskName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } final String expand = null; - return service.get(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, expand, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + return service.get(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, expand, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -655,8 +663,10 @@ public Observable> getWithServiceResponseAsync if (taskName == null) { throw new IllegalArgumentException("Parameter taskName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.get(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, expand, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.get(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, expand, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -756,9 +766,11 @@ public Observable> deleteWithServiceResponseAsync(String g if (taskName == null) { throw new IllegalArgumentException("Parameter taskName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } final Boolean deleteRunningTasks = null; - return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -855,8 +867,10 @@ public Observable> deleteWithServiceResponseAsync(String g if (taskName == null) { throw new IllegalArgumentException("Parameter taskName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, deleteRunningTasks, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.delete(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, deleteRunningTasks, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -965,9 +979,11 @@ public Observable> updateWithServiceResponseAs if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } Validator.validate(parameters); - final String apiVersion = "2018-07-15-preview"; - return service.update(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + return service.update(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1068,8 +1084,10 @@ public Observable> cancelWithServiceResponseAs if (taskName == null) { throw new IllegalArgumentException("Parameter taskName is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.cancel(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.cancel(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1174,12 +1192,14 @@ public Observable> commandWithServiceRes if (taskName == null) { throw new IllegalArgumentException("Parameter taskName is required and cannot be null."); } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } if (parameters == null) { throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); } Validator.validate(parameters); - final String apiVersion = "2018-07-15-preview"; - return service.command(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, apiVersion, parameters, this.client.acceptLanguage(), this.client.userAgent()) + return service.command(this.client.subscriptionId(), groupName, serviceName, projectName, taskName, this.client.apiVersion(), parameters, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/UsagesInner.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/UsagesInner.java index 45577df25ca3..2371345d6d78 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/UsagesInner.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/implementation/UsagesInner.java @@ -162,8 +162,10 @@ public Observable>> listSinglePageAsync(final S if (location == null) { throw new IllegalArgumentException("Parameter location is required and cannot be null."); } - final String apiVersion = "2018-07-15-preview"; - return service.list(this.client.subscriptionId(), location, apiVersion, this.client.acceptLanguage(), this.client.userAgent()) + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.list(this.client.subscriptionId(), location, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { From 3ab484f9ecda76055cfc6880c59f3d9258c51bff Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 5 Dec 2018 21:26:22 +0000 Subject: [PATCH 3/5] Generated from b3902e71906cd990fb1d5ffcf435c513be13e5b9 add orphaned user changes to the repo --- ...qlServerSqlMITaskOutputMigrationLevel.java | 8 +-- .../v2018_07_15_preview/OrphanedUserInfo.java | 69 +++++++++++++++++++ 2 files changed, 73 insertions(+), 4 deletions(-) create mode 100644 azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/OrphanedUserInfo.java diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputMigrationLevel.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputMigrationLevel.java index 8e49c5d0794c..d1a82eba2f96 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputMigrationLevel.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputMigrationLevel.java @@ -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; + private List orphanedUsers; /** * Selected databases as a map from database name to database id. @@ -187,11 +187,11 @@ public Map serverRoleResults() { } /** - * Get map of users to database name of orphaned users. + * Get list of orphaned users. * * @return the orphanedUsers value */ - public Map orphanedUsers() { + public List orphanedUsers() { return this.orphanedUsers; } diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/OrphanedUserInfo.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/OrphanedUserInfo.java new file mode 100644 index 000000000000..ad1ad0133300 --- /dev/null +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/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.azuredatabasemigrationservice.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 DB 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 DB of the user. + * + * @return the databaseName value + */ + public String databaseName() { + return this.databaseName; + } + + /** + * Set parent DB 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; + } + +} From dfe1e574e6f5d1455bd81cf32812cd5d00fc27db Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 5 Dec 2018 23:13:47 +0000 Subject: [PATCH 4/5] Generated from 194999dd0c4aa8e525e2ce95920571b28475ec93 minor string fix --- .../v2018_07_15_preview/OrphanedUserInfo.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/OrphanedUserInfo.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/OrphanedUserInfo.java index ad1ad0133300..77d1c7a55b7d 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/OrphanedUserInfo.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/OrphanedUserInfo.java @@ -21,7 +21,7 @@ public class OrphanedUserInfo { private String name; /** - * Parent DB of the user. + * Parent database of the user. */ @JsonProperty(value = "databaseName") private String databaseName; @@ -47,7 +47,7 @@ public OrphanedUserInfo withName(String name) { } /** - * Get parent DB of the user. + * Get parent database of the user. * * @return the databaseName value */ @@ -56,7 +56,7 @@ public String databaseName() { } /** - * Set parent DB of the user. + * Set parent database of the user. * * @param databaseName the databaseName value to set * @return the OrphanedUserInfo object itself. From 00e3e4f4d59a53b6b770f76b9cc995c51355f727 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 13 Dec 2018 01:26:13 +0000 Subject: [PATCH 5/5] Generated from e2c19668640e42352fe034e8637440426690b683 Change orphanedUsers to orphanedUsersInfo --- .../MigrateSqlServerSqlMITaskOutputMigrationLevel.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputMigrationLevel.java b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputMigrationLevel.java index d1a82eba2f96..b2e18ff78f99 100644 --- a/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputMigrationLevel.java +++ b/azuredatabasemigrationservice/resource-manager/v2018_07_15_preview/src/main/java/com/microsoft/azure/management/azuredatabasemigrationservice/v2018_07_15_preview/MigrateSqlServerSqlMITaskOutputMigrationLevel.java @@ -75,8 +75,8 @@ public class MigrateSqlServerSqlMITaskOutputMigrationLevel extends MigrateSqlSer /** * List of orphaned users. */ - @JsonProperty(value = "orphanedUsers", access = JsonProperty.Access.WRITE_ONLY) - private List orphanedUsers; + @JsonProperty(value = "orphanedUsersInfo", access = JsonProperty.Access.WRITE_ONLY) + private List orphanedUsersInfo; /** * Selected databases as a map from database name to database id. @@ -189,10 +189,10 @@ public Map serverRoleResults() { /** * Get list of orphaned users. * - * @return the orphanedUsers value + * @return the orphanedUsersInfo value */ - public List orphanedUsers() { - return this.orphanedUsers; + public List orphanedUsersInfo() { + return this.orphanedUsersInfo; } /**