From d30630b78b1f03fca101e65fcb302be82528e9ca Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 28 Jun 2021 06:15:14 +0000 Subject: [PATCH] CodeGen from PR 15001 in Azure/azure-rest-api-specs Merge e8f1edfd9b18970a5cd22a9d77dcb3fec8782205 into 3cf8aa90fbdf15379f62a1e8e0c3dcbd9c4d46af --- .../arm-datamigration/LICENSE.txt | 2 +- sdk/datamigration/arm-datamigration/README.md | 9 +- .../arm-datamigration/package.json | 2 +- .../arm-datamigration/rollup.config.js | 4 +- .../src/dataMigrationServiceClient.ts | 5 +- .../src/dataMigrationServiceClientContext.ts | 13 +- .../src/models/filesMappers.ts | 5 +- .../arm-datamigration/src/models/index.ts | 340 ++++++++++++++++-- .../arm-datamigration/src/models/mappers.ts | 117 +++++- .../src/models/operationsMappers.ts | 4 +- .../src/models/parameters.ts | 5 +- .../src/models/projectsMappers.ts | 5 +- .../src/models/resourceSkusMappers.ts | 4 +- .../src/models/serviceTasksMappers.ts | 5 +- .../src/models/servicesMappers.ts | 5 +- .../src/models/tasksMappers.ts | 5 +- .../src/models/usagesMappers.ts | 4 +- .../arm-datamigration/src/operations/files.ts | 8 +- .../arm-datamigration/src/operations/index.ts | 5 +- .../src/operations/operations.ts | 8 +- .../src/operations/projects.ts | 8 +- .../src/operations/resourceSkus.ts | 8 +- .../src/operations/serviceTasks.ts | 15 +- .../src/operations/services.ts | 14 +- .../arm-datamigration/src/operations/tasks.ts | 15 +- .../src/operations/usages.ts | 8 +- 26 files changed, 515 insertions(+), 108 deletions(-) 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 6868b32fb3ef..cf5791617361 100644 --- a/sdk/datamigration/arm-datamigration/README.md +++ b/sdk/datamigration/arm-datamigration/README.md @@ -1,11 +1,11 @@ ## Azure DataMigrationServiceClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for DataMigrationServiceClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for DataMigrationServiceClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-datamigration @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and listSkus resourceSkus as an example written in JavaScript. ##### Sample code @@ -51,7 +49,6 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); const client = new DataMigrationServiceClient(creds, subscriptionId); - client.resourceSkus.listSkus().then((result) => { console.log("The result is:"); console.log(result); @@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmDatamigration.DataMigrationServiceClient(creds, subscriptionId); client.resourceSkus.listSkus().then((result) => { diff --git a/sdk/datamigration/arm-datamigration/package.json b/sdk/datamigration/arm-datamigration/package.json index a3596c215d2d..a43508d985e7 100644 --- a/sdk/datamigration/arm-datamigration/package.json +++ b/sdk/datamigration/arm-datamigration/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datamigration/arm-datamigration", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/datamigration/arm-datamigration", "repository": { "type": "git", "url": "https://github.com/Azure/azure-sdk-for-js.git" 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 25396551b380..250b589a597c 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 69901d9c9581..55d108e03be7 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 @@ -10,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-datamigration"; const packageVersion = "2.1.0"; @@ -43,7 +42,7 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC if (!options) { options = {}; } - if(!options.userAgent) { + if (!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -58,10 +57,10 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC this.credentials = credentials; this.subscriptionId = subscriptionId; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } 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 ],