diff --git a/sdk/datamigration/arm-datamigration/CHANGELOG.md b/sdk/datamigration/arm-datamigration/CHANGELOG.md index e4f2ddb910a9..e2a4da18694b 100644 --- a/sdk/datamigration/arm-datamigration/CHANGELOG.md +++ b/sdk/datamigration/arm-datamigration/CHANGELOG.md @@ -1,8 +1,8 @@ # Release History -## 3.0.0-beta.1 (2022-01-18) +## 3.0.0-beta.2 (2022-02-09) -The package of @azure/arm-datamigration is using our next generation design principles since version 3.0.0-beta.1, which contains breaking changes. +The package of @azure/arm-datamigration is using our next generation design principles since version 3.0.0-beta.2, which contains breaking changes. To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog). diff --git a/sdk/datamigration/arm-datamigration/_meta.json b/sdk/datamigration/arm-datamigration/_meta.json index e0620020082d..5344cd3fd1a7 100644 --- a/sdk/datamigration/arm-datamigration/_meta.json +++ b/sdk/datamigration/arm-datamigration/_meta.json @@ -1,7 +1,7 @@ { - "commit": "d29e6eb4894005c52e67cb4b5ac3faf031113e7d", + "commit": "4add459a5ade76fcee4889ea8c3fb1d758b331cc", "readme": "specification/datamigration/resource-manager/readme.md", - "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/hybridcompute/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --generate-sample=true", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/datamigration/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20220114.1" -} + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" +} \ No newline at end of file diff --git a/sdk/datamigration/arm-datamigration/api-extractor.json b/sdk/datamigration/arm-datamigration/api-extractor.json index a59a60147e00..1613066a4220 100644 --- a/sdk/datamigration/arm-datamigration/api-extractor.json +++ b/sdk/datamigration/arm-datamigration/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-datamigration.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/datamigration/arm-datamigration/package.json b/sdk/datamigration/arm-datamigration/package.json index b7dbf00d1182..18ca31a594c6 100644 --- a/sdk/datamigration/arm-datamigration/package.json +++ b/sdk/datamigration/arm-datamigration/package.json @@ -3,8 +3,10 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for DataMigrationManagementClient.", - "version": "3.0.0-beta.1", - "engines": { "node": ">=12.0.0" }, + "version": "3.0.0-beta.2", + "engines": { + "node": ">=12.0.0" + }, "dependencies": { "@azure/core-lro": "^2.2.0", "@azure/abort-controller": "^1.0.0", @@ -14,7 +16,13 @@ "@azure/core-rest-pipeline": "^1.1.0", "tslib": "^2.2.0" }, - "keywords": ["node", "azure", "typescript", "browser", "isomorphic"], + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], "license": "MIT", "main": "./dist/index.js", "module": "./dist-esm/src/index.js", @@ -41,7 +49,9 @@ "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" }, - "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, "files": [ "dist/**/*.js", "dist/**/*.js.map", @@ -88,19 +98,5 @@ "docs": "echo skipped" }, "sideEffects": false, - "//metadata": { - "constantPaths": [ - { - "path": "src/DataMigrationManagementClient.ts", - "prefix": "packageDetails" - } - ] - }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": ["azure"], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-datamigration?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/datamigration/arm-datamigration/review/arm-datamigration.api.md b/sdk/datamigration/arm-datamigration/review/arm-datamigration.api.md index d2c1a9ce737b..f1bab1563393 100644 --- a/sdk/datamigration/arm-datamigration/review/arm-datamigration.api.md +++ b/sdk/datamigration/arm-datamigration/review/arm-datamigration.api.md @@ -52,6 +52,7 @@ export interface AvailableServiceSkuSku { export interface AzureActiveDirectoryApp { appKey: string; applicationId: string; + ignoreAzurePermissions?: boolean; tenantId: string; } @@ -100,7 +101,7 @@ export type BackupType = string; // @public export interface BlobShare { - sasUri: string; + sasUri?: string; } // @public @@ -233,6 +234,7 @@ export interface ConnectToSourceSqlServerTaskInput { collectDatabases?: boolean; collectLogins?: boolean; collectTdeCertificateInfo?: boolean; + encryptedKeyForSecureFields?: string; sourceConnectionInfo: SqlConnectionInfo; validateSsisCatalogOnly?: boolean; } @@ -295,6 +297,7 @@ export type ConnectToSourceSqlServerTaskProperties = ProjectTaskProperties & { taskType: "ConnectToSource.SqlServer"; input?: ConnectToSourceSqlServerTaskInput; readonly output?: ConnectToSourceSqlServerTaskOutputUnion[]; + taskId?: string; }; // @public @@ -386,6 +389,7 @@ export type ConnectToTargetSqlDbSyncTaskProperties = ProjectTaskProperties & { // @public export interface ConnectToTargetSqlDbTaskInput { + queryObjectCounts?: boolean; targetConnectionInfo: SqlConnectionInfo; } @@ -402,6 +406,7 @@ export type ConnectToTargetSqlDbTaskProperties = ProjectTaskProperties & { taskType: "ConnectToTarget.SqlDb"; input?: ConnectToTargetSqlDbTaskInput; readonly output?: ConnectToTargetSqlDbTaskOutput[]; + createdOn?: string; }; // @public @@ -791,6 +796,7 @@ export interface DataMigrationServiceList { // @public export interface DataMigrationServiceStatusResponse { + agentConfiguration?: Record; agentVersion?: string; status?: string; supportedTaskTypes?: string[]; @@ -1022,6 +1028,7 @@ export type GetUserTablesSqlSyncTaskProperties = ProjectTaskProperties & { // @public export interface GetUserTablesSqlTaskInput { connectionInfo: SqlConnectionInfo; + encryptedKeyForSecureFields?: string; selectedDatabases: string[]; } @@ -1037,6 +1044,7 @@ export type GetUserTablesSqlTaskProperties = ProjectTaskProperties & { taskType: "GetUserTables.Sql"; input?: GetUserTablesSqlTaskInput; readonly output?: GetUserTablesSqlTaskOutput[]; + taskId?: string; }; // @public @@ -1943,6 +1951,7 @@ export interface MigrateMySqlAzureDbForMySqlOfflineDatabaseInput { // @public export interface MigrateMySqlAzureDbForMySqlOfflineTaskInput { + encryptedKeyForSecureFields?: string; makeSourceServerReadOnly?: boolean; optionalAgentSettings?: { [propertyName: string]: string; @@ -2028,6 +2037,8 @@ export type MigrateMySqlAzureDbForMySqlOfflineTaskProperties = ProjectTaskProper taskType: "Migrate.MySql.AzureDbForMySql"; input?: MigrateMySqlAzureDbForMySqlOfflineTaskInput; readonly output?: MigrateMySqlAzureDbForMySqlOfflineTaskOutputUnion[]; + isCloneable?: boolean; + taskId?: string; }; // @public @@ -2240,8 +2251,9 @@ export type MigrateOracleAzureDbPostgreSqlSyncTaskOutputUnion = MigrateOracleAzu // @public export interface MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput { + readonly id?: string; migrationSetting?: { - [propertyName: string]: string; + [propertyName: string]: any; }; name?: string; selectedTables?: MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput[]; @@ -2417,6 +2429,7 @@ export type MigrateSchemaSqlServerSqlDbTaskProperties = ProjectTaskProperties & readonly output?: MigrateSchemaSqlServerSqlDbTaskOutputUnion[]; createdOn?: string; taskId?: string; + isCloneable?: boolean; }; // @public (undocumented) @@ -2643,6 +2656,7 @@ export type MigrateSqlServerSqlDbTaskProperties = ProjectTaskProperties & { readonly output?: MigrateSqlServerSqlDbTaskOutputUnion[]; taskId?: string; isCloneable?: boolean; + createdOn?: string; }; // @public @@ -2655,7 +2669,9 @@ export interface MigrateSqlServerSqlMIDatabaseInput { } // @public -export type MigrateSqlServerSqlMISyncTaskInput = SqlServerSqlMISyncTaskInput & {}; +export type MigrateSqlServerSqlMISyncTaskInput = SqlServerSqlMISyncTaskInput & { + numberOfParallelDatabaseMigrations?: number; +}; // @public export interface MigrateSqlServerSqlMISyncTaskOutput { @@ -2709,6 +2725,7 @@ export type MigrateSqlServerSqlMISyncTaskProperties = ProjectTaskProperties & { taskType: "Migrate.SqlServer.AzureSqlDbMI.Sync.LRS"; input?: MigrateSqlServerSqlMISyncTaskInput; readonly output?: MigrateSqlServerSqlMISyncTaskOutputUnion[]; + createdOn?: string; }; // @public @@ -2801,6 +2818,8 @@ export type MigrateSqlServerSqlMITaskProperties = ProjectTaskProperties & { input?: MigrateSqlServerSqlMITaskInput; readonly output?: MigrateSqlServerSqlMITaskOutputUnion[]; taskId?: string; + createdOn?: string; + parentTaskId?: string; }; // @public @@ -2869,6 +2888,7 @@ export type MigrateSyncCompleteCommandProperties = CommandProperties & { commandType: "Migrate.Sync.Complete.Database"; input?: MigrateSyncCompleteCommandInput; readonly output?: MigrateSyncCompleteCommandOutput; + commandId?: string; }; // @public @@ -3017,6 +3037,8 @@ export type MongoDbConnectionInfo = ConnectionInfo & { dataSource?: string; encryptConnection?: boolean; serverBrandVersion?: string; + serverVersion?: string; + trustServerCertificate?: boolean; enforceSSL?: boolean; port?: number; additionalSettings?: string; @@ -3152,7 +3174,7 @@ export type MongoDbShardKeyOrder = string; // @public export interface MongoDbShardKeySetting { fields: MongoDbShardKeyField[]; - isUnique: boolean; + isUnique?: boolean; } // @public @@ -3169,6 +3191,7 @@ export type MySqlConnectionInfo = ConnectionInfo & { dataSource?: string; port: number; encryptConnection?: boolean; + authentication?: AuthenticationType; }; // @public @@ -3337,13 +3360,16 @@ export type PostgreSqlConnectionInfo = ConnectionInfo & { port: number; encryptConnection?: boolean; trustServerCertificate?: boolean; + additionalSettings?: string; + serverBrandVersion?: string; + authentication?: AuthenticationType; }; // @public export type Project = TrackedResource & { - eTag?: string; + etag?: string; sourcePlatform?: ProjectSourcePlatform; - azureAuthenticationInfo?: string; + azureAuthenticationInfo?: AzureActiveDirectoryApp; targetPlatform?: ProjectTargetPlatform; readonly creationTime?: Date; sourceConnectionInfo?: ConnectionInfoUnion; @@ -3648,7 +3674,7 @@ export interface SelectedCertificateInput { } // @public -export type ServerLevelPermissionsGroup = "Default" | "MigrationFromSqlServerToAzureDB" | "MigrationFromSqlServerToAzureMI" | "MigrationFromMySQLToAzureDBForMySQL"; +export type ServerLevelPermissionsGroup = "Default" | "MigrationFromSqlServerToAzureDB" | "MigrationFromSqlServerToAzureMI" | "MigrationFromMySQLToAzureDBForMySQL" | "MigrationFromSqlServerToAzureVM"; // @public export interface ServerProperties { @@ -3930,7 +3956,9 @@ export type SqlConnectionInfo = ConnectionInfo & { type: "SqlConnectionInfo"; dataSource: string; serverName?: string; - port?: string; + port?: number; + serverVersion?: string; + serverBrandVersion?: string; resourceId?: string; authentication?: AuthenticationType; encryptConnection?: boolean; diff --git a/sdk/datamigration/arm-datamigration/src/dataMigrationManagementClient.ts b/sdk/datamigration/arm-datamigration/src/dataMigrationManagementClient.ts index d4015dc282d3..465c4dadd87e 100644 --- a/sdk/datamigration/arm-datamigration/src/dataMigrationManagementClient.ts +++ b/sdk/datamigration/arm-datamigration/src/dataMigrationManagementClient.ts @@ -68,7 +68,7 @@ export class DataMigrationManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-datamigration/3.0.0-beta.1`; + const packageDetails = `azsdk-js-arm-datamigration/3.0.0-beta.2`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -91,7 +91,7 @@ export class DataMigrationManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-10-30-preview"; + this.apiVersion = options.apiVersion || "2022-01-30-preview"; this.databaseMigrationsSqlMi = new DatabaseMigrationsSqlMiImpl(this); this.databaseMigrationsSqlVm = new DatabaseMigrationsSqlVmImpl(this); this.operations = new OperationsImpl(this); diff --git a/sdk/datamigration/arm-datamigration/src/models/index.ts b/sdk/datamigration/arm-datamigration/src/models/index.ts index a41c1ae39904..0f2b906eb676 100644 --- a/sdk/datamigration/arm-datamigration/src/models/index.ts +++ b/sdk/datamigration/arm-datamigration/src/models/index.ts @@ -380,7 +380,7 @@ export interface OfflineConfiguration { export interface DatabaseMigrationProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "SqlMi" | "SqlVm"; - /** Scope of the database. */ + /** Resource Id of the target resource (SQL VM or SQL Managed Instance). */ scope?: string; /** * Provisioning State of migration. ProvisioningState as Succeeded implies that validations have been performed and migration has started. @@ -810,6 +810,8 @@ export interface ServiceSku { export interface DataMigrationServiceStatusResponse { /** The DMS instance agent version */ agentVersion?: string; + /** Agent Configuration */ + agentConfiguration?: Record; /** The machine-readable status, such as 'Initializing', 'Offline', 'Online', 'Deploying', 'Deleting', 'Stopped', 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop' or 'Failed' */ status?: string; /** The services virtual machine size, such as 'Standard_D2_v2' */ @@ -1003,6 +1005,18 @@ export interface ProjectList { nextLink?: string; } +/** Azure Active Directory Application */ +export interface AzureActiveDirectoryApp { + /** Application ID of the Azure Active Directory Application */ + applicationId: string; + /** Key used to authenticate to the Azure Active Directory Application */ + appKey: string; + /** Tenant id of the customer */ + tenantId: string; + /** Ignore checking azure permissions on the AAD app */ + ignoreAzurePermissions?: boolean; +} + /** Defines the connection properties of a server */ export interface ConnectionInfo { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -1141,16 +1155,6 @@ export interface MigrateMISyncCompleteCommandOutput { errors?: ReportableException[]; } -/** Azure Active Directory Application */ -export interface AzureActiveDirectoryApp { - /** Application ID of the Azure Active Directory Application */ - applicationId: string; - /** Key used to authenticate to the Azure Active Directory Application */ - appKey: string; - /** Tenant id of the customer */ - tenantId: string; -} - /** Information of backup set */ export interface BackupSetInfo { /** Id for the set of backup files */ @@ -1221,6 +1225,8 @@ export interface ConnectToSourceSqlServerTaskInput { collectTdeCertificateInfo?: boolean; /** Flag for whether to validate SSIS catalog is reachable on the source server. */ validateSsisCatalogOnly?: boolean; + /** encrypted key for secure fields */ + encryptedKeyForSecureFields?: string; } /** Output for the task that validates connection to SQL Server and also validates source server requirements */ @@ -1348,6 +1354,8 @@ export interface ConnectToTargetAzureDbForMySqlTaskOutput { export interface ConnectToTargetSqlDbTaskInput { /** Connection information for target SQL DB */ targetConnectionInfo: SqlConnectionInfo; + /** Boolean flag indicating whether to query object counts for each database on the target server */ + queryObjectCounts?: boolean; } /** Output for the task that validates connection to SQL DB and target server requirements */ @@ -1617,6 +1625,8 @@ export interface GetUserTablesSqlTaskInput { connectionInfo: SqlConnectionInfo; /** List of database names to collect tables for */ selectedDatabases: string[]; + /** encrypted key for secure fields */ + encryptedKeyForSecureFields?: string; } /** Output of the task that collects user tables for the given list of databases */ @@ -1760,10 +1770,15 @@ export interface MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput { export interface MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput { /** Name of the database */ name?: string; + /** + * Result identifier + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; /** Name of target database. Note: Target database will be truncated before starting migration. */ targetDatabaseName?: string; /** Migration settings which tune the migration behavior */ - migrationSetting?: { [propertyName: string]: string }; + migrationSetting?: { [propertyName: string]: any }; /** Source settings to tune source endpoint migration behavior */ sourceSetting?: { [propertyName: string]: string }; /** Target settings to tune target endpoint migration behavior */ @@ -2174,7 +2189,7 @@ export interface MigrateSqlServerSqlMISyncTaskOutput { /** Blob container storage information. */ export interface BlobShare { /** SAS URI of Azure Storage Account Container. */ - sasUri: string; + sasUri?: string; } /** Output for task that migrates SQL Server databases to Azure SQL Database Managed Instance. */ @@ -2320,7 +2335,7 @@ export interface MongoDbShardKeySetting { /** The fields within the shard key */ fields: MongoDbShardKeyField[]; /** Whether the shard key is unique */ - isUnique: boolean; + isUnique?: boolean; } /** Describes how an individual MongoDB database should be migrated */ @@ -2724,6 +2739,8 @@ export interface MigrateMySqlAzureDbForMySqlOfflineTaskInput { startedOn?: Date; /** Optional parameters for fine tuning the data transfer rate during migration */ optionalAgentSettings?: { [propertyName: string]: string }; + /** encrypted key for secure fields */ + encryptedKeyForSecureFields?: string; } /** Database specific information for offline MySQL to Azure Database for MySQL migration task inputs */ @@ -3299,11 +3316,11 @@ export type DataMigrationService = TrackedResource & { /** A project resource */ export type Project = TrackedResource & { /** HTTP strong entity tag value. This is ignored if submitted. */ - eTag?: string; + etag?: string; /** Source platform for the project */ sourcePlatform?: ProjectSourcePlatform; /** Field that defines the Azure active directory application info, used to connect to the target Azure resource */ - azureAuthenticationInfo?: string; + azureAuthenticationInfo?: AzureActiveDirectoryApp; /** Target platform for the project */ targetPlatform?: ProjectTargetPlatform; /** @@ -3339,6 +3356,8 @@ export type MigrateSchemaSqlServerSqlDbTaskProperties = ProjectTaskProperties & createdOn?: string; /** Task id */ taskId?: string; + /** whether the task can be cloned or not */ + isCloneable?: boolean; }; /** Properties for the task that checks for OCI drivers. */ @@ -3404,6 +3423,8 @@ export type ConnectToSourceSqlServerTaskProperties = ProjectTaskProperties & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly output?: ConnectToSourceSqlServerTaskOutputUnion[]; + /** Task id */ + taskId?: string; }; /** Properties for the task that validates connection to SQL Server and source server requirements for online migration */ @@ -3469,6 +3490,8 @@ export type ConnectToTargetSqlDbTaskProperties = ProjectTaskProperties & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly output?: ConnectToTargetSqlDbTaskOutput[]; + /** DateTime in UTC when the task was created */ + createdOn?: string; }; /** Properties for the task that validates connection to SQL DB and target server requirements for online migration */ @@ -3521,6 +3544,8 @@ export type GetUserTablesSqlTaskProperties = ProjectTaskProperties & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly output?: GetUserTablesSqlTaskOutput[]; + /** Task id */ + taskId?: string; }; /** Properties for the task that collects user tables for the given list of databases */ @@ -3637,6 +3662,10 @@ export type MigrateSqlServerSqlMITaskProperties = ProjectTaskProperties & { readonly output?: MigrateSqlServerSqlMITaskOutputUnion[]; /** task id */ taskId?: string; + /** DateTime in UTC when the task was created */ + createdOn?: string; + /** parent task id */ + parentTaskId?: string; }; /** Properties for task that migrates SQL Server databases to Azure SQL Database Managed Instance sync scenario */ @@ -3650,6 +3679,8 @@ export type MigrateSqlServerSqlMISyncTaskProperties = ProjectTaskProperties & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly output?: MigrateSqlServerSqlMISyncTaskOutputUnion[]; + /** DateTime in UTC when the task was created */ + createdOn?: string; }; /** Properties for the task that migrates on-prem SQL Server databases to Azure SQL Database */ @@ -3667,6 +3698,8 @@ export type MigrateSqlServerSqlDbTaskProperties = ProjectTaskProperties & { taskId?: string; /** whether the task can be cloned or not */ isCloneable?: boolean; + /** DateTime in UTC when the task was created */ + createdOn?: string; }; /** Properties for the task that migrates on-prem SQL Server databases to Azure SQL Database for online migrations */ @@ -3706,6 +3739,10 @@ export type MigrateMySqlAzureDbForMySqlOfflineTaskProperties = ProjectTaskProper * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly output?: MigrateMySqlAzureDbForMySqlOfflineTaskOutputUnion[]; + /** whether the task can be cloned or not */ + isCloneable?: boolean; + /** Task id */ + taskId?: string; }; /** Properties for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for online migrations */ @@ -3840,6 +3877,8 @@ export type MigrateSyncCompleteCommandProperties = CommandProperties & { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly output?: MigrateSyncCompleteCommandOutput; + /** Command id */ + commandId?: string; }; /** Properties for the command that completes online migration for an Azure SQL Database Managed Instance. */ @@ -3917,6 +3956,10 @@ export type MongoDbConnectionInfo = ConnectionInfo & { encryptConnection?: boolean; /** server brand version */ serverBrandVersion?: string; + /** server version */ + serverVersion?: string; + /** Whether to trust the server certificate */ + trustServerCertificate?: boolean; enforceSSL?: boolean; /** port for server */ port?: number; @@ -3932,8 +3975,12 @@ export type SqlConnectionInfo = ConnectionInfo & { dataSource: string; /** name of the server */ serverName?: string; - /** port for server */ - port?: string; + /** Port for Server */ + port?: number; + /** server version */ + serverVersion?: string; + /** server brand version */ + serverBrandVersion?: string; /** Represents the ID of an HTTP resource represented by an Azure resource provider. */ resourceId?: string; /** Authentication type to use for connection */ @@ -3960,6 +4007,8 @@ export type MySqlConnectionInfo = ConnectionInfo & { port: number; /** Whether to encrypt the connection */ encryptConnection?: boolean; + /** Authentication type to use for connection */ + authentication?: AuthenticationType; }; /** Information for connecting to Oracle server */ @@ -3988,6 +4037,12 @@ export type PostgreSqlConnectionInfo = ConnectionInfo & { encryptConnection?: boolean; /** Whether to trust the server certificate */ trustServerCertificate?: boolean; + /** Additional connection settings */ + additionalSettings?: string; + /** server brand version */ + serverBrandVersion?: string; + /** Authentication type to use for connection */ + authentication?: AuthenticationType; }; /** Properties required to create a connection to Azure SQL database Managed instance */ @@ -5189,7 +5244,10 @@ export type DatabaseSummaryResult = DataItemMigrationSummaryResult & { }; /** Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online scenario. */ -export type MigrateSqlServerSqlMISyncTaskInput = SqlServerSqlMISyncTaskInput & {}; +export type MigrateSqlServerSqlMISyncTaskInput = SqlServerSqlMISyncTaskInput & { + /** Number of database migrations to start in parallel */ + numberOfParallelDatabaseMigrations?: number; +}; /** Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online scenario. */ export type ValidateMigrationInputSqlServerSqlMISyncTaskInput = SqlServerSqlMISyncTaskInput & {}; @@ -7384,7 +7442,8 @@ export type ServerLevelPermissionsGroup = | "Default" | "MigrationFromSqlServerToAzureDB" | "MigrationFromSqlServerToAzureMI" - | "MigrationFromMySQLToAzureDBForMySQL"; + | "MigrationFromMySQLToAzureDBForMySQL" + | "MigrationFromSqlServerToAzureVM"; /** Optional parameters. */ export interface DatabaseMigrationsSqlMiGetOptionalParams diff --git a/sdk/datamigration/arm-datamigration/src/models/mappers.ts b/sdk/datamigration/arm-datamigration/src/models/mappers.ts index fdcb6b5f5a0d..60b0443cce94 100644 --- a/sdk/datamigration/arm-datamigration/src/models/mappers.ts +++ b/sdk/datamigration/arm-datamigration/src/models/mappers.ts @@ -1462,6 +1462,13 @@ export const DataMigrationServiceStatusResponse: coreClient.CompositeMapper = { name: "String" } }, + agentConfiguration: { + serializedName: "agentConfiguration", + type: { + name: "Dictionary", + value: { type: { name: "any" } } + } + }, status: { serializedName: "status", type: { @@ -1872,6 +1879,42 @@ export const ProjectList: coreClient.CompositeMapper = { } }; +export const AzureActiveDirectoryApp: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureActiveDirectoryApp", + modelProperties: { + applicationId: { + serializedName: "applicationId", + required: true, + type: { + name: "String" + } + }, + appKey: { + serializedName: "appKey", + required: true, + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + required: true, + type: { + name: "String" + } + }, + ignoreAzurePermissions: { + serializedName: "ignoreAzurePermissions", + type: { + name: "Boolean" + } + } + } + } +}; + export const ConnectionInfo: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2232,36 +2275,6 @@ export const MigrateMISyncCompleteCommandOutput: coreClient.CompositeMapper = { } }; -export const AzureActiveDirectoryApp: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureActiveDirectoryApp", - modelProperties: { - applicationId: { - serializedName: "applicationId", - required: true, - type: { - name: "String" - } - }, - appKey: { - serializedName: "appKey", - required: true, - type: { - name: "String" - } - }, - tenantId: { - serializedName: "tenantId", - required: true, - type: { - name: "String" - } - } - } - } -}; - export const BackupSetInfo: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2411,7 +2424,8 @@ export const ConnectToSourceMySqlTaskInput: coreClient.CompositeMapper = { "Default", "MigrationFromSqlServerToAzureDB", "MigrationFromSqlServerToAzureMI", - "MigrationFromMySQLToAzureDBForMySQL" + "MigrationFromMySQLToAzureDBForMySQL", + "MigrationFromSqlServerToAzureVM" ] } }, @@ -2446,7 +2460,8 @@ export const ConnectToSourceSqlServerTaskInput: coreClient.CompositeMapper = { "Default", "MigrationFromSqlServerToAzureDB", "MigrationFromSqlServerToAzureMI", - "MigrationFromMySQLToAzureDBForMySQL" + "MigrationFromMySQLToAzureDBForMySQL", + "MigrationFromSqlServerToAzureVM" ] } }, @@ -2484,6 +2499,12 @@ export const ConnectToSourceSqlServerTaskInput: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + encryptedKeyForSecureFields: { + serializedName: "encryptedKeyForSecureFields", + type: { + name: "String" + } } } } @@ -2763,6 +2784,12 @@ export const ConnectToTargetSqlDbTaskInput: coreClient.CompositeMapper = { name: "Composite", className: "SqlConnectionInfo" } + }, + queryObjectCounts: { + serializedName: "queryObjectCounts", + type: { + name: "Boolean" + } } } } @@ -3385,6 +3412,12 @@ export const GetUserTablesSqlTaskInput: coreClient.CompositeMapper = { } } } + }, + encryptedKeyForSecureFields: { + serializedName: "encryptedKeyForSecureFields", + type: { + name: "String" + } } } } @@ -3735,6 +3768,13 @@ export const MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput: coreClient. name: "String" } }, + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, targetDatabaseName: { serializedName: "targetDatabaseName", type: { @@ -3745,7 +3785,7 @@ export const MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput: coreClient. serializedName: "migrationSetting", type: { name: "Dictionary", - value: { type: { name: "String" } } + value: { type: { name: "any" } } } }, sourceSetting: { @@ -4669,7 +4709,6 @@ export const BlobShare: coreClient.CompositeMapper = { modelProperties: { sasUri: { serializedName: "sasUri", - required: true, type: { name: "String" } @@ -5105,7 +5144,6 @@ export const MongoDbShardKeySetting: coreClient.CompositeMapper = { }, isUnique: { serializedName: "isUnique", - required: true, type: { name: "Boolean" } @@ -6094,6 +6132,12 @@ export const MigrateMySqlAzureDbForMySqlOfflineTaskInput: coreClient.CompositeMa name: "Dictionary", value: { type: { name: "String" } } } + }, + encryptedKeyForSecureFields: { + serializedName: "encryptedKeyForSecureFields", + type: { + name: "String" + } } } } @@ -7351,8 +7395,8 @@ export const Project: coreClient.CompositeMapper = { className: "Project", modelProperties: { ...TrackedResource.type.modelProperties, - eTag: { - serializedName: "eTag", + etag: { + serializedName: "etag", type: { name: "String" } @@ -7366,7 +7410,8 @@ export const Project: coreClient.CompositeMapper = { azureAuthenticationInfo: { serializedName: "properties.azureAuthenticationInfo", type: { - name: "String" + name: "Composite", + className: "AzureActiveDirectoryApp" } }, targetPlatform: { @@ -7460,6 +7505,12 @@ export const MigrateSchemaSqlServerSqlDbTaskProperties: coreClient.CompositeMapp type: { name: "String" } + }, + isCloneable: { + serializedName: "isCloneable", + type: { + name: "Boolean" + } } } } @@ -7630,6 +7681,12 @@ export const ConnectToSourceSqlServerTaskProperties: coreClient.CompositeMapper } } } + }, + taskId: { + serializedName: "taskId", + type: { + name: "String" + } } } } @@ -7800,6 +7857,12 @@ export const ConnectToTargetSqlDbTaskProperties: coreClient.CompositeMapper = { } } } + }, + createdOn: { + serializedName: "createdOn", + type: { + name: "String" + } } } } @@ -7937,6 +8000,12 @@ export const GetUserTablesSqlTaskProperties: coreClient.CompositeMapper = { } } } + }, + taskId: { + serializedName: "taskId", + type: { + name: "String" + } } } } @@ -8249,6 +8318,18 @@ export const MigrateSqlServerSqlMITaskProperties: coreClient.CompositeMapper = { type: { name: "String" } + }, + createdOn: { + serializedName: "createdOn", + type: { + name: "String" + } + }, + parentTaskId: { + serializedName: "parentTaskId", + type: { + name: "String" + } } } } @@ -8283,6 +8364,12 @@ export const MigrateSqlServerSqlMISyncTaskProperties: coreClient.CompositeMapper } } } + }, + createdOn: { + serializedName: "createdOn", + type: { + name: "String" + } } } } @@ -8329,6 +8416,12 @@ export const MigrateSqlServerSqlDbTaskProperties: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + createdOn: { + serializedName: "createdOn", + type: { + name: "String" + } } } } @@ -8431,6 +8524,18 @@ export const MigrateMySqlAzureDbForMySqlOfflineTaskProperties: coreClient.Compos } } } + }, + isCloneable: { + serializedName: "isCloneable", + type: { + name: "Boolean" + } + }, + taskId: { + serializedName: "taskId", + type: { + name: "String" + } } } } @@ -8776,6 +8881,12 @@ export const MigrateSyncCompleteCommandProperties: coreClient.CompositeMapper = name: "Composite", className: "MigrateSyncCompleteCommandOutput" } + }, + commandId: { + serializedName: "commandId", + type: { + name: "String" + } } } } @@ -8962,6 +9073,19 @@ export const MongoDbConnectionInfo: coreClient.CompositeMapper = { name: "String" } }, + serverVersion: { + serializedName: "serverVersion", + type: { + name: "String" + } + }, + trustServerCertificate: { + defaultValue: false, + serializedName: "trustServerCertificate", + type: { + name: "Boolean" + } + }, enforceSSL: { serializedName: "enforceSSL", type: { @@ -9008,6 +9132,18 @@ export const SqlConnectionInfo: coreClient.CompositeMapper = { }, port: { serializedName: "port", + type: { + name: "Number" + } + }, + serverVersion: { + serializedName: "serverVersion", + type: { + name: "String" + } + }, + serverBrandVersion: { + serializedName: "serverBrandVersion", type: { name: "String" } @@ -9089,6 +9225,12 @@ export const MySqlConnectionInfo: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + authentication: { + serializedName: "authentication", + type: { + name: "String" + } } } } @@ -9168,6 +9310,24 @@ export const PostgreSqlConnectionInfo: coreClient.CompositeMapper = { type: { name: "Boolean" } + }, + additionalSettings: { + serializedName: "additionalSettings", + type: { + name: "String" + } + }, + serverBrandVersion: { + serializedName: "serverBrandVersion", + type: { + name: "String" + } + }, + authentication: { + serializedName: "authentication", + type: { + name: "String" + } } } } @@ -11283,7 +11443,13 @@ export const MigrateSqlServerSqlMISyncTaskInput: coreClient.CompositeMapper = { name: "Composite", className: "MigrateSqlServerSqlMISyncTaskInput", modelProperties: { - ...SqlServerSqlMISyncTaskInput.type.modelProperties + ...SqlServerSqlMISyncTaskInput.type.modelProperties, + numberOfParallelDatabaseMigrations: { + serializedName: "numberOfParallelDatabaseMigrations", + type: { + name: "Number" + } + } } } }; diff --git a/sdk/datamigration/arm-datamigration/src/models/parameters.ts b/sdk/datamigration/arm-datamigration/src/models/parameters.ts index eab420a209c7..87e3a6fe8db4 100644 --- a/sdk/datamigration/arm-datamigration/src/models/parameters.ts +++ b/sdk/datamigration/arm-datamigration/src/models/parameters.ts @@ -118,7 +118,7 @@ export const subscriptionId: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-10-30-preview", + defaultValue: "2022-01-30-preview", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlMi.ts b/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlMi.ts index d5f565833cfa..8d2395866c09 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlMi.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlMi.ts @@ -37,7 +37,7 @@ export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi { } /** - * Retrieve the Database Migration resource. + * Retrieve the specified database migration for a given SQL Managed Instance. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param managedInstanceName @@ -57,7 +57,7 @@ export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi { } /** - * Create or Update Database Migration resource. + * Create a new database migration to a given SQL Managed Instance. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param managedInstanceName @@ -134,7 +134,7 @@ export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi { } /** - * Create or Update Database Migration resource. + * Create a new database migration to a given SQL Managed Instance. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param managedInstanceName @@ -160,7 +160,7 @@ export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi { } /** - * Stop migrations in progress for the database + * Stop in-progress database migration to SQL Managed Instance. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param managedInstanceName @@ -232,7 +232,7 @@ export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi { } /** - * Stop migrations in progress for the database + * Stop in-progress database migration to SQL Managed Instance. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param managedInstanceName @@ -258,7 +258,7 @@ export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi { } /** - * Initiate cutover for online migration in progress for the database. + * Initiate cutover for in-progress online database migration to SQL Managed Instance. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param managedInstanceName @@ -330,7 +330,7 @@ export class DatabaseMigrationsSqlMiImpl implements DatabaseMigrationsSqlMi { } /** - * Initiate cutover for online migration in progress for the database. + * Initiate cutover for in-progress online database migration to SQL Managed Instance. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param managedInstanceName diff --git a/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlVm.ts b/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlVm.ts index 81c15452c31d..b559c2824a86 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlVm.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/databaseMigrationsSqlVm.ts @@ -37,7 +37,7 @@ export class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm { } /** - * Retrieve the Database Migration resource. + * Retrieve the specified database migration for a given SQL VM. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlVirtualMachineName @@ -57,7 +57,7 @@ export class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm { } /** - * Create or Update Database Migration resource. + * Create a new database migration to a given SQL VM. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlVirtualMachineName @@ -134,7 +134,7 @@ export class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm { } /** - * Create or Update Database Migration resource. + * Create a new database migration to a given SQL VM. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlVirtualMachineName @@ -160,7 +160,7 @@ export class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm { } /** - * Stop ongoing migration for the database. + * Stop in-progress database migration to SQL VM. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlVirtualMachineName @@ -232,7 +232,7 @@ export class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm { } /** - * Stop ongoing migration for the database. + * Stop in-progress database migration to SQL VM. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlVirtualMachineName @@ -258,7 +258,7 @@ export class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm { } /** - * Cutover online migration operation for the database. + * Initiate cutover for in-progress online database migration to SQL VM. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlVirtualMachineName @@ -330,7 +330,7 @@ export class DatabaseMigrationsSqlVmImpl implements DatabaseMigrationsSqlVm { } /** - * Cutover online migration operation for the database. + * Initiate cutover for in-progress online database migration to SQL VM. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlVirtualMachineName diff --git a/sdk/datamigration/arm-datamigration/src/operations/sqlMigrationServices.ts b/sdk/datamigration/arm-datamigration/src/operations/sqlMigrationServices.ts index 18a61b1affc2..e3229e540a57 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/sqlMigrationServices.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/sqlMigrationServices.ts @@ -231,7 +231,7 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices { } /** - * Retrieve the Migration Service. + * Retrieve the Database Migration Service * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. @@ -249,7 +249,7 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices { } /** - * Create or Update SQL Migration Service. + * Create or Update Database Migration Service. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. @@ -318,7 +318,7 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices { } /** - * Create or Update SQL Migration Service. + * Create or Update Database Migration Service. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. @@ -341,7 +341,7 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices { } /** - * Delete SQL Migration Service. + * Delete Database Migration Service. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. @@ -403,7 +403,7 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices { } /** - * Delete SQL Migration Service. + * Delete Database Migration Service. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. @@ -423,7 +423,7 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices { } /** - * Update SQL Migration Service. + * Update Database Migration Service. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. @@ -492,7 +492,7 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices { } /** - * Update SQL Migration Service. + * Update Database Migration Service. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. @@ -607,7 +607,8 @@ export class SqlMigrationServicesImpl implements SqlMigrationServices { } /** - * Retrieve the Monitoring Data. + * Retrieve the registered Integration Runtime nodes and their monitoring data for a given Database + * Migration Service. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlMi.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlMi.ts index cea3cd271004..92a6213720ac 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlMi.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlMi.ts @@ -21,7 +21,7 @@ import { /** Interface representing a DatabaseMigrationsSqlMi. */ export interface DatabaseMigrationsSqlMi { /** - * Retrieve the Database Migration resource. + * Retrieve the specified database migration for a given SQL Managed Instance. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param managedInstanceName @@ -35,7 +35,7 @@ export interface DatabaseMigrationsSqlMi { options?: DatabaseMigrationsSqlMiGetOptionalParams ): Promise; /** - * Create or Update Database Migration resource. + * Create a new database migration to a given SQL Managed Instance. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param managedInstanceName @@ -56,7 +56,7 @@ export interface DatabaseMigrationsSqlMi { > >; /** - * Create or Update Database Migration resource. + * Create a new database migration to a given SQL Managed Instance. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param managedInstanceName @@ -72,7 +72,7 @@ export interface DatabaseMigrationsSqlMi { options?: DatabaseMigrationsSqlMiCreateOrUpdateOptionalParams ): Promise; /** - * Stop migrations in progress for the database + * Stop in-progress database migration to SQL Managed Instance. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param managedInstanceName @@ -88,7 +88,7 @@ export interface DatabaseMigrationsSqlMi { options?: DatabaseMigrationsSqlMiCancelOptionalParams ): Promise, void>>; /** - * Stop migrations in progress for the database + * Stop in-progress database migration to SQL Managed Instance. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param managedInstanceName @@ -104,7 +104,7 @@ export interface DatabaseMigrationsSqlMi { options?: DatabaseMigrationsSqlMiCancelOptionalParams ): Promise; /** - * Initiate cutover for online migration in progress for the database. + * Initiate cutover for in-progress online database migration to SQL Managed Instance. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param managedInstanceName @@ -120,7 +120,7 @@ export interface DatabaseMigrationsSqlMi { options?: DatabaseMigrationsSqlMiCutoverOptionalParams ): Promise, void>>; /** - * Initiate cutover for online migration in progress for the database. + * Initiate cutover for in-progress online database migration to SQL Managed Instance. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param managedInstanceName diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlVm.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlVm.ts index e2caa5cbd00c..732c62005d3b 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlVm.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/databaseMigrationsSqlVm.ts @@ -21,7 +21,7 @@ import { /** Interface representing a DatabaseMigrationsSqlVm. */ export interface DatabaseMigrationsSqlVm { /** - * Retrieve the Database Migration resource. + * Retrieve the specified database migration for a given SQL VM. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlVirtualMachineName @@ -35,7 +35,7 @@ export interface DatabaseMigrationsSqlVm { options?: DatabaseMigrationsSqlVmGetOptionalParams ): Promise; /** - * Create or Update Database Migration resource. + * Create a new database migration to a given SQL VM. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlVirtualMachineName @@ -56,7 +56,7 @@ export interface DatabaseMigrationsSqlVm { > >; /** - * Create or Update Database Migration resource. + * Create a new database migration to a given SQL VM. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlVirtualMachineName @@ -72,7 +72,7 @@ export interface DatabaseMigrationsSqlVm { options?: DatabaseMigrationsSqlVmCreateOrUpdateOptionalParams ): Promise; /** - * Stop ongoing migration for the database. + * Stop in-progress database migration to SQL VM. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlVirtualMachineName @@ -88,7 +88,7 @@ export interface DatabaseMigrationsSqlVm { options?: DatabaseMigrationsSqlVmCancelOptionalParams ): Promise, void>>; /** - * Stop ongoing migration for the database. + * Stop in-progress database migration to SQL VM. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlVirtualMachineName @@ -104,7 +104,7 @@ export interface DatabaseMigrationsSqlVm { options?: DatabaseMigrationsSqlVmCancelOptionalParams ): Promise; /** - * Cutover online migration operation for the database. + * Initiate cutover for in-progress online database migration to SQL VM. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlVirtualMachineName @@ -120,7 +120,7 @@ export interface DatabaseMigrationsSqlVm { options?: DatabaseMigrationsSqlVmCutoverOptionalParams ): Promise, void>>; /** - * Cutover online migration operation for the database. + * Initiate cutover for in-progress online database migration to SQL VM. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlVirtualMachineName diff --git a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/sqlMigrationServices.ts b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/sqlMigrationServices.ts index 57daeb82095f..1f1046e125c7 100644 --- a/sdk/datamigration/arm-datamigration/src/operationsInterfaces/sqlMigrationServices.ts +++ b/sdk/datamigration/arm-datamigration/src/operationsInterfaces/sqlMigrationServices.ts @@ -67,7 +67,7 @@ export interface SqlMigrationServices { options?: SqlMigrationServicesListBySubscriptionOptionalParams ): PagedAsyncIterableIterator; /** - * Retrieve the Migration Service. + * Retrieve the Database Migration Service * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. @@ -79,7 +79,7 @@ export interface SqlMigrationServices { options?: SqlMigrationServicesGetOptionalParams ): Promise; /** - * Create or Update SQL Migration Service. + * Create or Update Database Migration Service. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. @@ -98,7 +98,7 @@ export interface SqlMigrationServices { > >; /** - * Create or Update SQL Migration Service. + * Create or Update Database Migration Service. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. @@ -112,7 +112,7 @@ export interface SqlMigrationServices { options?: SqlMigrationServicesCreateOrUpdateOptionalParams ): Promise; /** - * Delete SQL Migration Service. + * Delete Database Migration Service. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. @@ -124,7 +124,7 @@ export interface SqlMigrationServices { options?: SqlMigrationServicesDeleteOptionalParams ): Promise, void>>; /** - * Delete SQL Migration Service. + * Delete Database Migration Service. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. @@ -136,7 +136,7 @@ export interface SqlMigrationServices { options?: SqlMigrationServicesDeleteOptionalParams ): Promise; /** - * Update SQL Migration Service. + * Update Database Migration Service. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. @@ -155,7 +155,7 @@ export interface SqlMigrationServices { > >; /** - * Update SQL Migration Service. + * Update Database Migration Service. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. @@ -209,7 +209,8 @@ export interface SqlMigrationServices { options?: SqlMigrationServicesDeleteNodeOptionalParams ): Promise; /** - * Retrieve the Monitoring Data. + * Retrieve the registered Integration Runtime nodes and their monitoring data for a given Database + * Migration Service. * @param resourceGroupName Name of the resource group that contains the resource. You can obtain this * value from the Azure Resource Manager API or the portal. * @param sqlMigrationServiceName Name of the SQL Migration Service. diff --git a/sdk/datamigration/arm-datamigration/tsconfig.json b/sdk/datamigration/arm-datamigration/tsconfig.json index cdd6536f04f7..3e6ae96443f3 100644 --- a/sdk/datamigration/arm-datamigration/tsconfig.json +++ b/sdk/datamigration/arm-datamigration/tsconfig.json @@ -9,12 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { "@azure/arm-datamigration": ["./src/index"] } + "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file