Skip to content

Commit

Permalink
[AutoPR datamigration/resource-manager] Changes for Microsoft.DataMig…
Browse files Browse the repository at this point in the history
…ration GA stable version 2018-04-19. (#2459)

* Generated from a8c64b93cba2e70f3f1cf054a1f333bc78d3bbcc

Changed default package to 2018-04-19 in readme.md.

* Generated from 16e27cca7b1bc0fcf1c921a46b64cfb48829bb16

Addressed comments.
Ordered readme.md contents from latest to oldest version.
Marked response properties as readonly.

* Generated from aecfb5746abeda1b4b1e82a43ab7ab57304bb029

Addressed comments. Added description for some types.

* Generated from cd9c3743cf6a10844e32314107d2af8ac06ea7df

Addressed comnments. Added missing documentation.

* Generated from 76e946262de9e286acc0dbd49f1440f707189bed

Revert all breaking changes in preview version folders as this PR is only focused on stable 2018-04-19.
Marked some properties as readonly in  '2018-04-19\definitions\TasksCommon.json'
  • Loading branch information
AutorestCI committed May 15, 2018
1 parent c9860e9 commit ceacda2
Show file tree
Hide file tree
Showing 97 changed files with 780 additions and 2,523 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(
super(DataMigrationServiceClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-03-31-preview'
self.api_version = '2018-04-19'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,6 @@
from .tracked_resource_py3 import TrackedResource
from .resource_py3 import Resource
from .odata_error_py3 import ODataError
from .reportable_exception_py3 import ReportableException
from .validate_migration_input_sql_server_sql_mi_task_output_py3 import ValidateMigrationInputSqlServerSqlMITaskOutput
from .blob_share_py3 import BlobShare
from .file_share_py3 import FileShare
from .migrate_sql_server_sql_mi_database_input_py3 import MigrateSqlServerSqlMIDatabaseInput
from .connection_info_py3 import ConnectionInfo
from .sql_connection_info_py3 import SqlConnectionInfo
from .validate_migration_input_sql_server_sql_mi_task_input_py3 import ValidateMigrationInputSqlServerSqlMITaskInput
from .validate_migration_input_sql_server_sql_mi_task_properties_py3 import ValidateMigrationInputSqlServerSqlMITaskProperties
from .validation_error_py3 import ValidationError
from .wait_statistics_py3 import WaitStatistics
from .execution_statistics_py3 import ExecutionStatistics
Expand All @@ -33,6 +24,7 @@
from .migration_validation_database_level_result_py3 import MigrationValidationDatabaseLevelResult
from .migration_validation_database_summary_result_py3 import MigrationValidationDatabaseSummaryResult
from .migration_validation_result_py3 import MigrationValidationResult
from .reportable_exception_py3 import ReportableException
from .migrate_sql_server_sql_db_task_output_error_py3 import MigrateSqlServerSqlDbTaskOutputError
from .migrate_sql_server_sql_db_task_output_table_level_py3 import MigrateSqlServerSqlDbTaskOutputTableLevel
from .data_item_migration_summary_result_py3 import DataItemMigrationSummaryResult
Expand All @@ -41,30 +33,20 @@
from .database_summary_result_py3 import DatabaseSummaryResult
from .migrate_sql_server_sql_db_task_output_migration_level_py3 import MigrateSqlServerSqlDbTaskOutputMigrationLevel
from .migrate_sql_server_sql_db_task_output_py3 import MigrateSqlServerSqlDbTaskOutput
from .connection_info_py3 import ConnectionInfo
from .sql_connection_info_py3 import SqlConnectionInfo
from .sql_migration_task_input_py3 import SqlMigrationTaskInput
from .migration_validation_options_py3 import MigrationValidationOptions
from .migrate_sql_server_sql_db_database_input_py3 import MigrateSqlServerSqlDbDatabaseInput
from .migrate_sql_server_sql_db_task_input_py3 import MigrateSqlServerSqlDbTaskInput
from .migrate_sql_server_sql_db_task_properties_py3 import MigrateSqlServerSqlDbTaskProperties
from .migrate_sql_server_sql_mi_task_output_error_py3 import MigrateSqlServerSqlMITaskOutputError
from .migrate_sql_server_sql_mi_task_output_login_level_py3 import MigrateSqlServerSqlMITaskOutputLoginLevel
from .migrate_sql_server_sql_mi_task_output_agent_job_level_py3 import MigrateSqlServerSqlMITaskOutputAgentJobLevel
from .migrate_sql_server_sql_mi_task_output_database_level_py3 import MigrateSqlServerSqlMITaskOutputDatabaseLevel
from .start_migration_scenario_server_role_result_py3 import StartMigrationScenarioServerRoleResult
from .migrate_sql_server_sql_mi_task_output_migration_level_py3 import MigrateSqlServerSqlMITaskOutputMigrationLevel
from .migrate_sql_server_sql_mi_task_output_py3 import MigrateSqlServerSqlMITaskOutput
from .migrate_sql_server_sql_mi_task_input_py3 import MigrateSqlServerSqlMITaskInput
from .migrate_sql_server_sql_mi_task_properties_py3 import MigrateSqlServerSqlMITaskProperties
from .database_table_py3 import DatabaseTable
from .get_user_tables_sql_task_output_py3 import GetUserTablesSqlTaskOutput
from .get_user_tables_sql_task_input_py3 import GetUserTablesSqlTaskInput
from .get_user_tables_sql_task_properties_py3 import GetUserTablesSqlTaskProperties
from .connect_to_target_sql_db_task_output_py3 import ConnectToTargetSqlDbTaskOutput
from .connect_to_target_sql_db_task_input_py3 import ConnectToTargetSqlDbTaskInput
from .connect_to_target_sql_db_task_properties_py3 import ConnectToTargetSqlDbTaskProperties
from .connect_to_target_sql_mi_task_output_py3 import ConnectToTargetSqlMITaskOutput
from .connect_to_target_sql_mi_task_input_py3 import ConnectToTargetSqlMITaskInput
from .connect_to_target_sql_mi_task_properties_py3 import ConnectToTargetSqlMITaskProperties
from .migration_eligibility_info_py3 import MigrationEligibilityInfo
from .connect_to_source_sql_server_task_output_agent_job_level_py3 import ConnectToSourceSqlServerTaskOutputAgentJobLevel
from .connect_to_source_sql_server_task_output_login_level_py3 import ConnectToSourceSqlServerTaskOutputLoginLevel
Expand Down Expand Up @@ -101,21 +83,15 @@
from .migration_table_metadata_py3 import MigrationTableMetadata
from .data_migration_project_metadata_py3 import DataMigrationProjectMetadata
from .data_migration_error_py3 import DataMigrationError
from .file_share_py3 import FileShare
from .database_file_input_py3 import DatabaseFileInput
from .migrate_sql_server_sql_server_database_input_py3 import MigrateSqlServerSqlServerDatabaseInput
from .blob_share_py3 import BlobShare
from .start_migration_scenario_server_role_result_py3 import StartMigrationScenarioServerRoleResult
except (SyntaxError, ImportError):
from .tracked_resource import TrackedResource
from .resource import Resource
from .odata_error import ODataError
from .reportable_exception import ReportableException
from .validate_migration_input_sql_server_sql_mi_task_output import ValidateMigrationInputSqlServerSqlMITaskOutput
from .blob_share import BlobShare
from .file_share import FileShare
from .migrate_sql_server_sql_mi_database_input import MigrateSqlServerSqlMIDatabaseInput
from .connection_info import ConnectionInfo
from .sql_connection_info import SqlConnectionInfo
from .validate_migration_input_sql_server_sql_mi_task_input import ValidateMigrationInputSqlServerSqlMITaskInput
from .validate_migration_input_sql_server_sql_mi_task_properties import ValidateMigrationInputSqlServerSqlMITaskProperties
from .validation_error import ValidationError
from .wait_statistics import WaitStatistics
from .execution_statistics import ExecutionStatistics
Expand All @@ -127,6 +103,7 @@
from .migration_validation_database_level_result import MigrationValidationDatabaseLevelResult
from .migration_validation_database_summary_result import MigrationValidationDatabaseSummaryResult
from .migration_validation_result import MigrationValidationResult
from .reportable_exception import ReportableException
from .migrate_sql_server_sql_db_task_output_error import MigrateSqlServerSqlDbTaskOutputError
from .migrate_sql_server_sql_db_task_output_table_level import MigrateSqlServerSqlDbTaskOutputTableLevel
from .data_item_migration_summary_result import DataItemMigrationSummaryResult
Expand All @@ -135,30 +112,20 @@
from .database_summary_result import DatabaseSummaryResult
from .migrate_sql_server_sql_db_task_output_migration_level import MigrateSqlServerSqlDbTaskOutputMigrationLevel
from .migrate_sql_server_sql_db_task_output import MigrateSqlServerSqlDbTaskOutput
from .connection_info import ConnectionInfo
from .sql_connection_info import SqlConnectionInfo
from .sql_migration_task_input import SqlMigrationTaskInput
from .migration_validation_options import MigrationValidationOptions
from .migrate_sql_server_sql_db_database_input import MigrateSqlServerSqlDbDatabaseInput
from .migrate_sql_server_sql_db_task_input import MigrateSqlServerSqlDbTaskInput
from .migrate_sql_server_sql_db_task_properties import MigrateSqlServerSqlDbTaskProperties
from .migrate_sql_server_sql_mi_task_output_error import MigrateSqlServerSqlMITaskOutputError
from .migrate_sql_server_sql_mi_task_output_login_level import MigrateSqlServerSqlMITaskOutputLoginLevel
from .migrate_sql_server_sql_mi_task_output_agent_job_level import MigrateSqlServerSqlMITaskOutputAgentJobLevel
from .migrate_sql_server_sql_mi_task_output_database_level import MigrateSqlServerSqlMITaskOutputDatabaseLevel
from .start_migration_scenario_server_role_result import StartMigrationScenarioServerRoleResult
from .migrate_sql_server_sql_mi_task_output_migration_level import MigrateSqlServerSqlMITaskOutputMigrationLevel
from .migrate_sql_server_sql_mi_task_output import MigrateSqlServerSqlMITaskOutput
from .migrate_sql_server_sql_mi_task_input import MigrateSqlServerSqlMITaskInput
from .migrate_sql_server_sql_mi_task_properties import MigrateSqlServerSqlMITaskProperties
from .database_table import DatabaseTable
from .get_user_tables_sql_task_output import GetUserTablesSqlTaskOutput
from .get_user_tables_sql_task_input import GetUserTablesSqlTaskInput
from .get_user_tables_sql_task_properties import GetUserTablesSqlTaskProperties
from .connect_to_target_sql_db_task_output import ConnectToTargetSqlDbTaskOutput
from .connect_to_target_sql_db_task_input import ConnectToTargetSqlDbTaskInput
from .connect_to_target_sql_db_task_properties import ConnectToTargetSqlDbTaskProperties
from .connect_to_target_sql_mi_task_output import ConnectToTargetSqlMITaskOutput
from .connect_to_target_sql_mi_task_input import ConnectToTargetSqlMITaskInput
from .connect_to_target_sql_mi_task_properties import ConnectToTargetSqlMITaskProperties
from .migration_eligibility_info import MigrationEligibilityInfo
from .connect_to_source_sql_server_task_output_agent_job_level import ConnectToSourceSqlServerTaskOutputAgentJobLevel
from .connect_to_source_sql_server_task_output_login_level import ConnectToSourceSqlServerTaskOutputLoginLevel
Expand Down Expand Up @@ -195,8 +162,11 @@
from .migration_table_metadata import MigrationTableMetadata
from .data_migration_project_metadata import DataMigrationProjectMetadata
from .data_migration_error import DataMigrationError
from .file_share import FileShare
from .database_file_input import DatabaseFileInput
from .migrate_sql_server_sql_server_database_input import MigrateSqlServerSqlServerDatabaseInput
from .blob_share import BlobShare
from .start_migration_scenario_server_role_result import StartMigrationScenarioServerRoleResult
from .resource_sku_paged import ResourceSkuPaged
from .available_service_sku_paged import AvailableServiceSkuPaged
from .data_migration_service_paged import DataMigrationServicePaged
Expand All @@ -205,15 +175,14 @@
from .quota_paged import QuotaPaged
from .service_operation_paged import ServiceOperationPaged
from .data_migration_service_client_enums import (
AuthenticationType,
ValidationStatus,
Severity,
UpdateActionType,
ObjectType,
MigrationState,
DatabaseMigrationStage,
MigrationStatus,
LoginMigrationStage,
AuthenticationType,
LoginType,
DatabaseState,
DatabaseCompatLevel,
Expand All @@ -230,21 +199,13 @@
ResourceSkuRestrictionsReasonCode,
ResourceSkuCapacityScaleType,
ErrorType,
LoginMigrationStage,
)

__all__ = [
'TrackedResource',
'Resource',
'ODataError',
'ReportableException',
'ValidateMigrationInputSqlServerSqlMITaskOutput',
'BlobShare',
'FileShare',
'MigrateSqlServerSqlMIDatabaseInput',
'ConnectionInfo',
'SqlConnectionInfo',
'ValidateMigrationInputSqlServerSqlMITaskInput',
'ValidateMigrationInputSqlServerSqlMITaskProperties',
'ValidationError',
'WaitStatistics',
'ExecutionStatistics',
Expand All @@ -256,6 +217,7 @@
'MigrationValidationDatabaseLevelResult',
'MigrationValidationDatabaseSummaryResult',
'MigrationValidationResult',
'ReportableException',
'MigrateSqlServerSqlDbTaskOutputError',
'MigrateSqlServerSqlDbTaskOutputTableLevel',
'DataItemMigrationSummaryResult',
Expand All @@ -264,30 +226,20 @@
'DatabaseSummaryResult',
'MigrateSqlServerSqlDbTaskOutputMigrationLevel',
'MigrateSqlServerSqlDbTaskOutput',
'ConnectionInfo',
'SqlConnectionInfo',
'SqlMigrationTaskInput',
'MigrationValidationOptions',
'MigrateSqlServerSqlDbDatabaseInput',
'MigrateSqlServerSqlDbTaskInput',
'MigrateSqlServerSqlDbTaskProperties',
'MigrateSqlServerSqlMITaskOutputError',
'MigrateSqlServerSqlMITaskOutputLoginLevel',
'MigrateSqlServerSqlMITaskOutputAgentJobLevel',
'MigrateSqlServerSqlMITaskOutputDatabaseLevel',
'StartMigrationScenarioServerRoleResult',
'MigrateSqlServerSqlMITaskOutputMigrationLevel',
'MigrateSqlServerSqlMITaskOutput',
'MigrateSqlServerSqlMITaskInput',
'MigrateSqlServerSqlMITaskProperties',
'DatabaseTable',
'GetUserTablesSqlTaskOutput',
'GetUserTablesSqlTaskInput',
'GetUserTablesSqlTaskProperties',
'ConnectToTargetSqlDbTaskOutput',
'ConnectToTargetSqlDbTaskInput',
'ConnectToTargetSqlDbTaskProperties',
'ConnectToTargetSqlMITaskOutput',
'ConnectToTargetSqlMITaskInput',
'ConnectToTargetSqlMITaskProperties',
'MigrationEligibilityInfo',
'ConnectToSourceSqlServerTaskOutputAgentJobLevel',
'ConnectToSourceSqlServerTaskOutputLoginLevel',
Expand Down Expand Up @@ -324,24 +276,26 @@
'MigrationTableMetadata',
'DataMigrationProjectMetadata',
'DataMigrationError',
'FileShare',
'DatabaseFileInput',
'MigrateSqlServerSqlServerDatabaseInput',
'BlobShare',
'StartMigrationScenarioServerRoleResult',
'ResourceSkuPaged',
'AvailableServiceSkuPaged',
'DataMigrationServicePaged',
'ProjectTaskPaged',
'ProjectPaged',
'QuotaPaged',
'ServiceOperationPaged',
'AuthenticationType',
'ValidationStatus',
'Severity',
'UpdateActionType',
'ObjectType',
'MigrationState',
'DatabaseMigrationStage',
'MigrationStatus',
'LoginMigrationStage',
'AuthenticationType',
'LoginType',
'DatabaseState',
'DatabaseCompatLevel',
Expand All @@ -358,4 +312,5 @@
'ResourceSkuRestrictionsReasonCode',
'ResourceSkuCapacityScaleType',
'ErrorType',
'LoginMigrationStage',
]
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class ConnectToSourceSqlServerTaskInput(Model):
_attribute_map = {
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'},
'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'str'},
'collect_logins': {'key': 'CollectLogins', 'type': 'bool'},
'collect_agent_jobs': {'key': 'CollectAgentJobs', 'type': 'bool'},
'collect_logins': {'key': 'collectLogins', 'type': 'bool'},
'collect_agent_jobs': {'key': 'collectAgentJobs', 'type': 'bool'},
}

def __init__(self, **kwargs):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class ConnectToSourceSqlServerTaskInput(Model):
_attribute_map = {
'source_connection_info': {'key': 'sourceConnectionInfo', 'type': 'SqlConnectionInfo'},
'check_permissions_group': {'key': 'checkPermissionsGroup', 'type': 'str'},
'collect_logins': {'key': 'CollectLogins', 'type': 'bool'},
'collect_agent_jobs': {'key': 'CollectAgentJobs', 'type': 'bool'},
'collect_logins': {'key': 'collectLogins', 'type': 'bool'},
'collect_agent_jobs': {'key': 'collectAgentJobs', 'type': 'bool'},
}

def __init__(self, *, source_connection_info, check_permissions_group=None, collect_logins: bool=False, collect_agent_jobs: bool=False, **kwargs) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOu
'id': {'key': 'id', 'type': 'str'},
'result_type': {'key': 'resultType', 'type': 'str'},
'databases': {'key': 'databases', 'type': '{str}'},
'logins': {'key': 'Logins', 'type': '{str}'},
'agent_jobs': {'key': 'AgentJobs', 'type': '{str}'},
'logins': {'key': 'logins', 'type': '{str}'},
'agent_jobs': {'key': 'agentJobs', 'type': '{str}'},
'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'},
'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'},
'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOu
'id': {'key': 'id', 'type': 'str'},
'result_type': {'key': 'resultType', 'type': 'str'},
'databases': {'key': 'databases', 'type': '{str}'},
'logins': {'key': 'Logins', 'type': '{str}'},
'agent_jobs': {'key': 'AgentJobs', 'type': '{str}'},
'logins': {'key': 'logins', 'type': '{str}'},
'agent_jobs': {'key': 'agentJobs', 'type': '{str}'},
'source_server_version': {'key': 'sourceServerVersion', 'type': 'str'},
'source_server_brand_version': {'key': 'sourceServerBrandVersion', 'type': 'str'},
'validation_errors': {'key': 'validationErrors', 'type': '[ReportableException]'},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties):
All required parameters must be populated in order to send to Azure.
:ivar errors: Array of errors. This is ignored if submitted.
:vartype errors: list[~azure.mgmt.datamigration.models.ODataError]
:param errors: Array of errors. This is ignored if submitted.
:type errors: list[~azure.mgmt.datamigration.models.ODataError]
:ivar state: The state of the task. This is ignored if submitted. Possible
values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded',
'Failed', 'FailedInputValidation', 'Faulted'
Expand All @@ -38,7 +38,6 @@ class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties):
"""

_validation = {
'errors': {'readonly': True},
'state': {'readonly': True},
'task_type': {'required': True},
'output': {'readonly': True},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties):
All required parameters must be populated in order to send to Azure.
:ivar errors: Array of errors. This is ignored if submitted.
:vartype errors: list[~azure.mgmt.datamigration.models.ODataError]
:param errors: Array of errors. This is ignored if submitted.
:type errors: list[~azure.mgmt.datamigration.models.ODataError]
:ivar state: The state of the task. This is ignored if submitted. Possible
values include: 'Unknown', 'Queued', 'Running', 'Canceled', 'Succeeded',
'Failed', 'FailedInputValidation', 'Faulted'
Expand All @@ -38,7 +38,6 @@ class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties):
"""

_validation = {
'errors': {'readonly': True},
'state': {'readonly': True},
'task_type': {'required': True},
'output': {'readonly': True},
Expand All @@ -52,8 +51,8 @@ class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties):
'output': {'key': 'output', 'type': '[ConnectToSourceSqlServerTaskOutput]'},
}

def __init__(self, *, input=None, **kwargs) -> None:
super(ConnectToSourceSqlServerTaskProperties, self).__init__(**kwargs)
def __init__(self, *, errors=None, input=None, **kwargs) -> None:
super(ConnectToSourceSqlServerTaskProperties, self).__init__(errors=errors, **kwargs)
self.input = input
self.output = None
self.task_type = 'ConnectToSource.SqlServer'
Loading

0 comments on commit ceacda2

Please sign in to comment.