diff --git a/sdk/datamigration/arm-datamigration/LICENSE.txt b/sdk/datamigration/arm-datamigration/LICENSE.txt index b73b4a1293c3..2d3163745319 100644 --- a/sdk/datamigration/arm-datamigration/LICENSE.txt +++ b/sdk/datamigration/arm-datamigration/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/datamigration/arm-datamigration/README.md b/sdk/datamigration/arm-datamigration/README.md index d6b3a84c59a5..09a7c6cb3dc2 100644 --- a/sdk/datamigration/arm-datamigration/README.md +++ b/sdk/datamigration/arm-datamigration/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-datamigration ### How to use -#### nodejs - Authentication, client creation and listSkus resourceSkus as an example written in TypeScript. +#### nodejs - client creation and listSkus resourceSkus as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { DataMigrationServiceClient, DataMigrationServiceModels, DataMigrationServiceMappers } from "@azure/arm-datamigration"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { DataMigrationServiceClient } = require("@azure/arm-datamigration"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { @@ -96,4 +95,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fdatamigration%2Farm-datamigration%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/datamigration/arm-datamigration/README.png) diff --git a/sdk/datamigration/arm-datamigration/rollup.config.js b/sdk/datamigration/arm-datamigration/rollup.config.js index 2141aaf9bde7..2a369747093e 100644 --- a/sdk/datamigration/arm-datamigration/rollup.config.js +++ b/sdk/datamigration/arm-datamigration/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/datamigration/arm-datamigration/src/dataMigrationServiceClient.ts b/sdk/datamigration/arm-datamigration/src/dataMigrationServiceClient.ts index 62d5230fee13..fe65e734a794 100644 --- a/sdk/datamigration/arm-datamigration/src/dataMigrationServiceClient.ts +++ b/sdk/datamigration/arm-datamigration/src/dataMigrationServiceClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/datamigration/arm-datamigration/src/dataMigrationServiceClientContext.ts b/sdk/datamigration/arm-datamigration/src/dataMigrationServiceClientContext.ts index 6a0937753ff2..94099f2d53a9 100644 --- a/sdk/datamigration/arm-datamigration/src/dataMigrationServiceClientContext.ts +++ b/sdk/datamigration/arm-datamigration/src/dataMigrationServiceClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -13,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-datamigration"; -const packageVersion = "1.0.1"; +const packageVersion = "2.0.0"; export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/sdk/datamigration/arm-datamigration/src/models/filesMappers.ts b/sdk/datamigration/arm-datamigration/src/models/filesMappers.ts index 9e4af9dbd9b4..67f5fe347987 100644 --- a/sdk/datamigration/arm-datamigration/src/models/filesMappers.ts +++ b/sdk/datamigration/arm-datamigration/src/models/filesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -109,6 +109,7 @@ export { MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel, MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel, MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput, + MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, diff --git a/sdk/datamigration/arm-datamigration/src/models/index.ts b/sdk/datamigration/arm-datamigration/src/models/index.ts index f2255ca5eb5d..cb8b219086d4 100644 --- a/sdk/datamigration/arm-datamigration/src/models/index.ts +++ b/sdk/datamigration/arm-datamigration/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -517,6 +517,14 @@ export interface PostgreSqlConnectionInfo { * Port for Server */ port: number; + /** + * Whether to encrypt the connection. Default value: true. + */ + encryptConnection?: boolean; + /** + * Whether to trust the server certificate. Default value: false. + */ + trustServerCertificate?: boolean; } /** @@ -969,10 +977,19 @@ export interface MongoDbError { type?: MongoDbErrorType; } +/** + * Contains the possible cases for MongoDbProgress. + */ +export type MongoDbProgressUnion = MongoDbProgress | MongoDbCollectionProgress | MongoDbDatabaseProgress | MongoDbMigrationProgress; + /** * Base class for MongoDB migration outputs */ export interface MongoDbProgress { + /** + * Polymorphic Discriminator + */ + resultType: "MongoDbProgress"; /** * The number of document bytes copied during the Copying stage */ @@ -1018,10 +1035,6 @@ export interface MongoDbProgress { * name. For a database, this is the database name. For the overall migration, this is null. */ qualifiedName?: string; - /** - * The type of progress object. Possible values include: 'Migration', 'Database', 'Collection' - */ - resultType: ResultType; /** * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', 'Restarting', * 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', 'Failed' @@ -1042,13 +1055,141 @@ export interface MongoDbProgress { /** * Describes the progress of a collection */ -export interface MongoDbCollectionProgress extends MongoDbProgress { +export interface MongoDbCollectionProgress { + /** + * Polymorphic Discriminator + */ + resultType: "Collection"; + /** + * The number of document bytes copied during the Copying stage + */ + bytesCopied: number; + /** + * The number of documents copied during the Copying stage + */ + documentsCopied: number; + /** + * The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) + */ + elapsedTime: string; + /** + * The errors and warnings that have occurred for the current object. The keys are the error + * codes. + */ + errors: { [propertyName: string]: MongoDbError }; + /** + * The number of oplog events awaiting replay + */ + eventsPending: number; + /** + * The number of oplog events replayed so far + */ + eventsReplayed: number; + /** + * The timestamp of the last oplog event received, or null if no oplog event has been received + * yet + */ + lastEventTime?: Date; + /** + * The timestamp of the last oplog event replayed, or null if no oplog event has been replayed + * yet + */ + lastReplayTime?: Date; + /** + * The name of the progress object. For a collection, this is the unqualified collection name. + * For a database, this is the database name. For the overall migration, this is null. + */ + name?: string; + /** + * The qualified name of the progress object. For a collection, this is the database-qualified + * name. For a database, this is the database name. For the overall migration, this is null. + */ + qualifiedName?: string; + /** + * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', 'Restarting', + * 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', 'Failed' + */ + state: MongoDbMigrationState; + /** + * The total number of document bytes on the source at the beginning of the Copying stage, or -1 + * if the total size was unknown + */ + totalBytes: number; + /** + * The total number of documents on the source at the beginning of the Copying stage, or -1 if + * the total count was unknown + */ + totalDocuments: number; } /** * Describes the progress of a database */ -export interface MongoDbDatabaseProgress extends MongoDbProgress { +export interface MongoDbDatabaseProgress { + /** + * Polymorphic Discriminator + */ + resultType: "Database"; + /** + * The number of document bytes copied during the Copying stage + */ + bytesCopied: number; + /** + * The number of documents copied during the Copying stage + */ + documentsCopied: number; + /** + * The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) + */ + elapsedTime: string; + /** + * The errors and warnings that have occurred for the current object. The keys are the error + * codes. + */ + errors: { [propertyName: string]: MongoDbError }; + /** + * The number of oplog events awaiting replay + */ + eventsPending: number; + /** + * The number of oplog events replayed so far + */ + eventsReplayed: number; + /** + * The timestamp of the last oplog event received, or null if no oplog event has been received + * yet + */ + lastEventTime?: Date; + /** + * The timestamp of the last oplog event replayed, or null if no oplog event has been replayed + * yet + */ + lastReplayTime?: Date; + /** + * The name of the progress object. For a collection, this is the unqualified collection name. + * For a database, this is the database name. For the overall migration, this is null. + */ + name?: string; + /** + * The qualified name of the progress object. For a collection, this is the database-qualified + * name. For a database, this is the database name. For the overall migration, this is null. + */ + qualifiedName?: string; + /** + * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', 'Restarting', + * 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', 'Failed' + */ + state: MongoDbMigrationState; + /** + * The total number of document bytes on the source at the beginning of the Copying stage, or -1 + * if the total size was unknown + */ + totalBytes: number; + /** + * The total number of documents on the source at the beginning of the Copying stage, or -1 if + * the total count was unknown + */ + totalDocuments: number; /** * The progress of the collections in the database. The keys are the unqualified names of the * collections @@ -1059,7 +1200,71 @@ export interface MongoDbDatabaseProgress extends MongoDbProgress { /** * Describes the progress of the overall migration */ -export interface MongoDbMigrationProgress extends MongoDbProgress { +export interface MongoDbMigrationProgress { + /** + * Polymorphic Discriminator + */ + resultType: "Migration"; + /** + * The number of document bytes copied during the Copying stage + */ + bytesCopied: number; + /** + * The number of documents copied during the Copying stage + */ + documentsCopied: number; + /** + * The elapsed time in the format [ddd.]hh:mm:ss[.fffffff] (i.e. TimeSpan format) + */ + elapsedTime: string; + /** + * The errors and warnings that have occurred for the current object. The keys are the error + * codes. + */ + errors: { [propertyName: string]: MongoDbError }; + /** + * The number of oplog events awaiting replay + */ + eventsPending: number; + /** + * The number of oplog events replayed so far + */ + eventsReplayed: number; + /** + * The timestamp of the last oplog event received, or null if no oplog event has been received + * yet + */ + lastEventTime?: Date; + /** + * The timestamp of the last oplog event replayed, or null if no oplog event has been replayed + * yet + */ + lastReplayTime?: Date; + /** + * The name of the progress object. For a collection, this is the unqualified collection name. + * For a database, this is the database name. For the overall migration, this is null. + */ + name?: string; + /** + * The qualified name of the progress object. For a collection, this is the database-qualified + * name. For a database, this is the database name. For the overall migration, this is null. + */ + qualifiedName?: string; + /** + * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', 'Restarting', + * 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', 'Failed' + */ + state: MongoDbMigrationState; + /** + * The total number of document bytes on the source at the beginning of the Copying stage, or -1 + * if the total size was unknown + */ + totalBytes: number; + /** + * The total number of documents on the source at the beginning of the Copying stage, or -1 if + * the total count was unknown + */ + totalDocuments: number; /** * The progress of the databases in the migration. The keys are the names of the databases */ @@ -1849,7 +2054,8 @@ export interface MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel { /** * Migration state that this database is in. Possible values include: 'UNDEFINED', 'CONFIGURING', * 'INITIALIAZING', 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', - * 'CANCELLING', 'CANCELLED', 'FAILED' + * 'CANCELLING', 'CANCELLED', 'FAILED', 'VALIDATING', 'VALIDATION_COMPLETE', 'VALIDATION_FAILED', + * 'RESTORE_IN_PROGRESS', 'RESTORE_COMPLETED', 'BACKUP_IN_PROGRESS', 'BACKUP_COMPLETED' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly migrationState?: SyncDatabaseMigrationReportingState; @@ -2171,7 +2377,8 @@ export interface MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLeve /** * Migration state that this database is in. Possible values include: 'UNDEFINED', 'CONFIGURING', * 'INITIALIAZING', 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', - * 'CANCELLING', 'CANCELLED', 'FAILED' + * 'CANCELLING', 'CANCELLED', 'FAILED', 'VALIDATING', 'VALIDATION_COMPLETE', 'VALIDATION_FAILED', + * 'RESTORE_IN_PROGRESS', 'RESTORE_COMPLETED', 'BACKUP_IN_PROGRESS', 'BACKUP_COMPLETED' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly migrationState?: SyncDatabaseMigrationReportingState; @@ -2275,6 +2482,34 @@ export interface MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLev * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly targetServer?: string; + /** + * Source server type. Possible values include: 'Access', 'DB2', 'MySQL', 'Oracle', 'SQL', + * 'Sybase', 'PostgreSQL', 'MongoDB', 'SQLRDS', 'MySQLRDS', 'PostgreSQLRDS' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly sourceServerType?: ScenarioSource; + /** + * Target server type. Possible values include: 'SQLServer', 'SQLDB', 'SQLDW', 'SQLMI', + * 'AzureDBForMySql', 'AzureDBForPostgresSQL', 'MongoDB' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly targetServerType?: ScenarioTarget; + /** + * Migration status. Possible values include: 'UNDEFINED', 'VALIDATING', 'PENDING', 'COMPLETE', + * 'ACTION_REQUIRED', 'FAILED' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly state?: ReplicateMigrationState; +} + +/** + * Selected tables for the migration + */ +export interface MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput { + /** + * Name of the table to migrate + */ + name?: string; } /** @@ -2302,6 +2537,10 @@ export interface MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput { * Target settings to tune target endpoint migration behavior */ targetSetting?: { [propertyName: string]: string }; + /** + * Tables selected for migration + */ + selectedTables?: MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput[]; } /** @@ -2331,7 +2570,7 @@ export interface MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties { /** * Polymorphic Discriminator */ - taskType: "Migrate.PostgreSql.AzureDbForPostgreSql.Sync"; + taskType: "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2"; /** * Array of errors. This is ignored if submitted. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -2539,7 +2778,8 @@ export interface MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel { /** * Migration state that this database is in. Possible values include: 'UNDEFINED', 'CONFIGURING', * 'INITIALIAZING', 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', - * 'CANCELLING', 'CANCELLED', 'FAILED' + * 'CANCELLING', 'CANCELLED', 'FAILED', 'VALIDATING', 'VALIDATION_COMPLETE', 'VALIDATION_FAILED', + * 'RESTORE_IN_PROGRESS', 'RESTORE_COMPLETED', 'BACKUP_IN_PROGRESS', 'BACKUP_COMPLETED' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly migrationState?: SyncDatabaseMigrationReportingState; @@ -2669,6 +2909,10 @@ export interface MigrateMySqlAzureDbForMySqlSyncDatabaseInput { * Target settings to tune target endpoint migration behavior */ targetSetting?: { [propertyName: string]: string }; + /** + * Mapping of source to target tables + */ + tableMap?: { [propertyName: string]: string }; } /** @@ -2906,7 +3150,8 @@ export interface MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel { /** * Migration state that this database is in. Possible values include: 'UNDEFINED', 'CONFIGURING', * 'INITIALIAZING', 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', - * 'CANCELLING', 'CANCELLED', 'FAILED' + * 'CANCELLING', 'CANCELLED', 'FAILED', 'VALIDATING', 'VALIDATION_COMPLETE', 'VALIDATION_FAILED', + * 'RESTORE_IN_PROGRESS', 'RESTORE_COMPLETED', 'BACKUP_IN_PROGRESS', 'BACKUP_COMPLETED' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly migrationState?: SyncDatabaseMigrationReportingState; @@ -4549,7 +4794,7 @@ export interface MigrateMongoDbTaskProperties { /** * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly output?: MongoDbProgress[]; + readonly output?: MongoDbProgressUnion[]; } /** @@ -6203,6 +6448,10 @@ export interface DataMigrationService extends TrackedResource { * be joined */ virtualSubnetId: string; + /** + * The ID of the Microsoft.Network/networkInterfaces resource which the service have + */ + virtualNicId?: string; /** * Service SKU */ @@ -7754,6 +8003,16 @@ export interface TasksDeleteMethodOptionalParams extends msRest.RequestOptionsBa deleteRunningTasks?: boolean; } +/** + * Optional Parameters. + */ +export interface TasksListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter tasks by task type + */ + taskType?: string; +} + /** * Optional Parameters. */ @@ -7784,6 +8043,16 @@ export interface ServiceTasksDeleteMethodOptionalParams extends msRest.RequestOp deleteRunningTasks?: boolean; } +/** + * Optional Parameters. + */ +export interface ServiceTasksListNextOptionalParams extends msRest.RequestOptionsBase { + /** + * Filter tasks by task type + */ + taskType?: string; +} + /** * Optional Parameters. */ @@ -8026,11 +8295,40 @@ export type SyncTableMigrationState = 'BEFORE_LOAD' | 'FULL_LOAD' | 'COMPLETED' /** * Defines values for SyncDatabaseMigrationReportingState. * Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', 'RUNNING', - * 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED' + * 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED', + * 'VALIDATING', 'VALIDATION_COMPLETE', 'VALIDATION_FAILED', 'RESTORE_IN_PROGRESS', + * 'RESTORE_COMPLETED', 'BACKUP_IN_PROGRESS', 'BACKUP_COMPLETED' * @readonly * @enum {string} */ -export type SyncDatabaseMigrationReportingState = 'UNDEFINED' | 'CONFIGURING' | 'INITIALIAZING' | 'STARTING' | 'RUNNING' | 'READY_TO_COMPLETE' | 'COMPLETING' | 'COMPLETE' | 'CANCELLING' | 'CANCELLED' | 'FAILED'; +export type SyncDatabaseMigrationReportingState = 'UNDEFINED' | 'CONFIGURING' | 'INITIALIAZING' | 'STARTING' | 'RUNNING' | 'READY_TO_COMPLETE' | 'COMPLETING' | 'COMPLETE' | 'CANCELLING' | 'CANCELLED' | 'FAILED' | 'VALIDATING' | 'VALIDATION_COMPLETE' | 'VALIDATION_FAILED' | 'RESTORE_IN_PROGRESS' | 'RESTORE_COMPLETED' | 'BACKUP_IN_PROGRESS' | 'BACKUP_COMPLETED'; + +/** + * Defines values for ReplicateMigrationState. + * Possible values include: 'UNDEFINED', 'VALIDATING', 'PENDING', 'COMPLETE', 'ACTION_REQUIRED', + * 'FAILED' + * @readonly + * @enum {string} + */ +export type ReplicateMigrationState = 'UNDEFINED' | 'VALIDATING' | 'PENDING' | 'COMPLETE' | 'ACTION_REQUIRED' | 'FAILED'; + +/** + * Defines values for ScenarioTarget. + * Possible values include: 'SQLServer', 'SQLDB', 'SQLDW', 'SQLMI', 'AzureDBForMySql', + * 'AzureDBForPostgresSQL', 'MongoDB' + * @readonly + * @enum {string} + */ +export type ScenarioTarget = 'SQLServer' | 'SQLDB' | 'SQLDW' | 'SQLMI' | 'AzureDBForMySql' | 'AzureDBForPostgresSQL' | 'MongoDB'; + +/** + * Defines values for ScenarioSource. + * Possible values include: 'Access', 'DB2', 'MySQL', 'Oracle', 'SQL', 'Sybase', 'PostgreSQL', + * 'MongoDB', 'SQLRDS', 'MySQLRDS', 'PostgreSQLRDS' + * @readonly + * @enum {string} + */ +export type ScenarioSource = 'Access' | 'DB2' | 'MySQL' | 'Oracle' | 'SQL' | 'Sybase' | 'PostgreSQL' | 'MongoDB' | 'SQLRDS' | 'MySQLRDS' | 'PostgreSQLRDS'; /** * Defines values for ValidationStatus. @@ -8280,14 +8578,6 @@ export type DataMigrationResultCode = 'Initial' | 'Completed' | 'ObjectNotExists */ export type ErrorType = 'Default' | 'Warning' | 'Error'; -/** - * Defines values for ResultType. - * Possible values include: 'Migration', 'Database', 'Collection' - * @readonly - * @enum {string} - */ -export type ResultType = 'Migration' | 'Database' | 'Collection'; - /** * Contains response data for the listSkus operation. */ diff --git a/sdk/datamigration/arm-datamigration/src/models/mappers.ts b/sdk/datamigration/arm-datamigration/src/models/mappers.ts index f2bf55c66195..05648468e449 100644 --- a/sdk/datamigration/arm-datamigration/src/models/mappers.ts +++ b/sdk/datamigration/arm-datamigration/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -711,6 +711,20 @@ export const PostgreSqlConnectionInfo: msRest.CompositeMapper = { type: { name: "Number" } + }, + encryptConnection: { + serializedName: "encryptConnection", + defaultValue: true, + type: { + name: "Boolean" + } + }, + trustServerCertificate: { + serializedName: "trustServerCertificate", + defaultValue: false, + type: { + name: "Boolean" + } } } } @@ -1355,6 +1369,11 @@ export const MongoDbProgress: msRest.CompositeMapper = { serializedName: "MongoDbProgress", type: { name: "Composite", + polymorphicDiscriminator: { + serializedName: "resultType", + clientName: "resultType" + }, + uberParent: "MongoDbProgress", className: "MongoDbProgress", modelProperties: { bytesCopied: { @@ -1429,13 +1448,6 @@ export const MongoDbProgress: msRest.CompositeMapper = { name: "String" } }, - resultType: { - required: true, - serializedName: "resultType", - type: { - name: "String" - } - }, state: { required: true, serializedName: "state", @@ -1456,6 +1468,13 @@ export const MongoDbProgress: msRest.CompositeMapper = { type: { name: "Number" } + }, + resultType: { + required: true, + serializedName: "resultType", + type: { + name: "String" + } } } } @@ -1465,6 +1484,8 @@ export const MongoDbCollectionProgress: msRest.CompositeMapper = { serializedName: "Collection", type: { name: "Composite", + polymorphicDiscriminator: MongoDbProgress.type.polymorphicDiscriminator, + uberParent: "MongoDbProgress", className: "MongoDbCollectionProgress", modelProperties: { ...MongoDbProgress.type.modelProperties @@ -1476,6 +1497,8 @@ export const MongoDbDatabaseProgress: msRest.CompositeMapper = { serializedName: "Database", type: { name: "Composite", + polymorphicDiscriminator: MongoDbProgress.type.polymorphicDiscriminator, + uberParent: "MongoDbProgress", className: "MongoDbDatabaseProgress", modelProperties: { ...MongoDbProgress.type.modelProperties, @@ -1499,6 +1522,8 @@ export const MongoDbMigrationProgress: msRest.CompositeMapper = { serializedName: "Migration", type: { name: "Composite", + polymorphicDiscriminator: MongoDbProgress.type.polymorphicDiscriminator, + uberParent: "MongoDbProgress", className: "MongoDbMigrationProgress", modelProperties: { ...MongoDbProgress.type.modelProperties, @@ -3214,6 +3239,43 @@ export const MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel: type: { name: "String" } + }, + sourceServerType: { + readOnly: true, + serializedName: "sourceServerType", + type: { + name: "String" + } + }, + targetServerType: { + readOnly: true, + serializedName: "targetServerType", + type: { + name: "String" + } + }, + state: { + readOnly: true, + serializedName: "state", + type: { + name: "String" + } + } + } + } +}; + +export const MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput: msRest.CompositeMapper = { + serializedName: "MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput", + type: { + name: "Composite", + className: "MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } } } } @@ -3269,6 +3331,18 @@ export const MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput: msRest.Comp } } } + }, + selectedTables: { + serializedName: "selectedTables", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput" + } + } + } } } } @@ -3314,7 +3388,7 @@ export const MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput: msRest.Composit }; export const MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties: msRest.CompositeMapper = { - serializedName: "Migrate.PostgreSql.AzureDbForPostgreSql.Sync", + serializedName: "Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2", type: { name: "Composite", polymorphicDiscriminator: ProjectTaskProperties.type.polymorphicDiscriminator, @@ -3754,6 +3828,17 @@ export const MigrateMySqlAzureDbForMySqlSyncDatabaseInput: msRest.CompositeMappe } } } + }, + tableMap: { + serializedName: "tableMap", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } } } } @@ -8662,6 +8747,12 @@ export const DataMigrationService: msRest.CompositeMapper = { name: "String" } }, + virtualNicId: { + serializedName: "properties.virtualNicId", + type: { + name: "String" + } + }, sku: { serializedName: "sku", type: { @@ -11067,6 +11158,10 @@ export const discriminators = { 'ProjectTaskProperties.Migrate.Ssis' : MigrateSsisTaskProperties, 'ProjectTaskProperties.GetTDECertificates.Sql' : GetTdeCertificatesSqlTaskProperties, 'ProjectTaskProperties.Validate.Oracle.AzureDbPostgreSql.Sync' : ValidateOracleAzureDbForPostgreSqlSyncTaskProperties, + 'MongoDbProgress.Collection' : MongoDbCollectionProgress, + 'MongoDbProgress.Database' : MongoDbDatabaseProgress, + 'MongoDbProgress' : MongoDbProgress, + 'MongoDbProgress.Migration' : MongoDbMigrationProgress, 'ProjectTaskProperties.Validate.MongoDb' : ValidateMongoDbTaskProperties, 'ProjectTaskProperties.ValidateMigrationInput.SqlServer.AzureSqlDbMI.Sync.LRS' : ValidateMigrationInputSqlServerSqlMISyncTaskProperties, 'ProjectTaskProperties.ValidateMigrationInput.SqlServer.AzureSqlDbMI' : ValidateMigrationInputSqlServerSqlMITaskProperties, @@ -11084,7 +11179,7 @@ export const discriminators = { 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput.DatabaseLevelOutput' : MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel, 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput.MigrationLevelOutput' : MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel, 'MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput' : MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, - 'ProjectTaskProperties.Migrate.PostgreSql.AzureDbForPostgreSql.Sync' : MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, + 'ProjectTaskProperties.Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2' : MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties, 'MigrateMySqlAzureDbForMySqlSyncTaskOutput.DatabaseLevelErrorOutput' : MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError, 'MigrateMySqlAzureDbForMySqlSyncTaskOutput.ErrorOutput' : MigrateMySqlAzureDbForMySqlSyncTaskOutputError, 'MigrateMySqlAzureDbForMySqlSyncTaskOutput.TableLevelOutput' : MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel, diff --git a/sdk/datamigration/arm-datamigration/src/models/operationsMappers.ts b/sdk/datamigration/arm-datamigration/src/models/operationsMappers.ts index 3074236f242d..44f884966375 100644 --- a/sdk/datamigration/arm-datamigration/src/models/operationsMappers.ts +++ b/sdk/datamigration/arm-datamigration/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/datamigration/arm-datamigration/src/models/parameters.ts b/sdk/datamigration/arm-datamigration/src/models/parameters.ts index 1e3467fb21b5..b9147f6db7e9 100644 --- a/sdk/datamigration/arm-datamigration/src/models/parameters.ts +++ b/sdk/datamigration/arm-datamigration/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/datamigration/arm-datamigration/src/models/projectsMappers.ts b/sdk/datamigration/arm-datamigration/src/models/projectsMappers.ts index aff2b842cacf..80703e2bf9f2 100644 --- a/sdk/datamigration/arm-datamigration/src/models/projectsMappers.ts +++ b/sdk/datamigration/arm-datamigration/src/models/projectsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -107,6 +107,7 @@ export { MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel, MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel, MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput, + MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, diff --git a/sdk/datamigration/arm-datamigration/src/models/resourceSkusMappers.ts b/sdk/datamigration/arm-datamigration/src/models/resourceSkusMappers.ts index 958464b4952f..2fb59c43ca30 100644 --- a/sdk/datamigration/arm-datamigration/src/models/resourceSkusMappers.ts +++ b/sdk/datamigration/arm-datamigration/src/models/resourceSkusMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/datamigration/arm-datamigration/src/models/serviceTasksMappers.ts b/sdk/datamigration/arm-datamigration/src/models/serviceTasksMappers.ts index 17dccc4b299d..50e7a5bdab49 100644 --- a/sdk/datamigration/arm-datamigration/src/models/serviceTasksMappers.ts +++ b/sdk/datamigration/arm-datamigration/src/models/serviceTasksMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -107,6 +107,7 @@ export { MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel, MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel, MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput, + MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, diff --git a/sdk/datamigration/arm-datamigration/src/models/servicesMappers.ts b/sdk/datamigration/arm-datamigration/src/models/servicesMappers.ts index 7d444195a34e..4bdf780d5398 100644 --- a/sdk/datamigration/arm-datamigration/src/models/servicesMappers.ts +++ b/sdk/datamigration/arm-datamigration/src/models/servicesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -112,6 +112,7 @@ export { MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel, MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel, MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput, + MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, diff --git a/sdk/datamigration/arm-datamigration/src/models/tasksMappers.ts b/sdk/datamigration/arm-datamigration/src/models/tasksMappers.ts index 17dccc4b299d..50e7a5bdab49 100644 --- a/sdk/datamigration/arm-datamigration/src/models/tasksMappers.ts +++ b/sdk/datamigration/arm-datamigration/src/models/tasksMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -107,6 +107,7 @@ export { MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel, MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel, MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput, + MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, diff --git a/sdk/datamigration/arm-datamigration/src/models/usagesMappers.ts b/sdk/datamigration/arm-datamigration/src/models/usagesMappers.ts index f66421c5bc45..d75e3333a441 100644 --- a/sdk/datamigration/arm-datamigration/src/models/usagesMappers.ts +++ b/sdk/datamigration/arm-datamigration/src/models/usagesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/datamigration/arm-datamigration/src/operations/files.ts b/sdk/datamigration/arm-datamigration/src/operations/files.ts index 14df112b639c..347935642889 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/files.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/files.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -564,6 +563,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/datamigration/arm-datamigration/src/operations/index.ts b/sdk/datamigration/arm-datamigration/src/operations/index.ts index 2ffe1518b219..d8c7ca5551dd 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/index.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/datamigration/arm-datamigration/src/operations/operations.ts b/sdk/datamigration/arm-datamigration/src/operations/operations.ts index 66ba9b562856..55efafa2429b 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/operations.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -110,6 +109,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/datamigration/arm-datamigration/src/operations/projects.ts b/sdk/datamigration/arm-datamigration/src/operations/projects.ts index e4ea787a0759..97807a9a8768 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/projects.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/projects.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -406,6 +405,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/datamigration/arm-datamigration/src/operations/resourceSkus.ts b/sdk/datamigration/arm-datamigration/src/operations/resourceSkus.ts index 55ef48a49e45..6695659989ef 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/resourceSkus.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/resourceSkus.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -113,6 +112,9 @@ const listSkusNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/datamigration/arm-datamigration/src/operations/serviceTasks.ts b/sdk/datamigration/arm-datamigration/src/operations/serviceTasks.ts index 562b8fa4dc8a..56ef4769a12a 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/serviceTasks.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/serviceTasks.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -273,7 +272,7 @@ export class ServiceTasks { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.ServiceTasksListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -284,8 +283,8 @@ export class ServiceTasks { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.ServiceTasksListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.ServiceTasksListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -479,6 +478,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.taskType + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/datamigration/arm-datamigration/src/operations/services.ts b/sdk/datamigration/arm-datamigration/src/operations/services.ts index 2259b48ecb34..afa9c394b375 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/services.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/services.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -878,6 +877,9 @@ const listSkusNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -899,6 +901,9 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], @@ -920,6 +925,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/datamigration/arm-datamigration/src/operations/tasks.ts b/sdk/datamigration/arm-datamigration/src/operations/tasks.ts index be0221a57d87..fa6ea34a801c 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/tasks.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/tasks.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -340,7 +339,7 @@ export class Tasks { * @param [options] The optional parameters * @returns Promise */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listNext(nextPageLink: string, options?: Models.TasksListNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -351,8 +350,8 @@ export class Tasks { * @param options The optional parameters * @param callback The callback */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: Models.TasksListNextOptionalParams, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: Models.TasksListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -586,6 +585,10 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.taskType + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/datamigration/arm-datamigration/src/operations/usages.ts b/sdk/datamigration/arm-datamigration/src/operations/usages.ts index d84ce8f2c577..2e9a8643dda7 100644 --- a/sdk/datamigration/arm-datamigration/src/operations/usages.ts +++ b/sdk/datamigration/arm-datamigration/src/operations/usages.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -120,6 +119,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ],