Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Azure Active Directory Application
*
*/
class AzureActiveDirectoryApp {
/**
* Create a AzureActiveDirectoryApp.
* @property {string} applicationId Application ID of the Azure Active
* Directory Application
* @property {string} appKey Key used to authenticate to the Azure Active
* Directory Application
* @property {string} tenantId Tenant id of the customer
*/
constructor() {
}

/**
* Defines the metadata of AzureActiveDirectoryApp
*
* @returns {object} metadata of AzureActiveDirectoryApp
*
*/
mapper() {
return {
required: false,
serializedName: 'AzureActiveDirectoryApp',
type: {
name: 'Composite',
className: 'AzureActiveDirectoryApp',
modelProperties: {
applicationId: {
required: true,
serializedName: 'applicationId',
type: {
name: 'String'
}
},
appKey: {
required: true,
serializedName: 'appKey',
type: {
name: 'String'
}
},
tenantId: {
required: true,
serializedName: 'tenantId',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = AzureActiveDirectoryApp;
72 changes: 72 additions & 0 deletions lib/services/datamigrationManagement/lib/models/backupFileInfo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Information of the backup file
*
*/
class BackupFileInfo {
/**
* Create a BackupFileInfo.
* @property {string} [fileLocation] Location of the backup file in shared
* folder
* @property {number} [familySequenceNumber] Sequence number of the backup
* file in the backup set
* @property {string} [status] Status of the backup file during migration.
* Possible values include: 'Arrived', 'Queued', 'Uploading', 'Uploaded',
* 'Restoring', 'Restored', 'Cancelled'
*/
constructor() {
}

/**
* Defines the metadata of BackupFileInfo
*
* @returns {object} metadata of BackupFileInfo
*
*/
mapper() {
return {
required: false,
serializedName: 'BackupFileInfo',
type: {
name: 'Composite',
className: 'BackupFileInfo',
modelProperties: {
fileLocation: {
required: false,
serializedName: 'fileLocation',
type: {
name: 'String'
}
},
familySequenceNumber: {
required: false,
serializedName: 'familySequenceNumber',
type: {
name: 'Number'
}
},
status: {
required: false,
serializedName: 'status',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = BackupFileInfo;
140 changes: 140 additions & 0 deletions lib/services/datamigrationManagement/lib/models/backupSetInfo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Information of backup set
*
*/
class BackupSetInfo {
/**
* Create a BackupSetInfo.
* @property {string} [backupSetId] Id for the set of backup files
* @property {string} [firstLsn] First log sequence number of the backup file
* @property {string} [lastLsn] Last log sequence number of the backup file
* @property {date} [lastModifiedTime] Last modified time of the backup file
* in share location
* @property {string} [backupType] Enum of the different backup types.
* Possible values include: 'Database', 'TransactionLog', 'File',
* 'DifferentialDatabase', 'DifferentialFile', 'Partial',
* 'DifferentialPartial'
* @property {array} [listOfBackupFiles] List of files in the backup set
* @property {string} [databaseName] Name of the database to which the backup
* set belongs
* @property {date} [backupStartDate] Date and time that the backup operation
* began
* @property {date} [backupFinishedDate] Date and time that the backup
* operation finished
* @property {boolean} [isBackupRestored] Whether the backup set is restored
* or not
*/
constructor() {
}

/**
* Defines the metadata of BackupSetInfo
*
* @returns {object} metadata of BackupSetInfo
*
*/
mapper() {
return {
required: false,
serializedName: 'BackupSetInfo',
type: {
name: 'Composite',
className: 'BackupSetInfo',
modelProperties: {
backupSetId: {
required: false,
serializedName: 'backupSetId',
type: {
name: 'String'
}
},
firstLsn: {
required: false,
serializedName: 'firstLsn',
type: {
name: 'String'
}
},
lastLsn: {
required: false,
serializedName: 'lastLsn',
type: {
name: 'String'
}
},
lastModifiedTime: {
required: false,
serializedName: 'lastModifiedTime',
type: {
name: 'DateTime'
}
},
backupType: {
required: false,
serializedName: 'backupType',
type: {
name: 'String'
}
},
listOfBackupFiles: {
required: false,
serializedName: 'listOfBackupFiles',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'BackupFileInfoElementType',
type: {
name: 'Composite',
className: 'BackupFileInfo'
}
}
}
},
databaseName: {
required: false,
serializedName: 'databaseName',
type: {
name: 'String'
}
},
backupStartDate: {
required: false,
serializedName: 'backupStartDate',
type: {
name: 'DateTime'
}
},
backupFinishedDate: {
required: false,
serializedName: 'backupFinishedDate',
type: {
name: 'DateTime'
}
},
isBackupRestored: {
required: false,
serializedName: 'isBackupRestored',
type: {
name: 'Boolean'
}
}
}
}
};
}
}

module.exports = BackupSetInfo;
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ConnectToSourceMySqlTaskInput {
* @property {string} [sourceConnectionInfo.serverName] Name of the server
* @property {number} [sourceConnectionInfo.port] Port for Server
* @property {string} [targetPlatform] Target Platform for the migration.
* Possible values include: 'AzureDbForMySQL'
* Possible values include: 'SqlServer', 'AzureDbForMySQL'
* @property {string} [checkPermissionsGroup] Permission group for
* validations. Possible values include: 'Default',
* 'MigrationFromSqlServerToAzureDB', 'MigrationFromSqlServerToAzureMI',
Expand Down Expand Up @@ -69,7 +69,8 @@ class ConnectToSourceMySqlTaskInput {
required: false,
serializedName: 'checkPermissionsGroup',
type: {
name: 'String'
name: 'Enum',
allowedValues: [ 'Default', 'MigrationFromSqlServerToAzureDB', 'MigrationFromSqlServerToAzureMI', 'MigrationFromMySQLToAzureDBForMySQL' ]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ConnectToSourceMySqlTaskProperties extends models['ProjectTaskProperties']
* server
* @property {number} [input.sourceConnectionInfo.port] Port for Server
* @property {string} [input.targetPlatform] Target Platform for the
* migration. Possible values include: 'AzureDbForMySQL'
* migration. Possible values include: 'SqlServer', 'AzureDbForMySQL'
* @property {string} [input.checkPermissionsGroup] Permission group for
* validations. Possible values include: 'Default',
* 'MigrationFromSqlServerToAzureDB', 'MigrationFromSqlServerToAzureMI',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Input for the task that validates connection to PostgreSQL and source server
* requirements
*
*/
class ConnectToSourcePostgreSqlSyncTaskInput {
/**
* Create a ConnectToSourcePostgreSqlSyncTaskInput.
* @property {object} sourceConnectionInfo Connection information for source
* PostgreSQL server
* @property {string} [sourceConnectionInfo.serverName] Name of the server
* @property {string} [sourceConnectionInfo.databaseName] Name of the
* database
* @property {number} [sourceConnectionInfo.port] Port for Server
*/
constructor() {
}

/**
* Defines the metadata of ConnectToSourcePostgreSqlSyncTaskInput
*
* @returns {object} metadata of ConnectToSourcePostgreSqlSyncTaskInput
*
*/
mapper() {
return {
required: false,
serializedName: 'ConnectToSourcePostgreSqlSyncTaskInput',
type: {
name: 'Composite',
className: 'ConnectToSourcePostgreSqlSyncTaskInput',
modelProperties: {
sourceConnectionInfo: {
required: true,
serializedName: 'sourceConnectionInfo',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'ConnectionInfo',
className: 'PostgreSqlConnectionInfo'
}
}
}
}
};
}
}

module.exports = ConnectToSourcePostgreSqlSyncTaskInput;
Loading