diff --git a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts index 594169f396a4..29bdcb443e9e 100644 --- a/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts +++ b/packages/@azure/arm-datamigration/lib/dataMigrationServiceClientContext.ts @@ -13,10 +13,11 @@ import * as msRest from "ms-rest-js"; import * as msRestAzure from "ms-rest-azure-js"; const packageName = "@azure/arm-datamigration"; -const packageVersion = "1.0.0-preview"; +const packageVersion = "0.1.0"; export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; + apiVersion?: string; subscriptionId: string; /** @@ -43,6 +44,7 @@ export class DataMigrationServiceClientContext extends msRestAzure.AzureServiceC super(credentials, options); + this.apiVersion = '2018-07-15-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/packages/@azure/arm-datamigration/lib/models/index.ts b/packages/@azure/arm-datamigration/lib/models/index.ts index 308b8d96c728..978c6652c980 100644 --- a/packages/@azure/arm-datamigration/lib/models/index.ts +++ b/packages/@azure/arm-datamigration/lib/models/index.ts @@ -7320,811 +7320,350 @@ export interface FileList extends Array { /** * Defines values for CommandState. - * Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', - * 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CommandState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Unknown', 'Accepted', 'Running', 'Succeeded', 'Failed' * @readonly * @enum {string} */ -export enum CommandState { - Unknown = 'Unknown', - Accepted = 'Accepted', - Running = 'Running', - Succeeded = 'Succeeded', - Failed = 'Failed', -} +export type CommandState = 'Unknown' | 'Accepted' | 'Running' | 'Succeeded' | 'Failed'; /** * Defines values for SqlSourcePlatform. * Possible values include: 'SqlOnPrem' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SqlSourcePlatform = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SqlSourcePlatform { - SqlOnPrem = 'SqlOnPrem', -} +export type SqlSourcePlatform = 'SqlOnPrem'; /** * Defines values for AuthenticationType. - * Possible values include: 'None', 'WindowsAuthentication', - * 'SqlAuthentication', 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: AuthenticationType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'WindowsAuthentication', 'SqlAuthentication', + * 'ActiveDirectoryIntegrated', 'ActiveDirectoryPassword' * @readonly * @enum {string} */ -export enum AuthenticationType { - None = 'None', - WindowsAuthentication = 'WindowsAuthentication', - SqlAuthentication = 'SqlAuthentication', - ActiveDirectoryIntegrated = 'ActiveDirectoryIntegrated', - ActiveDirectoryPassword = 'ActiveDirectoryPassword', -} +export type AuthenticationType = 'None' | 'WindowsAuthentication' | 'SqlAuthentication' | 'ActiveDirectoryIntegrated' | 'ActiveDirectoryPassword'; /** * Defines values for MongoDbErrorType. * Possible values include: 'Error', 'ValidationError', 'Warning' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbErrorType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbErrorType { - Error = 'Error', - ValidationError = 'ValidationError', - Warning = 'Warning', -} +export type MongoDbErrorType = 'Error' | 'ValidationError' | 'Warning'; /** * Defines values for MongoDbMigrationState. - * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', - * 'Restarting', 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', - * 'Complete', 'Canceled', 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbMigrationState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'NotStarted', 'ValidatingInput', 'Initializing', 'Restarting', + * 'Copying', 'InitialReplay', 'Replaying', 'Finalizing', 'Complete', 'Canceled', 'Failed' * @readonly * @enum {string} */ -export enum MongoDbMigrationState { - NotStarted = 'NotStarted', - ValidatingInput = 'ValidatingInput', - Initializing = 'Initializing', - Restarting = 'Restarting', - Copying = 'Copying', - InitialReplay = 'InitialReplay', - Replaying = 'Replaying', - Finalizing = 'Finalizing', - Complete = 'Complete', - Canceled = 'Canceled', - Failed = 'Failed', -} +export type MongoDbMigrationState = 'NotStarted' | 'ValidatingInput' | 'Initializing' | 'Restarting' | 'Copying' | 'InitialReplay' | 'Replaying' | 'Finalizing' | 'Complete' | 'Canceled' | 'Failed'; /** * Defines values for MongoDbShardKeyOrder. * Possible values include: 'Forward', 'Reverse', 'Hashed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbShardKeyOrder = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbShardKeyOrder { - Forward = 'Forward', - Reverse = 'Reverse', - Hashed = 'Hashed', -} +export type MongoDbShardKeyOrder = 'Forward' | 'Reverse' | 'Hashed'; /** * Defines values for MongoDbReplication. * Possible values include: 'Disabled', 'OneTime', 'Continuous' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbReplication = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbReplication { - Disabled = 'Disabled', - OneTime = 'OneTime', - Continuous = 'Continuous', -} +export type MongoDbReplication = 'Disabled' | 'OneTime' | 'Continuous'; /** * Defines values for BackupType. - * Possible values include: 'Database', 'TransactionLog', 'File', - * 'DifferentialDatabase', 'DifferentialFile', 'Partial', 'DifferentialPartial' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: BackupType = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase', + * 'DifferentialFile', 'Partial', 'DifferentialPartial' * @readonly * @enum {string} */ -export enum BackupType { - Database = 'Database', - TransactionLog = 'TransactionLog', - File = 'File', - DifferentialDatabase = 'DifferentialDatabase', - DifferentialFile = 'DifferentialFile', - Partial = 'Partial', - DifferentialPartial = 'DifferentialPartial', -} +export type BackupType = 'Database' | 'TransactionLog' | 'File' | 'DifferentialDatabase' | 'DifferentialFile' | 'Partial' | 'DifferentialPartial'; /** * Defines values for BackupMode. * Possible values include: 'CreateBackup', 'ExistingBackup' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: BackupMode = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum BackupMode { - CreateBackup = 'CreateBackup', - ExistingBackup = 'ExistingBackup', -} +export type BackupMode = 'CreateBackup' | 'ExistingBackup'; /** * Defines values for SyncTableMigrationState. - * Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', - * 'CANCELED', 'ERROR', 'FAILED' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncTableMigrationState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'BEFORE_LOAD', 'FULL_LOAD', 'COMPLETED', 'CANCELED', 'ERROR', 'FAILED' * @readonly * @enum {string} */ -export enum SyncTableMigrationState { - BEFORELOAD = 'BEFORE_LOAD', - FULLLOAD = 'FULL_LOAD', - COMPLETED = 'COMPLETED', - CANCELED = 'CANCELED', - ERROR = 'ERROR', - FAILED = 'FAILED', -} +export type SyncTableMigrationState = 'BEFORE_LOAD' | 'FULL_LOAD' | 'COMPLETED' | 'CANCELED' | 'ERROR' | 'FAILED'; /** * Defines values for SyncDatabaseMigrationReportingState. - * Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', - * 'STARTING', 'RUNNING', 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', - * 'CANCELLING', 'CANCELLED', 'FAILED' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncDatabaseMigrationReportingState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'UNDEFINED', 'CONFIGURING', 'INITIALIAZING', 'STARTING', 'RUNNING', + * 'READY_TO_COMPLETE', 'COMPLETING', 'COMPLETE', 'CANCELLING', 'CANCELLED', 'FAILED' * @readonly * @enum {string} */ -export enum SyncDatabaseMigrationReportingState { - UNDEFINED = 'UNDEFINED', - CONFIGURING = 'CONFIGURING', - INITIALIAZING = 'INITIALIAZING', - STARTING = 'STARTING', - RUNNING = 'RUNNING', - READYTOCOMPLETE = 'READY_TO_COMPLETE', - COMPLETING = 'COMPLETING', - COMPLETE = 'COMPLETE', - CANCELLING = 'CANCELLING', - CANCELLED = 'CANCELLED', - FAILED = 'FAILED', -} +export type SyncDatabaseMigrationReportingState = 'UNDEFINED' | 'CONFIGURING' | 'INITIALIAZING' | 'STARTING' | 'RUNNING' | 'READY_TO_COMPLETE' | 'COMPLETING' | 'COMPLETE' | 'CANCELLING' | 'CANCELLED' | 'FAILED'; /** * Defines values for ValidationStatus. - * Possible values include: 'Default', 'NotStarted', 'Initialized', - * 'InProgress', 'Completed', 'CompletedWithIssues', 'Stopped', 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ValidationStatus = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Default', 'NotStarted', 'Initialized', 'InProgress', 'Completed', + * 'CompletedWithIssues', 'Stopped', 'Failed' * @readonly * @enum {string} */ -export enum ValidationStatus { - Default = 'Default', - NotStarted = 'NotStarted', - Initialized = 'Initialized', - InProgress = 'InProgress', - Completed = 'Completed', - CompletedWithIssues = 'CompletedWithIssues', - Stopped = 'Stopped', - Failed = 'Failed', -} +export type ValidationStatus = 'Default' | 'NotStarted' | 'Initialized' | 'InProgress' | 'Completed' | 'CompletedWithIssues' | 'Stopped' | 'Failed'; /** * Defines values for Severity. * Possible values include: 'Message', 'Warning', 'Error' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: Severity = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum Severity { - Message = 'Message', - Warning = 'Warning', - Error = 'Error', -} +export type Severity = 'Message' | 'Warning' | 'Error'; /** * Defines values for UpdateActionType. - * Possible values include: 'DeletedOnTarget', 'ChangedOnTarget', - * 'AddedOnTarget' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: UpdateActionType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'DeletedOnTarget', 'ChangedOnTarget', 'AddedOnTarget' * @readonly * @enum {string} */ -export enum UpdateActionType { - DeletedOnTarget = 'DeletedOnTarget', - ChangedOnTarget = 'ChangedOnTarget', - AddedOnTarget = 'AddedOnTarget', -} +export type UpdateActionType = 'DeletedOnTarget' | 'ChangedOnTarget' | 'AddedOnTarget'; /** * Defines values for ObjectType. - * Possible values include: 'StoredProcedures', 'Table', 'User', 'View', - * 'Function' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ObjectType = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'StoredProcedures', 'Table', 'User', 'View', 'Function' * @readonly * @enum {string} */ -export enum ObjectType { - StoredProcedures = 'StoredProcedures', - Table = 'Table', - User = 'User', - View = 'View', - Function = 'Function', -} +export type ObjectType = 'StoredProcedures' | 'Table' | 'User' | 'View' | 'Function'; /** * Defines values for MigrationState. - * Possible values include: 'None', 'InProgress', 'Failed', 'Warning', - * 'Completed', 'Skipped', 'Stopped' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MigrationState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'InProgress', 'Failed', 'Warning', 'Completed', 'Skipped', + * 'Stopped' * @readonly * @enum {string} */ -export enum MigrationState { - None = 'None', - InProgress = 'InProgress', - Failed = 'Failed', - Warning = 'Warning', - Completed = 'Completed', - Skipped = 'Skipped', - Stopped = 'Stopped', -} +export type MigrationState = 'None' | 'InProgress' | 'Failed' | 'Warning' | 'Completed' | 'Skipped' | 'Stopped'; /** * Defines values for DatabaseMigrationStage. - * Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', - * 'Restore', 'Completed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseMigrationStage = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'Initialize', 'Backup', 'FileCopy', 'Restore', 'Completed' * @readonly * @enum {string} */ -export enum DatabaseMigrationStage { - None = 'None', - Initialize = 'Initialize', - Backup = 'Backup', - FileCopy = 'FileCopy', - Restore = 'Restore', - Completed = 'Completed', -} +export type DatabaseMigrationStage = 'None' | 'Initialize' | 'Backup' | 'FileCopy' | 'Restore' | 'Completed'; /** * Defines values for MigrationStatus. - * Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', - * 'SelectLogins', 'Configured', 'Running', 'Error', 'Stopped', 'Completed', - * 'CompletedWithWarnings' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MigrationStatus = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Default', 'Connecting', 'SourceAndTargetSelected', 'SelectLogins', + * 'Configured', 'Running', 'Error', 'Stopped', 'Completed', 'CompletedWithWarnings' * @readonly * @enum {string} */ -export enum MigrationStatus { - Default = 'Default', - Connecting = 'Connecting', - SourceAndTargetSelected = 'SourceAndTargetSelected', - SelectLogins = 'SelectLogins', - Configured = 'Configured', - Running = 'Running', - Error = 'Error', - Stopped = 'Stopped', - Completed = 'Completed', - CompletedWithWarnings = 'CompletedWithWarnings', -} +export type MigrationStatus = 'Default' | 'Connecting' | 'SourceAndTargetSelected' | 'SelectLogins' | 'Configured' | 'Running' | 'Error' | 'Stopped' | 'Completed' | 'CompletedWithWarnings'; /** * Defines values for LoginMigrationStage. - * Possible values include: 'None', 'Initialize', 'LoginMigration', - * 'EstablishUserMapping', 'AssignRoleMembership', 'AssignRoleOwnership', - * 'EstablishServerPermissions', 'EstablishObjectPermissions', 'Completed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: LoginMigrationStage = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'Initialize', 'LoginMigration', 'EstablishUserMapping', + * 'AssignRoleMembership', 'AssignRoleOwnership', 'EstablishServerPermissions', + * 'EstablishObjectPermissions', 'Completed' * @readonly * @enum {string} */ -export enum LoginMigrationStage { - None = 'None', - Initialize = 'Initialize', - LoginMigration = 'LoginMigration', - EstablishUserMapping = 'EstablishUserMapping', - AssignRoleMembership = 'AssignRoleMembership', - AssignRoleOwnership = 'AssignRoleOwnership', - EstablishServerPermissions = 'EstablishServerPermissions', - EstablishObjectPermissions = 'EstablishObjectPermissions', - Completed = 'Completed', -} +export type LoginMigrationStage = 'None' | 'Initialize' | 'LoginMigration' | 'EstablishUserMapping' | 'AssignRoleMembership' | 'AssignRoleOwnership' | 'EstablishServerPermissions' | 'EstablishObjectPermissions' | 'Completed'; /** * Defines values for LoginType. - * Possible values include: 'WindowsUser', 'WindowsGroup', 'SqlLogin', - * 'Certificate', 'AsymmetricKey', 'ExternalUser', 'ExternalGroup' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: LoginType = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'WindowsUser', 'WindowsGroup', 'SqlLogin', 'Certificate', + * 'AsymmetricKey', 'ExternalUser', 'ExternalGroup' * @readonly * @enum {string} */ -export enum LoginType { - WindowsUser = 'WindowsUser', - WindowsGroup = 'WindowsGroup', - SqlLogin = 'SqlLogin', - Certificate = 'Certificate', - AsymmetricKey = 'AsymmetricKey', - ExternalUser = 'ExternalUser', - ExternalGroup = 'ExternalGroup', -} +export type LoginType = 'WindowsUser' | 'WindowsGroup' | 'SqlLogin' | 'Certificate' | 'AsymmetricKey' | 'ExternalUser' | 'ExternalGroup'; /** * Defines values for DatabaseState. - * Possible values include: 'Online', 'Restoring', 'Recovering', - * 'RecoveryPending', 'Suspect', 'Emergency', 'Offline', 'Copying', - * 'OfflineSecondary' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Online', 'Restoring', 'Recovering', 'RecoveryPending', 'Suspect', + * 'Emergency', 'Offline', 'Copying', 'OfflineSecondary' * @readonly * @enum {string} */ -export enum DatabaseState { - Online = 'Online', - Restoring = 'Restoring', - Recovering = 'Recovering', - RecoveryPending = 'RecoveryPending', - Suspect = 'Suspect', - Emergency = 'Emergency', - Offline = 'Offline', - Copying = 'Copying', - OfflineSecondary = 'OfflineSecondary', -} +export type DatabaseState = 'Online' | 'Restoring' | 'Recovering' | 'RecoveryPending' | 'Suspect' | 'Emergency' | 'Offline' | 'Copying' | 'OfflineSecondary'; /** * Defines values for DatabaseCompatLevel. - * Possible values include: 'CompatLevel80', 'CompatLevel90', 'CompatLevel100', - * 'CompatLevel110', 'CompatLevel120', 'CompatLevel130', 'CompatLevel140' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseCompatLevel = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'CompatLevel80', 'CompatLevel90', 'CompatLevel100', 'CompatLevel110', + * 'CompatLevel120', 'CompatLevel130', 'CompatLevel140' * @readonly * @enum {string} */ -export enum DatabaseCompatLevel { - CompatLevel80 = 'CompatLevel80', - CompatLevel90 = 'CompatLevel90', - CompatLevel100 = 'CompatLevel100', - CompatLevel110 = 'CompatLevel110', - CompatLevel120 = 'CompatLevel120', - CompatLevel130 = 'CompatLevel130', - CompatLevel140 = 'CompatLevel140', -} +export type DatabaseCompatLevel = 'CompatLevel80' | 'CompatLevel90' | 'CompatLevel100' | 'CompatLevel110' | 'CompatLevel120' | 'CompatLevel130' | 'CompatLevel140'; /** * Defines values for DatabaseFileType. - * Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', - * 'Fulltext' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseFileType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Rows', 'Log', 'Filestream', 'NotSupported', 'Fulltext' * @readonly * @enum {string} */ -export enum DatabaseFileType { - Rows = 'Rows', - Log = 'Log', - Filestream = 'Filestream', - NotSupported = 'NotSupported', - Fulltext = 'Fulltext', -} +export type DatabaseFileType = 'Rows' | 'Log' | 'Filestream' | 'NotSupported' | 'Fulltext'; /** * Defines values for ServerLevelPermissionsGroup. * Possible values include: 'Default', 'MigrationFromSqlServerToAzureDB', * 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServerLevelPermissionsGroup = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServerLevelPermissionsGroup { - Default = 'Default', - MigrationFromSqlServerToAzureDB = 'MigrationFromSqlServerToAzureDB', - MigrationFromSqlServerToAzureMI = 'MigrationFromSqlServerToAzureMI', - MigrationFromMySQLToAzureDBForMySQL = 'MigrationFromMySQLToAzureDBForMySQL', -} +export type ServerLevelPermissionsGroup = 'Default' | 'MigrationFromSqlServerToAzureDB' | 'MigrationFromSqlServerToAzureMI' | 'MigrationFromMySQLToAzureDBForMySQL'; /** * Defines values for MongoDbClusterType. * Possible values include: 'BlobContainer', 'CosmosDb', 'MongoDb' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MongoDbClusterType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MongoDbClusterType { - BlobContainer = 'BlobContainer', - CosmosDb = 'CosmosDb', - MongoDb = 'MongoDb', -} +export type MongoDbClusterType = 'BlobContainer' | 'CosmosDb' | 'MongoDb'; /** * Defines values for TaskState. - * Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', - * 'Succeeded', 'Failed', 'FailedInputValidation', 'Faulted' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: TaskState = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded', 'Failed', + * 'FailedInputValidation', 'Faulted' * @readonly * @enum {string} */ -export enum TaskState { - Unknown = 'Unknown', - Queued = 'Queued', - Running = 'Running', - Canceled = 'Canceled', - Succeeded = 'Succeeded', - Failed = 'Failed', - FailedInputValidation = 'FailedInputValidation', - Faulted = 'Faulted', -} +export type TaskState = 'Unknown' | 'Queued' | 'Running' | 'Canceled' | 'Succeeded' | 'Failed' | 'FailedInputValidation' | 'Faulted'; /** * Defines values for ServiceProvisioningState. - * Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', - * 'Stopping', 'Starting', 'FailedToStart', 'FailedToStop', 'Succeeded', - * 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServiceProvisioningState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Accepted', 'Deleting', 'Deploying', 'Stopped', 'Stopping', 'Starting', + * 'FailedToStart', 'FailedToStop', 'Succeeded', 'Failed' * @readonly * @enum {string} */ -export enum ServiceProvisioningState { - Accepted = 'Accepted', - Deleting = 'Deleting', - Deploying = 'Deploying', - Stopped = 'Stopped', - Stopping = 'Stopping', - Starting = 'Starting', - FailedToStart = 'FailedToStart', - FailedToStop = 'FailedToStop', - Succeeded = 'Succeeded', - Failed = 'Failed', -} +export type ServiceProvisioningState = 'Accepted' | 'Deleting' | 'Deploying' | 'Stopped' | 'Stopping' | 'Starting' | 'FailedToStart' | 'FailedToStop' | 'Succeeded' | 'Failed'; /** * Defines values for ProjectTargetPlatform. - * Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', - * 'AzureDbForPostgreSql', 'MongoDb', 'Unknown' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ProjectTargetPlatform = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'SQLDB', 'SQLMI', 'AzureDbForMySql', 'AzureDbForPostgreSql', 'MongoDb', + * 'Unknown' * @readonly * @enum {string} */ -export enum ProjectTargetPlatform { - SQLDB = 'SQLDB', - SQLMI = 'SQLMI', - AzureDbForMySql = 'AzureDbForMySql', - AzureDbForPostgreSql = 'AzureDbForPostgreSql', - MongoDb = 'MongoDb', - Unknown = 'Unknown', -} +export type ProjectTargetPlatform = 'SQLDB' | 'SQLMI' | 'AzureDbForMySql' | 'AzureDbForPostgreSql' | 'MongoDb' | 'Unknown'; /** * Defines values for ProjectSourcePlatform. * Possible values include: 'SQL', 'MySQL', 'PostgreSql', 'MongoDb', 'Unknown' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ProjectSourcePlatform = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ProjectSourcePlatform { - SQL = 'SQL', - MySQL = 'MySQL', - PostgreSql = 'PostgreSql', - MongoDb = 'MongoDb', - Unknown = 'Unknown', -} +export type ProjectSourcePlatform = 'SQL' | 'MySQL' | 'PostgreSql' | 'MongoDb' | 'Unknown'; /** * Defines values for ProjectProvisioningState. * Possible values include: 'Deleting', 'Succeeded' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ProjectProvisioningState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ProjectProvisioningState { - Deleting = 'Deleting', - Succeeded = 'Succeeded', -} +export type ProjectProvisioningState = 'Deleting' | 'Succeeded'; /** * Defines values for NameCheckFailureReason. * Possible values include: 'AlreadyExists', 'Invalid' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: NameCheckFailureReason = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum NameCheckFailureReason { - AlreadyExists = 'AlreadyExists', - Invalid = 'Invalid', -} +export type NameCheckFailureReason = 'AlreadyExists' | 'Invalid'; /** * Defines values for ServiceScalability. * Possible values include: 'none', 'manual', 'automatic' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServiceScalability = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServiceScalability { - None = 'none', - Manual = 'manual', - Automatic = 'automatic', -} +export type ServiceScalability = 'none' | 'manual' | 'automatic'; /** * Defines values for ResourceSkuRestrictionsType. * Possible values include: 'location' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResourceSkuRestrictionsType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResourceSkuRestrictionsType { - Location = 'location', -} +export type ResourceSkuRestrictionsType = 'location'; /** * Defines values for ResourceSkuRestrictionsReasonCode. * Possible values include: 'QuotaId', 'NotAvailableForSubscription' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResourceSkuRestrictionsReasonCode = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResourceSkuRestrictionsReasonCode { - QuotaId = 'QuotaId', - NotAvailableForSubscription = 'NotAvailableForSubscription', -} +export type ResourceSkuRestrictionsReasonCode = 'QuotaId' | 'NotAvailableForSubscription'; /** * Defines values for ResourceSkuCapacityScaleType. * Possible values include: 'Automatic', 'Manual', 'None' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResourceSkuCapacityScaleType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResourceSkuCapacityScaleType { - Automatic = 'Automatic', - Manual = 'Manual', - None = 'None', -} +export type ResourceSkuCapacityScaleType = 'Automatic' | 'Manual' | 'None'; /** * Defines values for MySqlTargetPlatformType. * Possible values include: 'AzureDbForMySQL' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MySqlTargetPlatformType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MySqlTargetPlatformType { - AzureDbForMySQL = 'AzureDbForMySQL', -} +export type MySqlTargetPlatformType = 'AzureDbForMySQL'; /** * Defines values for SchemaMigrationOption. * Possible values include: 'None', 'ExtractFromSource', 'UseStorageFile' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SchemaMigrationOption = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SchemaMigrationOption { - None = 'None', - ExtractFromSource = 'ExtractFromSource', - UseStorageFile = 'UseStorageFile', -} +export type SchemaMigrationOption = 'None' | 'ExtractFromSource' | 'UseStorageFile'; /** * Defines values for SchemaMigrationStage. - * Possible values include: 'NotStarted', 'ValidatingInputs', - * 'CollectingObjects', 'DownloadingScript', 'GeneratingScript', - * 'UploadingScript', 'DeployingSchema', 'Completed', 'CompletedWithWarnings', - * 'Failed' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SchemaMigrationStage = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'NotStarted', 'ValidatingInputs', 'CollectingObjects', + * 'DownloadingScript', 'GeneratingScript', 'UploadingScript', 'DeployingSchema', 'Completed', + * 'CompletedWithWarnings', 'Failed' * @readonly * @enum {string} */ -export enum SchemaMigrationStage { - NotStarted = 'NotStarted', - ValidatingInputs = 'ValidatingInputs', - CollectingObjects = 'CollectingObjects', - DownloadingScript = 'DownloadingScript', - GeneratingScript = 'GeneratingScript', - UploadingScript = 'UploadingScript', - DeployingSchema = 'DeployingSchema', - Completed = 'Completed', - CompletedWithWarnings = 'CompletedWithWarnings', - Failed = 'Failed', -} +export type SchemaMigrationStage = 'NotStarted' | 'ValidatingInputs' | 'CollectingObjects' | 'DownloadingScript' | 'GeneratingScript' | 'UploadingScript' | 'DeployingSchema' | 'Completed' | 'CompletedWithWarnings' | 'Failed'; /** * Defines values for DataMigrationResultCode. * Possible values include: 'Initial', 'Completed', 'ObjectNotExistsInSource', * 'ObjectNotExistsInTarget', 'TargetObjectIsInaccessible', 'FatalError' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DataMigrationResultCode = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum DataMigrationResultCode { - Initial = 'Initial', - Completed = 'Completed', - ObjectNotExistsInSource = 'ObjectNotExistsInSource', - ObjectNotExistsInTarget = 'ObjectNotExistsInTarget', - TargetObjectIsInaccessible = 'TargetObjectIsInaccessible', - FatalError = 'FatalError', -} +export type DataMigrationResultCode = 'Initial' | 'Completed' | 'ObjectNotExistsInSource' | 'ObjectNotExistsInTarget' | 'TargetObjectIsInaccessible' | 'FatalError'; /** * Defines values for ErrorType. * Possible values include: 'Default', 'Warning', 'Error' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ErrorType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ErrorType { - Default = 'Default', - Warning = 'Warning', - Error = 'Error', -} +export type ErrorType = 'Default' | 'Warning' | 'Error'; /** * Defines values for ResultType. * Possible values include: 'Migration', 'Database', 'Collection' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ResultType = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ResultType { - Migration = 'Migration', - Database = 'Database', - Collection = 'Collection', -} +export type ResultType = 'Migration' | 'Database' | 'Collection'; /** * Contains response data for the listSkus operation. diff --git a/packages/@azure/arm-datamigration/lib/models/parameters.ts b/packages/@azure/arm-datamigration/lib/models/parameters.ts index edad9643d324..7aeaceeadc6d 100644 --- a/packages/@azure/arm-datamigration/lib/models/parameters.ts +++ b/packages/@azure/arm-datamigration/lib/models/parameters.ts @@ -24,9 +24,7 @@ export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, - isConstant: true, serializedName: "api-version", - defaultValue: '2018-07-15-preview', type: { name: "String" } diff --git a/packages/@azure/arm-datamigration/lib/operations/files.ts b/packages/@azure/arm-datamigration/lib/operations/files.ts index dfd99f84b64a..f05767ce3cf2 100644 --- a/packages/@azure/arm-datamigration/lib/operations/files.ts +++ b/packages/@azure/arm-datamigration/lib/operations/files.ts @@ -52,7 +52,7 @@ export class Files { * @param callback The callback */ list(groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -93,7 +93,7 @@ export class Files { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -137,7 +137,7 @@ export class Files { * @param callback The callback */ createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -179,7 +179,7 @@ export class Files { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -223,7 +223,7 @@ export class Files { * @param callback The callback */ update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.ProjectFile, groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -266,7 +266,7 @@ export class Files { * @param callback The callback */ read(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + read(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -307,7 +307,7 @@ export class Files { * @param callback The callback */ readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + readWrite(groupName: string, serviceName: string, projectName: string, fileName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -340,7 +340,7 @@ export class Files { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/operations.ts b/packages/@azure/arm-datamigration/lib/operations/operations.ts index 4ea11a119716..e22bb1ea9155 100644 --- a/packages/@azure/arm-datamigration/lib/operations/operations.ts +++ b/packages/@azure/arm-datamigration/lib/operations/operations.ts @@ -42,7 +42,7 @@ export class Operations { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -70,7 +70,7 @@ export class Operations { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/projects.ts b/packages/@azure/arm-datamigration/lib/operations/projects.ts index f2c8dd87f14d..caae446b34a6 100644 --- a/packages/@azure/arm-datamigration/lib/operations/projects.ts +++ b/packages/@azure/arm-datamigration/lib/operations/projects.ts @@ -49,7 +49,7 @@ export class Projects { * @param callback The callback */ list(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -89,7 +89,7 @@ export class Projects { * @param callback The callback */ createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -128,7 +128,7 @@ export class Projects { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -166,7 +166,7 @@ export class Projects { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, options: Models.ProjectsDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, options?: Models.ProjectsDeleteMethodOptionalParams, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, options?: Models.ProjectsDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -207,7 +207,7 @@ export class Projects { * @param callback The callback */ update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.Project, groupName: string, serviceName: string, projectName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -240,7 +240,7 @@ export class Projects { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts b/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts index c9acfb62b336..c8b3a6952ff9 100644 --- a/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts +++ b/packages/@azure/arm-datamigration/lib/operations/resourceSkus.ts @@ -42,7 +42,7 @@ export class ResourceSkus { * @param callback The callback */ listSkus(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkus(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkus(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -70,7 +70,7 @@ export class ResourceSkus { * @param callback The callback */ listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/services.ts b/packages/@azure/arm-datamigration/lib/operations/services.ts index 3faa0ab51e8e..1a7c813a75ec 100644 --- a/packages/@azure/arm-datamigration/lib/operations/services.ts +++ b/packages/@azure/arm-datamigration/lib/operations/services.ts @@ -71,7 +71,7 @@ export class Services { * @param callback The callback */ get(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -137,7 +137,7 @@ export class Services { * @param callback The callback */ checkStatus(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkStatus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkStatus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -200,7 +200,7 @@ export class Services { * @param callback The callback */ listSkus(groupName: string, serviceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkus(groupName: string, serviceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -236,7 +236,7 @@ export class Services { * @param callback The callback */ checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkChildrenNameAvailability(groupName: string, serviceName: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -268,7 +268,7 @@ export class Services { * @param callback The callback */ listByResourceGroup(groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(groupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -295,7 +295,7 @@ export class Services { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -326,7 +326,7 @@ export class Services { * @param callback The callback */ checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkNameAvailability(location: string, parameters: Models.NameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -470,7 +470,7 @@ export class Services { * @param callback The callback */ listSkusNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSkusNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -500,7 +500,7 @@ export class Services { * @param callback The callback */ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -530,7 +530,7 @@ export class Services { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/tasks.ts b/packages/@azure/arm-datamigration/lib/operations/tasks.ts index 5ae49940480b..02e8d3d519d6 100644 --- a/packages/@azure/arm-datamigration/lib/operations/tasks.ts +++ b/packages/@azure/arm-datamigration/lib/operations/tasks.ts @@ -53,7 +53,7 @@ export class Tasks { * @param callback The callback */ list(groupName: string, serviceName: string, projectName: string, options: Models.TasksListOptionalParams, callback: msRest.ServiceCallback): void; - list(groupName: string, serviceName: string, projectName: string, options?: Models.TasksListOptionalParams, callback?: msRest.ServiceCallback): Promise { + list(groupName: string, serviceName: string, projectName: string, options?: Models.TasksListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -98,7 +98,7 @@ export class Tasks { * @param callback The callback */ createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -141,7 +141,7 @@ export class Tasks { * @param callback The callback */ get(groupName: string, serviceName: string, projectName: string, taskName: string, options: Models.TasksGetOptionalParams, callback: msRest.ServiceCallback): void; - get(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksGetOptionalParams, callback?: msRest.ServiceCallback): Promise { + get(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -183,7 +183,7 @@ export class Tasks { * @param callback The callback */ deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options: Models.TasksDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; - deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksDeleteMethodOptionalParams, callback?: msRest.ServiceCallback): Promise { + deleteMethod(groupName: string, serviceName: string, projectName: string, taskName: string, options?: Models.TasksDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -229,7 +229,7 @@ export class Tasks { * @param callback The callback */ update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(parameters: Models.ProjectTask, groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -272,7 +272,7 @@ export class Tasks { * @param callback The callback */ cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + cancel(groupName: string, serviceName: string, projectName: string, taskName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -317,7 +317,7 @@ export class Tasks { * @param callback The callback */ command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + command(groupName: string, serviceName: string, projectName: string, taskName: string, parameters: Models.CommandPropertiesUnion, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -352,7 +352,7 @@ export class Tasks { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/lib/operations/usages.ts b/packages/@azure/arm-datamigration/lib/operations/usages.ts index e7c873c543f4..34e58611e057 100644 --- a/packages/@azure/arm-datamigration/lib/operations/usages.ts +++ b/packages/@azure/arm-datamigration/lib/operations/usages.ts @@ -46,7 +46,7 @@ export class Usages { * @param callback The callback */ list(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(location: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { location, @@ -76,7 +76,7 @@ export class Usages { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-datamigration/package.json b/packages/@azure/arm-datamigration/package.json index 9b16b43a0e6a..2af74a3ceb0a 100644 --- a/packages/@azure/arm-datamigration/package.json +++ b/packages/@azure/arm-datamigration/package.json @@ -5,7 +5,7 @@ "version": "0.1.0", "dependencies": { "ms-rest-azure-js": "^1.0.181", - "ms-rest-js": "^1.0.457", + "ms-rest-js": "^1.0.461", "tslib": "^1.9.3" }, "keywords": [ @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +}