Skip to content
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# coding=utf-8
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class AzureActiveDirectoryApp(Model):
"""Azure Active Directory Application.

All required parameters must be populated in order to send to Azure.

:param application_id: Required. Application ID of the Azure Active
Directory Application
:type application_id: str
:param app_key: Required. Key used to authenticate to the Azure Active
Directory Application
:type app_key: str
:param tenant_id: Required. Tenant id of the customer
:type tenant_id: str
"""

_validation = {
'application_id': {'required': True},
'app_key': {'required': True},
'tenant_id': {'required': True},
}

_attribute_map = {
'application_id': {'key': 'applicationId', 'type': 'str'},
'app_key': {'key': 'appKey', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, **kwargs):
super(AzureActiveDirectoryApp, self).__init__(**kwargs)
self.application_id = kwargs.get('application_id', None)
self.app_key = kwargs.get('app_key', None)
self.tenant_id = kwargs.get('tenant_id', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# coding=utf-8
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class AzureActiveDirectoryApp(Model):
"""Azure Active Directory Application.

All required parameters must be populated in order to send to Azure.

:param application_id: Required. Application ID of the Azure Active
Directory Application
:type application_id: str
:param app_key: Required. Key used to authenticate to the Azure Active
Directory Application
:type app_key: str
:param tenant_id: Required. Tenant id of the customer
:type tenant_id: str
"""

_validation = {
'application_id': {'required': True},
'app_key': {'required': True},
'tenant_id': {'required': True},
}

_attribute_map = {
'application_id': {'key': 'applicationId', 'type': 'str'},
'app_key': {'key': 'appKey', 'type': 'str'},
'tenant_id': {'key': 'tenantId', 'type': 'str'},
}

def __init__(self, *, application_id: str, app_key: str, tenant_id: str, **kwargs) -> None:
super(AzureActiveDirectoryApp, self).__init__(**kwargs)
self.application_id = application_id
self.app_key = app_key
self.tenant_id = tenant_id
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# coding=utf-8
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class BackupFileInfo(Model):
"""Information of the backup file.

:param file_location: Location of the backup file in shared folder
:type file_location: str
:param family_sequence_number: Sequence number of the backup file in the
backup set
:type family_sequence_number: int
:param status: Status of the backup file during migration. Possible values
include: 'Arrived', 'Queued', 'Uploading', 'Uploaded', 'Restoring',
'Restored', 'Cancelled'
:type status: str or ~azure.mgmt.datamigration.models.BackupFileStatus
"""

_attribute_map = {
'file_location': {'key': 'fileLocation', 'type': 'str'},
'family_sequence_number': {'key': 'familySequenceNumber', 'type': 'int'},
'status': {'key': 'status', 'type': 'str'},
}

def __init__(self, **kwargs):
super(BackupFileInfo, self).__init__(**kwargs)
self.file_location = kwargs.get('file_location', None)
self.family_sequence_number = kwargs.get('family_sequence_number', None)
self.status = kwargs.get('status', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# coding=utf-8
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class BackupFileInfo(Model):
"""Information of the backup file.

:param file_location: Location of the backup file in shared folder
:type file_location: str
:param family_sequence_number: Sequence number of the backup file in the
backup set
:type family_sequence_number: int
:param status: Status of the backup file during migration. Possible values
include: 'Arrived', 'Queued', 'Uploading', 'Uploaded', 'Restoring',
'Restored', 'Cancelled'
:type status: str or ~azure.mgmt.datamigration.models.BackupFileStatus
"""

_attribute_map = {
'file_location': {'key': 'fileLocation', 'type': 'str'},
'family_sequence_number': {'key': 'familySequenceNumber', 'type': 'int'},
'status': {'key': 'status', 'type': 'str'},
}

def __init__(self, *, file_location: str=None, family_sequence_number: int=None, status=None, **kwargs) -> None:
super(BackupFileInfo, self).__init__(**kwargs)
self.file_location = file_location
self.family_sequence_number = family_sequence_number
self.status = status
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# coding=utf-8
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class BackupSetInfo(Model):
"""Information of backup set.

:param backup_set_id: Id for the set of backup files
:type backup_set_id: str
:param first_lsn: First log sequence number of the backup file
:type first_lsn: str
:param last_lsn: Last log sequence number of the backup file
:type last_lsn: str
:param last_modified_time: Last modified time of the backup file in share
location
:type last_modified_time: datetime
:param backup_type: Enum of the different backup types. Possible values
include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase',
'DifferentialFile', 'Partial', 'DifferentialPartial'
:type backup_type: str or ~azure.mgmt.datamigration.models.BackupType
:param list_of_backup_files: List of files in the backup set
:type list_of_backup_files:
list[~azure.mgmt.datamigration.models.BackupFileInfo]
:param database_name: Name of the database to which the backup set belongs
:type database_name: str
:param backup_start_date: Date and time that the backup operation began
:type backup_start_date: datetime
:param backup_finished_date: Date and time that the backup operation
finished
:type backup_finished_date: datetime
:param is_backup_restored: Whether the backup set is restored or not
:type is_backup_restored: bool
"""

_attribute_map = {
'backup_set_id': {'key': 'backupSetId', 'type': 'str'},
'first_lsn': {'key': 'firstLsn', 'type': 'str'},
'last_lsn': {'key': 'lastLsn', 'type': 'str'},
'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'},
'backup_type': {'key': 'backupType', 'type': 'str'},
'list_of_backup_files': {'key': 'listOfBackupFiles', 'type': '[BackupFileInfo]'},
'database_name': {'key': 'databaseName', 'type': 'str'},
'backup_start_date': {'key': 'backupStartDate', 'type': 'iso-8601'},
'backup_finished_date': {'key': 'backupFinishedDate', 'type': 'iso-8601'},
'is_backup_restored': {'key': 'isBackupRestored', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(BackupSetInfo, self).__init__(**kwargs)
self.backup_set_id = kwargs.get('backup_set_id', None)
self.first_lsn = kwargs.get('first_lsn', None)
self.last_lsn = kwargs.get('last_lsn', None)
self.last_modified_time = kwargs.get('last_modified_time', None)
self.backup_type = kwargs.get('backup_type', None)
self.list_of_backup_files = kwargs.get('list_of_backup_files', None)
self.database_name = kwargs.get('database_name', None)
self.backup_start_date = kwargs.get('backup_start_date', None)
self.backup_finished_date = kwargs.get('backup_finished_date', None)
self.is_backup_restored = kwargs.get('is_backup_restored', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# coding=utf-8
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class BackupSetInfo(Model):
"""Information of backup set.

:param backup_set_id: Id for the set of backup files
:type backup_set_id: str
:param first_lsn: First log sequence number of the backup file
:type first_lsn: str
:param last_lsn: Last log sequence number of the backup file
:type last_lsn: str
:param last_modified_time: Last modified time of the backup file in share
location
:type last_modified_time: datetime
:param backup_type: Enum of the different backup types. Possible values
include: 'Database', 'TransactionLog', 'File', 'DifferentialDatabase',
'DifferentialFile', 'Partial', 'DifferentialPartial'
:type backup_type: str or ~azure.mgmt.datamigration.models.BackupType
:param list_of_backup_files: List of files in the backup set
:type list_of_backup_files:
list[~azure.mgmt.datamigration.models.BackupFileInfo]
:param database_name: Name of the database to which the backup set belongs
:type database_name: str
:param backup_start_date: Date and time that the backup operation began
:type backup_start_date: datetime
:param backup_finished_date: Date and time that the backup operation
finished
:type backup_finished_date: datetime
:param is_backup_restored: Whether the backup set is restored or not
:type is_backup_restored: bool
"""

_attribute_map = {
'backup_set_id': {'key': 'backupSetId', 'type': 'str'},
'first_lsn': {'key': 'firstLsn', 'type': 'str'},
'last_lsn': {'key': 'lastLsn', 'type': 'str'},
'last_modified_time': {'key': 'lastModifiedTime', 'type': 'iso-8601'},
'backup_type': {'key': 'backupType', 'type': 'str'},
'list_of_backup_files': {'key': 'listOfBackupFiles', 'type': '[BackupFileInfo]'},
'database_name': {'key': 'databaseName', 'type': 'str'},
'backup_start_date': {'key': 'backupStartDate', 'type': 'iso-8601'},
'backup_finished_date': {'key': 'backupFinishedDate', 'type': 'iso-8601'},
'is_backup_restored': {'key': 'isBackupRestored', 'type': 'bool'},
}

def __init__(self, *, backup_set_id: str=None, first_lsn: str=None, last_lsn: str=None, last_modified_time=None, backup_type=None, list_of_backup_files=None, database_name: str=None, backup_start_date=None, backup_finished_date=None, is_backup_restored: bool=None, **kwargs) -> None:
super(BackupSetInfo, self).__init__(**kwargs)
self.backup_set_id = backup_set_id
self.first_lsn = first_lsn
self.last_lsn = last_lsn
self.last_modified_time = last_modified_time
self.backup_type = backup_type
self.list_of_backup_files = list_of_backup_files
self.database_name = database_name
self.backup_start_date = backup_start_date
self.backup_finished_date = backup_finished_date
self.is_backup_restored = is_backup_restored
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ class CommandProperties(Model):
supported by current client, this object is returned.

You probably want to use the sub-classes and not this class directly. Known
sub-classes are: MigrateSyncCompleteCommandProperties,
MongoDbCancelCommand, MongoDbFinishCommand, MongoDbRestartCommand
sub-classes are: MigrateMISyncCompleteCommandProperties,
MigrateSyncCompleteCommandProperties, MongoDbCancelCommand,
MongoDbFinishCommand, MongoDbRestartCommand

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -48,7 +49,7 @@ class CommandProperties(Model):
}

_subtype_map = {
'command_type': {'Migrate.Sync.Complete.Database': 'MigrateSyncCompleteCommandProperties', 'cancel': 'MongoDbCancelCommand', 'finish': 'MongoDbFinishCommand', 'restart': 'MongoDbRestartCommand'}
'command_type': {'Migrate.SqlServer.AzureDbSqlMi.Complete': 'MigrateMISyncCompleteCommandProperties', 'Migrate.Sync.Complete.Database': 'MigrateSyncCompleteCommandProperties', 'cancel': 'MongoDbCancelCommand', 'finish': 'MongoDbFinishCommand', 'restart': 'MongoDbRestartCommand'}
}

def __init__(self, **kwargs):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ class CommandProperties(Model):
supported by current client, this object is returned.

You probably want to use the sub-classes and not this class directly. Known
sub-classes are: MigrateSyncCompleteCommandProperties,
MongoDbCancelCommand, MongoDbFinishCommand, MongoDbRestartCommand
sub-classes are: MigrateMISyncCompleteCommandProperties,
MigrateSyncCompleteCommandProperties, MongoDbCancelCommand,
MongoDbFinishCommand, MongoDbRestartCommand

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down Expand Up @@ -48,7 +49,7 @@ class CommandProperties(Model):
}

_subtype_map = {
'command_type': {'Migrate.Sync.Complete.Database': 'MigrateSyncCompleteCommandProperties', 'cancel': 'MongoDbCancelCommand', 'finish': 'MongoDbFinishCommand', 'restart': 'MongoDbRestartCommand'}
'command_type': {'Migrate.SqlServer.AzureDbSqlMi.Complete': 'MigrateMISyncCompleteCommandProperties', 'Migrate.Sync.Complete.Database': 'MigrateSyncCompleteCommandProperties', 'cancel': 'MongoDbCancelCommand', 'finish': 'MongoDbFinishCommand', 'restart': 'MongoDbRestartCommand'}
}

def __init__(self, **kwargs) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ConnectToSourceMySqlTaskInput(Model):
:type source_connection_info:
~azure.mgmt.datamigration.models.MySqlConnectionInfo
:param target_platform: Target Platform for the migration. Possible values
include: 'AzureDbForMySQL'
include: 'SqlServer', 'AzureDbForMySQL'
:type target_platform: str or
~azure.mgmt.datamigration.models.MySqlTargetPlatformType
:param check_permissions_group: Permission group for validations. Possible
Expand All @@ -39,7 +39,7 @@ class ConnectToSourceMySqlTaskInput(Model):
_attribute_map = {
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'},
'target_platform': {'key': 'targetPlatform', 'type': 'str'},
'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'str'},
'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'ServerLevelPermissionsGroup'},
}

def __init__(self, **kwargs):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ConnectToSourceMySqlTaskInput(Model):
:type source_connection_info:
~azure.mgmt.datamigration.models.MySqlConnectionInfo
:param target_platform: Target Platform for the migration. Possible values
include: 'AzureDbForMySQL'
include: 'SqlServer', 'AzureDbForMySQL'
:type target_platform: str or
~azure.mgmt.datamigration.models.MySqlTargetPlatformType
:param check_permissions_group: Permission group for validations. Possible
Expand All @@ -39,7 +39,7 @@ class ConnectToSourceMySqlTaskInput(Model):
_attribute_map = {
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'MySqlConnectionInfo'},
'target_platform': {'key': 'targetPlatform', 'type': 'str'},
'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'str'},
'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'ServerLevelPermissionsGroup'},
}

def __init__(self, *, source_connection_info, target_platform=None, check_permissions_group=None, **kwargs) -> None:
Expand Down
Loading