From 12dfd61560cb0cd3b4e80b0f701f9ca9f1e7fead Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 30 Oct 2018 19:42:12 +0000 Subject: [PATCH] Generated from c2b76af4ead5dd8be9ffdc07366e9701b1317f0b Update readme.md --- .../lib/models/filesMappers.ts | 5 + .../arm-datamigration/lib/models/index.ts | 128 +++++++++++++++++- .../arm-datamigration/lib/models/mappers.ts | 99 +++++++++++++- .../lib/models/projectsMappers.ts | 5 + .../lib/models/servicesMappers.ts | 5 + .../lib/models/tasksMappers.ts | 5 + 6 files changed, 245 insertions(+), 2 deletions(-) diff --git a/packages/@azure/arm-datamigration/lib/models/filesMappers.ts b/packages/@azure/arm-datamigration/lib/models/filesMappers.ts index 5a4756b2d0a3..46ceb3913e71 100644 --- a/packages/@azure/arm-datamigration/lib/models/filesMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/filesMappers.ts @@ -44,6 +44,11 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, + MongoDbCancelCommand, + MongoDbCommandInput, + MongoDbFinishCommandInput, + MongoDbFinishCommand, + MongoDbRestartCommand, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index df4cb4215707..308b8d96c728 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -206,7 +206,7 @@ export interface MigrateSyncCompleteCommandInput { /** * Contains the possible cases for CommandProperties. */ -export type CommandPropertiesUnion = CommandProperties | MigrateSyncCompleteCommandProperties; +export type CommandPropertiesUnion = CommandProperties | MigrateSyncCompleteCommandProperties | MongoDbCancelCommand | MongoDbFinishCommand | MongoDbRestartCommand; /** * @interface @@ -6521,6 +6521,132 @@ export interface MigrateSchemaSqlTaskOutputError { readonly error?: ReportableException; } +/** + * @interface + * An interface representing MongoDbCommandInput. + * Describes the input to the 'cancel' and 'restart' MongoDB migration commands + * + */ +export interface MongoDbCommandInput { + /** + * @member {string} [objectName] The qualified name of a database or + * collection to act upon, or null to act upon the entire migration + */ + objectName?: string; +} + +/** + * @interface + * An interface representing MongoDbCancelCommand. + * Properties for the command that cancels a migration in whole or in part + * + */ +export interface MongoDbCancelCommand { + /** + * @member {string} commandType Polymorphic Discriminator + */ + commandType: "cancel"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {CommandState} [state] The state of the command. This is ignored + * if submitted. Possible values include: 'Unknown', 'Accepted', 'Running', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: CommandState; + /** + * @member {MongoDbCommandInput} [input] Command input + */ + input?: MongoDbCommandInput; +} + +/** + * @interface + * An interface representing MongoDbFinishCommandInput. + * Describes the input to the 'finish' MongoDB migration command + * + * @extends MongoDbCommandInput + */ +export interface MongoDbFinishCommandInput extends MongoDbCommandInput { + /** + * @member {boolean} immediate If true, replication for the affected objects + * will be stopped immediately. If false, the migrator will finish replaying + * queued events before finishing the replication. + */ + immediate: boolean; +} + +/** + * @interface + * An interface representing MongoDbFinishCommand. + * Properties for the command that finishes a migration in whole or in part + * + */ +export interface MongoDbFinishCommand { + /** + * @member {string} commandType Polymorphic Discriminator + */ + commandType: "finish"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {CommandState} [state] The state of the command. This is ignored + * if submitted. Possible values include: 'Unknown', 'Accepted', 'Running', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: CommandState; + /** + * @member {MongoDbFinishCommandInput} [input] Command input + */ + input?: MongoDbFinishCommandInput; +} + +/** + * @interface + * An interface representing MongoDbRestartCommand. + * Properties for the command that restarts a migration in whole or in part + * + */ +export interface MongoDbRestartCommand { + /** + * @member {string} commandType Polymorphic Discriminator + */ + commandType: "restart"; + /** + * @member {ODataError[]} [errors] Array of errors. This is ignored if + * submitted. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly errors?: ODataError[]; + /** + * @member {CommandState} [state] The state of the command. This is ignored + * if submitted. Possible values include: 'Unknown', 'Accepted', 'Running', + * 'Succeeded', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly state?: CommandState; + /** + * @member {MongoDbCommandInput} [input] Command input + */ + input?: MongoDbCommandInput; +} + /** * @interface * An interface representing Database. diff --git a/packages/@azure/arm-datamigration/lib/models/mappers.ts b/packages/@azure/arm-datamigration/lib/models/mappers.ts index 93a282240460..4e0f01e7cc4d 100644 --- a/packages/@azure/arm-datamigration/lib/models/mappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/mappers.ts @@ -7539,6 +7539,100 @@ export const MigrateSchemaSqlTaskOutputError: msRest.CompositeMapper = { } }; +export const MongoDbCommandInput: msRest.CompositeMapper = { + serializedName: "MongoDbCommandInput", + type: { + name: "Composite", + className: "MongoDbCommandInput", + modelProperties: { + objectName: { + serializedName: "objectName", + type: { + name: "String" + } + } + } + } +}; + +export const MongoDbCancelCommand: msRest.CompositeMapper = { + serializedName: "cancel", + type: { + name: "Composite", + polymorphicDiscriminator: CommandProperties.type.polymorphicDiscriminator, + uberParent: "CommandProperties", + className: "MongoDbCancelCommand", + modelProperties: { + ...CommandProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "MongoDbCommandInput" + } + } + } + } +}; + +export const MongoDbFinishCommandInput: msRest.CompositeMapper = { + serializedName: "MongoDbFinishCommandInput", + type: { + name: "Composite", + className: "MongoDbFinishCommandInput", + modelProperties: { + ...MongoDbCommandInput.type.modelProperties, + immediate: { + required: true, + serializedName: "immediate", + type: { + name: "Boolean" + } + } + } + } +}; + +export const MongoDbFinishCommand: msRest.CompositeMapper = { + serializedName: "finish", + type: { + name: "Composite", + polymorphicDiscriminator: CommandProperties.type.polymorphicDiscriminator, + uberParent: "CommandProperties", + className: "MongoDbFinishCommand", + modelProperties: { + ...CommandProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "MongoDbFinishCommandInput" + } + } + } + } +}; + +export const MongoDbRestartCommand: msRest.CompositeMapper = { + serializedName: "restart", + type: { + name: "Composite", + polymorphicDiscriminator: CommandProperties.type.polymorphicDiscriminator, + uberParent: "CommandProperties", + className: "MongoDbRestartCommand", + modelProperties: { + ...CommandProperties.type.modelProperties, + input: { + serializedName: "input", + type: { + name: "Composite", + className: "MongoDbCommandInput" + } + } + } + } +}; + export const Database: msRest.CompositeMapper = { serializedName: "Database", type: { @@ -8411,5 +8505,8 @@ export const discriminators = { 'MigrateSchemaSqlServerSqlDbTaskOutput.MigrationLevelOutput' : MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel, 'MigrateSchemaSqlServerSqlDbTaskOutput.DatabaseLevelOutput' : MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, 'MigrateSchemaSqlServerSqlDbTaskOutput.SchemaErrorOutput' : MigrateSchemaSqlServerSqlDbTaskOutputError, - 'MigrateSchemaSqlServerSqlDbTaskOutput.ErrorOutput' : MigrateSchemaSqlTaskOutputError + 'MigrateSchemaSqlServerSqlDbTaskOutput.ErrorOutput' : MigrateSchemaSqlTaskOutputError, + 'CommandProperties.cancel' : MongoDbCancelCommand, + 'CommandProperties.finish' : MongoDbFinishCommand, + 'CommandProperties.restart' : MongoDbRestartCommand }; diff --git a/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts b/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts index ceb2f581d846..631f9113b591 100644 --- a/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/projectsMappers.ts @@ -45,6 +45,11 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, + MongoDbCancelCommand, + MongoDbCommandInput, + MongoDbFinishCommandInput, + MongoDbFinishCommand, + MongoDbRestartCommand, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, diff --git a/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts b/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts index 79838c59b053..321ade207068 100644 --- a/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/servicesMappers.ts @@ -50,6 +50,11 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, + MongoDbCancelCommand, + MongoDbCommandInput, + MongoDbFinishCommandInput, + MongoDbFinishCommand, + MongoDbRestartCommand, MigrateSyncCompleteCommandProperties, MigrateSyncCompleteCommandInput, MigrateSyncCompleteCommandOutput, diff --git a/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts b/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts index ae230665f672..c4d10a034385 100644 --- a/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts +++ b/packages/@azure/arm-datamigration/lib/models/tasksMappers.ts @@ -123,6 +123,11 @@ export { MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel, MigrateSchemaSqlServerSqlDbTaskOutputError, MigrateSchemaSqlTaskOutputError, + MongoDbCancelCommand, + MongoDbCommandInput, + MongoDbFinishCommandInput, + MongoDbFinishCommand, + MongoDbRestartCommand, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, SyncMigrationDatabaseErrorEvent, MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError,