From bc90b2dca5ec17c09358846f4aeb917c5b29bd6e Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 16 Jan 2023 10:03:38 +0000 Subject: [PATCH] CodeGen from PR 22204 in Azure/azure-rest-api-specs Merge 71cdfe58074f657cb9cc677d782da78d80247b70 into c2a1aaa0440d1aec45830646c4dfc27552b0b1e3 --- .../azure-mgmt-datamigration/_meta.json | 6 +- .../mgmt/datamigration/_serialization.py | 87 +- .../azure/mgmt/datamigration/_vendor.py | 5 +- .../azure/mgmt/datamigration/_version.py | 2 +- .../mgmt/datamigration/models/_models_py3.py | 1166 +++++++++-------- 5 files changed, 703 insertions(+), 563 deletions(-) diff --git a/sdk/datamigration/azure-mgmt-datamigration/_meta.json b/sdk/datamigration/azure-mgmt-datamigration/_meta.json index 26eab4282e26..0bf045fa0e3a 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/_meta.json +++ b/sdk/datamigration/azure-mgmt-datamigration/_meta.json @@ -1,11 +1,11 @@ { - "commit": "3ce1e043e2d0e57016437a3870f40e33da8a6397", + "commit": "5f678283f97887e5321bf46f8d43358fa3f0dc56", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.9.2", "use": [ - "@autorest/python@6.2.7", + "@autorest/python@6.2.16", "@autorest/modelerfour@4.24.3" ], - "autorest_command": "autorest specification/datamigration/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False", + "autorest_command": "autorest specification/datamigration/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.2.16 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False", "readme": "specification/datamigration/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_serialization.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_serialization.py index 2c170e28dbca..f17c068e833e 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_serialization.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_serialization.py @@ -38,7 +38,22 @@ import re import sys import codecs -from typing import Optional, Union, AnyStr, IO, Mapping +from typing import ( + Dict, + Any, + cast, + Optional, + Union, + AnyStr, + IO, + Mapping, + Callable, + TypeVar, + MutableMapping, + Type, + List, + Mapping, +) try: from urllib import quote # type: ignore @@ -48,12 +63,14 @@ import isodate # type: ignore -from typing import Dict, Any, cast - from azure.core.exceptions import DeserializationError, SerializationError, raise_with_traceback +from azure.core.serialization import NULL as AzureCoreNull _BOM = codecs.BOM_UTF8.decode(encoding="utf-8") +ModelType = TypeVar("ModelType", bound="Model") +JSON = MutableMapping[str, Any] + class RawDeserializer: @@ -277,8 +294,8 @@ class Model(object): _attribute_map: Dict[str, Dict[str, Any]] = {} _validation: Dict[str, Dict[str, Any]] = {} - def __init__(self, **kwargs): - self.additional_properties = {} + def __init__(self, **kwargs: Any) -> None: + self.additional_properties: Dict[str, Any] = {} for k in kwargs: if k not in self._attribute_map: _LOGGER.warning("%s is not a known attribute of class %s and will be ignored", k, self.__class__) @@ -287,25 +304,25 @@ def __init__(self, **kwargs): else: setattr(self, k, kwargs[k]) - def __eq__(self, other): + def __eq__(self, other: Any) -> bool: """Compare objects by comparing all attributes.""" if isinstance(other, self.__class__): return self.__dict__ == other.__dict__ return False - def __ne__(self, other): + def __ne__(self, other: Any) -> bool: """Compare objects by comparing all attributes.""" return not self.__eq__(other) - def __str__(self): + def __str__(self) -> str: return str(self.__dict__) @classmethod - def enable_additional_properties_sending(cls): + def enable_additional_properties_sending(cls) -> None: cls._attribute_map["additional_properties"] = {"key": "", "type": "{object}"} @classmethod - def is_xml_model(cls): + def is_xml_model(cls) -> bool: try: cls._xml_map # type: ignore except AttributeError: @@ -322,7 +339,7 @@ def _create_xml_node(cls): return _create_xml_node(xml_map.get("name", cls.__name__), xml_map.get("prefix", None), xml_map.get("ns", None)) - def serialize(self, keep_readonly=False, **kwargs): + def serialize(self, keep_readonly: bool = False, **kwargs: Any) -> JSON: """Return the JSON that would be sent to azure from this model. This is an alias to `as_dict(full_restapi_key_transformer, keep_readonly=False)`. @@ -336,8 +353,13 @@ def serialize(self, keep_readonly=False, **kwargs): serializer = Serializer(self._infer_class_models()) return serializer._serialize(self, keep_readonly=keep_readonly, **kwargs) - def as_dict(self, keep_readonly=True, key_transformer=attribute_transformer, **kwargs): - """Return a dict that can be JSONify using json.dump. + def as_dict( + self, + keep_readonly: bool = True, + key_transformer: Callable[[str, Dict[str, Any], Any], Any] = attribute_transformer, + **kwargs: Any + ) -> JSON: + """Return a dict that can be serialized using json.dump. Advanced usage might optionally use a callback as parameter: @@ -384,7 +406,7 @@ def _infer_class_models(cls): return client_models @classmethod - def deserialize(cls, data, content_type=None): + def deserialize(cls: Type[ModelType], data: Any, content_type: Optional[str] = None) -> ModelType: """Parse a str using the RestAPI syntax and return a model. :param str data: A str using RestAPI structure. JSON by default. @@ -396,7 +418,12 @@ def deserialize(cls, data, content_type=None): return deserializer(cls.__name__, data, content_type=content_type) @classmethod - def from_dict(cls, data, key_extractors=None, content_type=None): + def from_dict( + cls: Type[ModelType], + data: Any, + key_extractors: Optional[Callable[[str, Dict[str, Any], Any], Any]] = None, + content_type: Optional[str] = None, + ) -> ModelType: """Parse a dict using given key extractor return a model. By default consider key @@ -409,8 +436,8 @@ def from_dict(cls, data, key_extractors=None, content_type=None): :raises: DeserializationError if something went wrong """ deserializer = Deserializer(cls._infer_class_models()) - deserializer.key_extractors = ( - [ + deserializer.key_extractors = ( # type: ignore + [ # type: ignore attribute_key_case_insensitive_extractor, rest_key_case_insensitive_extractor, last_rest_key_case_insensitive_extractor, @@ -518,7 +545,7 @@ class Serializer(object): "multiple": lambda x, y: x % y != 0, } - def __init__(self, classes=None): + def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None): self.serialize_type = { "iso-8601": Serializer.serialize_iso, "rfc-1123": Serializer.serialize_rfc, @@ -534,7 +561,7 @@ def __init__(self, classes=None): "[]": self.serialize_iter, "{}": self.serialize_dict, } - self.dependencies = dict(classes) if classes else {} + self.dependencies: Dict[str, Type[ModelType]] = dict(classes) if classes else {} self.key_transformer = full_restapi_key_transformer self.client_side_validation = True @@ -626,8 +653,7 @@ def _serialize(self, target_obj, data_type=None, **kwargs): serialized.append(local_node) # type: ignore else: # JSON for k in reversed(keys): # type: ignore - unflattened = {k: new_attr} - new_attr = unflattened + new_attr = {k: new_attr} _new_attr = new_attr _serialized = serialized @@ -656,8 +682,8 @@ def body(self, data, data_type, **kwargs): """ # Just in case this is a dict - internal_data_type = data_type.strip("[]{}") - internal_data_type = self.dependencies.get(internal_data_type, None) + internal_data_type_str = data_type.strip("[]{}") + internal_data_type = self.dependencies.get(internal_data_type_str, None) try: is_xml_model_serialization = kwargs["is_xml"] except KeyError: @@ -777,6 +803,8 @@ def serialize_data(self, data, data_type, **kwargs): raise ValueError("No value for given attribute") try: + if data is AzureCoreNull: + return None if data_type in self.basic_types.values(): return self.serialize_basic(data, data_type, **kwargs) @@ -1161,7 +1189,8 @@ def rest_key_extractor(attr, attr_desc, data): working_data = data while "." in key: - dict_keys = _FLATTEN.split(key) + # Need the cast, as for some reasons "split" is typed as list[str | Any] + dict_keys = cast(List[str], _FLATTEN.split(key)) if len(dict_keys) == 1: key = _decode_attribute_map_key(dict_keys[0]) break @@ -1332,7 +1361,7 @@ class Deserializer(object): valid_date = re.compile(r"\d{4}[-]\d{2}[-]\d{2}T\d{2}:\d{2}:\d{2}" r"\.?\d*Z?[-+]?[\d{2}]?:?[\d{2}]?") - def __init__(self, classes=None): + def __init__(self, classes: Optional[Mapping[str, Type[ModelType]]] = None): self.deserialize_type = { "iso-8601": Deserializer.deserialize_iso, "rfc-1123": Deserializer.deserialize_rfc, @@ -1352,7 +1381,7 @@ def __init__(self, classes=None): "duration": (isodate.Duration, datetime.timedelta), "iso-8601": (datetime.datetime), } - self.dependencies = dict(classes) if classes else {} + self.dependencies: Dict[str, Type[ModelType]] = dict(classes) if classes else {} self.key_extractors = [rest_key_extractor, xml_key_extractor] # Additional properties only works if the "rest_key_extractor" is used to # extract the keys. Making it to work whatever the key extractor is too much @@ -1471,7 +1500,7 @@ def _classify_target(self, target, data): Once classification has been determined, initialize object. :param str target: The target object type to deserialize to. - :param str/dict data: The response data to deseralize. + :param str/dict data: The response data to deserialize. """ if target is None: return None, None @@ -1486,7 +1515,7 @@ def _classify_target(self, target, data): target = target._classify(data, self.dependencies) except AttributeError: pass # Target is not a Model, no classify - return target, target.__class__.__name__ + return target, target.__class__.__name__ # type: ignore def failsafe_deserialize(self, target_obj, data, content_type=None): """Ignores any errors encountered in deserialization, @@ -1496,7 +1525,7 @@ def failsafe_deserialize(self, target_obj, data, content_type=None): a deserialization error. :param str target_obj: The target object type to deserialize to. - :param str/dict data: The response data to deseralize. + :param str/dict data: The response data to deserialize. :param str content_type: Swagger "produces" if available. """ try: diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_vendor.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_vendor.py index 9aad73fc743e..bd0df84f5319 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_vendor.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_vendor.py @@ -5,6 +5,8 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- +from typing import List, cast + from azure.core.pipeline.transport import HttpRequest @@ -22,6 +24,7 @@ def _format_url_section(template, **kwargs): try: return template.format(**kwargs) except KeyError as key: - formatted_components = template.split("/") + # Need the cast, as for some reasons "split" is typed as list[str | Any] + formatted_components = cast(List[str], template.split("/")) components = [c for c in formatted_components if "{}".format(key.args[0]) not in c] template = "/".join(components) diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_version.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_version.py index b5e2ac841400..e5754a47ce68 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_version.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "10.1.0b1" +VERSION = "1.0.0b1" diff --git a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models_py3.py b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models_py3.py index 3a2b38ac41ea..7f0589a414bc 100644 --- a/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models_py3.py +++ b/sdk/datamigration/azure-mgmt-datamigration/azure/mgmt/datamigration/models/_models_py3.py @@ -44,7 +44,7 @@ class ApiError(_serialization.Model): "system_data": {"key": "systemData", "type": "SystemData"}, } - def __init__(self, *, error: Optional["_models.ODataError"] = None, **kwargs): + def __init__(self, *, error: Optional["_models.ODataError"] = None, **kwargs: Any) -> None: """ :keyword error: Error information in OData format. :paramtype error: ~azure.mgmt.datamigration.models.ODataError @@ -68,7 +68,7 @@ class AuthenticationKeys(_serialization.Model): "auth_key2": {"key": "authKey2", "type": "str"}, } - def __init__(self, *, auth_key1: Optional[str] = None, auth_key2: Optional[str] = None, **kwargs): + def __init__(self, *, auth_key1: Optional[str] = None, auth_key2: Optional[str] = None, **kwargs: Any) -> None: """ :keyword auth_key1: The first authentication key. :paramtype auth_key1: str @@ -103,8 +103,8 @@ def __init__( resource_type: Optional[str] = None, sku: Optional["_models.AvailableServiceSkuSku"] = None, capacity: Optional["_models.AvailableServiceSkuCapacity"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword resource_type: The resource type, including the provider namespace. :paramtype resource_type: str @@ -147,8 +147,8 @@ def __init__( maximum: Optional[int] = None, default: Optional[int] = None, scale_type: Optional[Union[str, "_models.ServiceScalability"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword minimum: The minimum capacity, usually 0 or 1. :paramtype minimum: int @@ -194,8 +194,8 @@ def __init__( family: Optional[str] = None, size: Optional[str] = None, tier: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The name of the SKU. :paramtype name: str @@ -240,8 +240,8 @@ def __init__( app_key: Optional[str] = None, tenant_id: Optional[str] = None, ignore_azure_permissions: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword application_id: Application ID of the Azure Active Directory Application. :paramtype application_id: str @@ -282,8 +282,8 @@ def __init__( storage_account_resource_id: Optional[str] = None, account_key: Optional[str] = None, blob_container_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword storage_account_resource_id: Resource Id of the storage account where backups are stored. @@ -318,8 +318,8 @@ def __init__( *, source_location: Optional["_models.SourceLocation"] = None, target_location: Optional["_models.TargetLocation"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_location: Source location of backups. :paramtype source_location: ~azure.mgmt.datamigration.models.SourceLocation @@ -355,8 +355,8 @@ def __init__( file_location: Optional[str] = None, family_sequence_number: Optional[int] = None, status: Optional[Union[str, "_models.BackupFileStatus"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword file_location: Location of the backup file in shared folder. :paramtype file_location: str @@ -425,8 +425,8 @@ def __init__( backup_start_date: Optional[datetime.datetime] = None, backup_finished_date: Optional[datetime.datetime] = None, is_backup_restored: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword backup_set_id: Id for the set of backup files. :paramtype backup_set_id: str @@ -475,7 +475,7 @@ class BlobShare(_serialization.Model): "sas_uri": {"key": "sasUri", "type": "str"}, } - def __init__(self, *, sas_uri: Optional[str] = None, **kwargs): + def __init__(self, *, sas_uri: Optional[str] = None, **kwargs: Any) -> None: """ :keyword sas_uri: SAS URI of Azure Storage Account Container. :paramtype sas_uri: str @@ -495,7 +495,7 @@ class CheckOCIDriverTaskInput(_serialization.Model): "server_version": {"key": "serverVersion", "type": "str"}, } - def __init__(self, *, server_version: Optional[str] = None, **kwargs): + def __init__(self, *, server_version: Optional[str] = None, **kwargs: Any) -> None: """ :keyword server_version: Version of the source server to check against. Optional. :paramtype server_version: str @@ -524,7 +524,7 @@ class CheckOCIDriverTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, *, installed_driver: Optional["_models.OracleOCIDriverInfo"] = None, **kwargs): + def __init__(self, *, installed_driver: Optional["_models.OracleOCIDriverInfo"] = None, **kwargs: Any) -> None: """ :keyword installed_driver: Information about the installed driver if found and valid. :paramtype installed_driver: ~azure.mgmt.datamigration.models.OracleOCIDriverInfo @@ -535,7 +535,8 @@ def __init__(self, *, installed_driver: Optional["_models.OracleOCIDriverInfo"] class ProjectTaskProperties(_serialization.Model): - """Base class for all types of DMS task properties. If task is not supported by current client, this object is returned. + """Base class for all types of DMS task properties. If task is not 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: ConnectToMongoDbTaskProperties, ConnectToSourceMySqlTaskProperties, @@ -654,7 +655,7 @@ class ProjectTaskProperties(_serialization.Model): } } - def __init__(self, *, client_data: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, client_data: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -731,8 +732,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.CheckOCIDriverTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -746,7 +747,8 @@ def __init__( class CommandProperties(_serialization.Model): - """Base class for all types of DMS command properties. If command is not supported by current client, this object is returned. + """Base class for all types of DMS command properties. If command is not 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: MigrateMISyncCompleteCommandProperties, MigrateSyncCompleteCommandProperties, @@ -788,7 +790,7 @@ class CommandProperties(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.command_type: Optional[str] = None @@ -834,7 +836,7 @@ class ConnectionInfo(_serialization.Model): } } - def __init__(self, *, user_name: Optional[str] = None, password: Optional[str] = None, **kwargs): + def __init__(self, *, user_name: Optional[str] = None, password: Optional[str] = None, **kwargs: Any) -> None: """ :keyword user_name: User name. :paramtype user_name: str @@ -848,7 +850,8 @@ def __init__(self, *, user_name: Optional[str] = None, password: Optional[str] = class ConnectToMongoDbTaskProperties(ProjectTaskProperties): - """Properties for the task that validates the connection to and provides information about a MongoDB server. + """Properties for the task that validates the connection to and provides information about a + MongoDB server. Variables are only populated by the server, and will be ignored when sending a request. @@ -911,8 +914,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.MongoDbConnectionInfo"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -962,8 +965,8 @@ def __init__( target_platform: Optional[Union[str, "_models.MySqlTargetPlatformType"]] = None, check_permissions_group: Optional[Union[str, "_models.ServerLevelPermissionsGroup"]] = None, is_offline_migration: bool = False, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Information for connecting to MySQL source. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo @@ -1049,8 +1052,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ConnectToSourceMySqlTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -1096,7 +1099,7 @@ class ConnectToSourceNonSqlTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -1123,7 +1126,7 @@ class ConnectToSourceOracleSyncTaskInput(_serialization.Model): "source_connection_info": {"key": "sourceConnectionInfo", "type": "OracleConnectionInfo"}, } - def __init__(self, *, source_connection_info: "_models.OracleConnectionInfo", **kwargs): + def __init__(self, *, source_connection_info: "_models.OracleConnectionInfo", **kwargs: Any) -> None: """ :keyword source_connection_info: Information for connecting to Oracle source. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.OracleConnectionInfo @@ -1161,7 +1164,7 @@ class ConnectToSourceOracleSyncTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.source_server_version = None @@ -1234,8 +1237,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ConnectToSourceOracleSyncTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -1265,7 +1268,7 @@ class ConnectToSourcePostgreSqlSyncTaskInput(_serialization.Model): "source_connection_info": {"key": "sourceConnectionInfo", "type": "PostgreSqlConnectionInfo"}, } - def __init__(self, *, source_connection_info: "_models.PostgreSqlConnectionInfo", **kwargs): + def __init__(self, *, source_connection_info: "_models.PostgreSqlConnectionInfo", **kwargs: Any) -> None: """ :keyword source_connection_info: Connection information for source PostgreSQL server. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo @@ -1307,7 +1310,7 @@ class ConnectToSourcePostgreSqlSyncTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -1318,7 +1321,8 @@ def __init__(self, **kwargs): class ConnectToSourcePostgreSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to PostgreSQL server and source server requirements for online migration. + """Properties for the task that validates connection to PostgreSQL server and source server + requirements for online migration. Variables are only populated by the server, and will be ignored when sending a request. @@ -1381,8 +1385,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ConnectToSourcePostgreSqlSyncTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -1396,7 +1400,8 @@ def __init__( class ConnectToSourceSqlServerSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to SQL Server and source server requirements for online migration. + """Properties for the task that validates connection to SQL Server and source server requirements + for online migration. Variables are only populated by the server, and will be ignored when sending a request. @@ -1459,8 +1464,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ConnectToSourceSqlServerTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -1474,7 +1479,8 @@ def __init__( class ConnectToSourceSqlServerTaskInput(_serialization.Model): - """Input for the task that validates connection to SQL Server and also validates source server requirements. + """Input for the task that validates connection to SQL Server and also validates source server + requirements. All required parameters must be populated in order to send to Azure. @@ -1527,8 +1533,8 @@ def __init__( collect_tde_certificate_info: bool = False, validate_ssis_catalog_only: bool = False, encrypted_key_for_secure_fields: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Connection information for Source SQL Server. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -1564,7 +1570,8 @@ def __init__( class ConnectToSourceSqlServerTaskOutput(_serialization.Model): - """Output for the task that validates connection to SQL Server and also validates source server requirements. + """Output for the task that validates connection to SQL Server and also validates source server + requirements. You probably want to use the sub-classes and not this class directly. Known sub-classes are: ConnectToSourceSqlServerTaskOutputAgentJobLevel, @@ -1600,7 +1607,7 @@ class ConnectToSourceSqlServerTaskOutput(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -1608,7 +1615,8 @@ def __init__(self, **kwargs): class ConnectToSourceSqlServerTaskOutputAgentJobLevel(ConnectToSourceSqlServerTaskOutput): - """Agent Job level output for the task that validates connection to SQL Server and also validates source server requirements. + """Agent Job level output for the task that validates connection to SQL Server and also validates + source server requirements. Variables are only populated by the server, and will be ignored when sending a request. @@ -1658,7 +1666,7 @@ class ConnectToSourceSqlServerTaskOutputAgentJobLevel(ConnectToSourceSqlServerTa "migration_eligibility": {"key": "migrationEligibility", "type": "MigrationEligibilityInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "AgentJobLevelOutput" @@ -1672,7 +1680,8 @@ def __init__(self, **kwargs): class ConnectToSourceSqlServerTaskOutputDatabaseLevel(ConnectToSourceSqlServerTaskOutput): - """Database level output for the task that validates connection to SQL Server and also validates source server requirements. + """Database level output for the task that validates connection to SQL Server and also validates + source server requirements. Variables are only populated by the server, and will be ignored when sending a request. @@ -1718,7 +1727,7 @@ class ConnectToSourceSqlServerTaskOutputDatabaseLevel(ConnectToSourceSqlServerTa "database_state": {"key": "databaseState", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "DatabaseLevelOutput" @@ -1730,7 +1739,8 @@ def __init__(self, **kwargs): class ConnectToSourceSqlServerTaskOutputLoginLevel(ConnectToSourceSqlServerTaskOutput): - """Login level output for the task that validates connection to SQL Server and also validates source server requirements. + """Login level output for the task that validates connection to SQL Server and also validates + source server requirements. Variables are only populated by the server, and will be ignored when sending a request. @@ -1773,7 +1783,7 @@ class ConnectToSourceSqlServerTaskOutputLoginLevel(ConnectToSourceSqlServerTaskO "migration_eligibility": {"key": "migrationEligibility", "type": "MigrationEligibilityInfo"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "LoginLevelOutput" @@ -1785,7 +1795,8 @@ def __init__(self, **kwargs): class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOutput): - """Task level output for the task that validates connection to SQL Server and also validates source server requirements. + """Task level output for the task that validates connection to SQL Server and also validates + source server requirements. Variables are only populated by the server, and will be ignored when sending a request. @@ -1836,7 +1847,7 @@ class ConnectToSourceSqlServerTaskOutputTaskLevel(ConnectToSourceSqlServerTaskOu "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "TaskLevelOutput" @@ -1850,7 +1861,8 @@ def __init__(self, **kwargs): class ConnectToSourceSqlServerTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to SQL Server and also validates source server requirements. + """Properties for the task that validates connection to SQL Server and also validates source + server requirements. Variables are only populated by the server, and will be ignored when sending a request. @@ -1917,8 +1929,8 @@ def __init__( client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ConnectToSourceSqlServerTaskInput"] = None, task_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -1935,7 +1947,8 @@ def __init__( class ConnectToTargetAzureDbForMySqlTaskInput(_serialization.Model): - """Input for the task that validates connection to Azure Database for MySQL and target server requirements. + """Input for the task that validates connection to Azure Database for MySQL and target server + requirements. All required parameters must be populated in order to send to Azure. @@ -1965,8 +1978,8 @@ def __init__( source_connection_info: "_models.MySqlConnectionInfo", target_connection_info: "_models.MySqlConnectionInfo", is_offline_migration: bool = False, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Connection information for source MySQL server. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo @@ -1983,7 +1996,8 @@ def __init__( class ConnectToTargetAzureDbForMySqlTaskOutput(_serialization.Model): - """Output for the task that validates connection to Azure Database for MySQL and target server requirements. + """Output for the task that validates connection to Azure Database for MySQL and target server + requirements. Variables are only populated by the server, and will be ignored when sending a request. @@ -2015,7 +2029,7 @@ class ConnectToTargetAzureDbForMySqlTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -2026,7 +2040,8 @@ def __init__(self, **kwargs): class ConnectToTargetAzureDbForMySqlTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to Azure Database for MySQL and target server requirements. + """Properties for the task that validates connection to Azure Database for MySQL and target server + requirements. Variables are only populated by the server, and will be ignored when sending a request. @@ -2090,8 +2105,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ConnectToTargetAzureDbForMySqlTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -2105,7 +2120,8 @@ def __init__( class ConnectToTargetAzureDbForPostgreSqlSyncTaskInput(_serialization.Model): - """Input for the task that validates connection to Azure Database for PostgreSQL and target server requirements. + """Input for the task that validates connection to Azure Database for PostgreSQL and target server + requirements. All required parameters must be populated in order to send to Azure. @@ -2131,8 +2147,8 @@ def __init__( *, source_connection_info: "_models.PostgreSqlConnectionInfo", target_connection_info: "_models.PostgreSqlConnectionInfo", - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Connection information for source PostgreSQL server. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo @@ -2146,7 +2162,8 @@ def __init__( class ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput(_serialization.Model): - """Output for the task that validates connection to Azure Database for PostgreSQL and target server requirements. + """Output for the task that validates connection to Azure Database for PostgreSQL and target + server requirements. Variables are only populated by the server, and will be ignored when sending a request. @@ -2178,7 +2195,7 @@ class ConnectToTargetAzureDbForPostgreSqlSyncTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -2189,7 +2206,8 @@ def __init__(self, **kwargs): class ConnectToTargetAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to Azure Database For PostgreSQL server and target server requirements for online migration. + """Properties for the task that validates connection to Azure Database For PostgreSQL server and + target server requirements for online migration. Variables are only populated by the server, and will be ignored when sending a request. @@ -2254,8 +2272,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ConnectToTargetAzureDbForPostgreSqlSyncTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -2270,7 +2288,8 @@ def __init__( class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput(_serialization.Model): - """Input for the task that validates connection to Azure Database for PostgreSQL and target server requirements for Oracle source. + """Input for the task that validates connection to Azure Database for PostgreSQL and target server + requirements for Oracle source. All required parameters must be populated in order to send to Azure. @@ -2287,7 +2306,7 @@ class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput(_serialization.Mode "target_connection_info": {"key": "targetConnectionInfo", "type": "PostgreSqlConnectionInfo"}, } - def __init__(self, *, target_connection_info: "_models.PostgreSqlConnectionInfo", **kwargs): + def __init__(self, *, target_connection_info: "_models.PostgreSqlConnectionInfo", **kwargs: Any) -> None: """ :keyword target_connection_info: Connection information for target Azure Database for PostgreSQL server. Required. @@ -2298,7 +2317,8 @@ def __init__(self, *, target_connection_info: "_models.PostgreSqlConnectionInfo" class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutput(_serialization.Model): - """Output for the task that validates connection to Azure Database for PostgreSQL and target server requirements for Oracle source. + """Output for the task that validates connection to Azure Database for PostgreSQL and target + server requirements for Oracle source. Variables are only populated by the server, and will be ignored when sending a request. @@ -2339,8 +2359,8 @@ def __init__( database_schema_map: Optional[ List["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapItem"] ] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword database_schema_map: Mapping of schemas per database. :paramtype database_schema_map: @@ -2368,7 +2388,7 @@ class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskOutputDatabaseSchemaMapIt "schemas": {"key": "schemas", "type": "[str]"}, } - def __init__(self, *, database: Optional[str] = None, schemas: Optional[List[str]] = None, **kwargs): + def __init__(self, *, database: Optional[str] = None, schemas: Optional[List[str]] = None, **kwargs: Any) -> None: """ :keyword database: :paramtype database: str @@ -2381,7 +2401,8 @@ def __init__(self, *, database: Optional[str] = None, schemas: Optional[List[str class ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to Azure Database For PostgreSQL server and target server requirements for online migration for Oracle source. + """Properties for the task that validates connection to Azure Database For PostgreSQL server and + target server requirements for online migration for Oracle source. Variables are only populated by the server, and will be ignored when sending a request. @@ -2446,8 +2467,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ConnectToTargetOracleAzureDbForPostgreSqlSyncTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -2487,8 +2508,8 @@ def __init__( *, source_connection_info: "_models.SqlConnectionInfo", target_connection_info: "_models.SqlConnectionInfo", - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Connection information for source SQL Server. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -2501,7 +2522,8 @@ def __init__( class ConnectToTargetSqlDbSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates connection to SQL DB and target server requirements for online migration. + """Properties for the task that validates connection to SQL DB and target server requirements for + online migration. Variables are only populated by the server, and will be ignored when sending a request. @@ -2564,8 +2586,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ConnectToTargetSqlDbSyncTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -2604,8 +2626,8 @@ def __init__( *, target_connection_info: "_models.SqlConnectionInfo", query_object_counts: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_connection_info: Connection information for target SQL DB. Required. :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -2647,7 +2669,7 @@ class ConnectToTargetSqlDbTaskOutput(_serialization.Model): "target_server_brand_version": {"key": "targetServerBrandVersion", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -2724,8 +2746,8 @@ def __init__( client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ConnectToTargetSqlDbTaskInput"] = None, created_on: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -2742,7 +2764,8 @@ def __init__( class ConnectToTargetSqlMISyncTaskInput(_serialization.Model): - """Input for the task that validates connection to Azure SQL Database Managed Instance online scenario. + """Input for the task that validates connection to Azure SQL Database Managed Instance online + scenario. All required parameters must be populated in order to send to Azure. @@ -2769,8 +2792,8 @@ def __init__( *, target_connection_info: "_models.MiSqlConnectionInfo", azure_app: "_models.AzureActiveDirectoryApp", - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_connection_info: Connection information for Azure SQL Database Managed Instance. Required. @@ -2810,7 +2833,7 @@ class ConnectToTargetSqlMISyncTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.target_server_version = None @@ -2882,8 +2905,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ConnectToTargetSqlMISyncTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -2930,8 +2953,8 @@ def __init__( collect_logins: bool = True, collect_agent_jobs: bool = True, validate_ssis_catalog_only: bool = False, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_connection_info: Connection information for target SQL Server. Required. :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -2987,7 +3010,7 @@ class ConnectToTargetSqlMITaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -3062,8 +3085,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ConnectToTargetSqlMITaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -3133,7 +3156,7 @@ class CopyProgressDetails(_serialization.Model): # pylint: disable=too-many-ins "copy_duration": {"key": "copyDuration", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.table_name = None @@ -3233,8 +3256,8 @@ def __init__( server_visible_online_core_count: Optional[int] = None, database_state: Optional[Union[str, "_models.DatabaseState"]] = None, server_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Unique identifier for the database. :paramtype id: str @@ -3343,7 +3366,7 @@ class DatabaseBackupInfo(_serialization.Model): "backup_finish_date": {"key": "backupFinishDate", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.database_name = None @@ -3396,8 +3419,8 @@ def __init__( restore_full_name: Optional[str] = None, file_type: Optional[Union[str, "_models.DatabaseFileType"]] = None, size_mb: Optional[float] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword database_name: Name of the database. :paramtype database_name: str @@ -3457,8 +3480,8 @@ def __init__( physical_full_name: Optional[str] = None, restore_full_name: Optional[str] = None, file_type: Optional[Union[str, "_models.DatabaseFileType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Unique identifier for database file. :paramtype id: str @@ -3497,7 +3520,7 @@ class DatabaseInfo(_serialization.Model): "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, } - def __init__(self, *, source_database_name: str, **kwargs): + def __init__(self, *, source_database_name: str, **kwargs: Any) -> None: """ :keyword source_database_name: Name of the database. Required. :paramtype source_database_name: str @@ -3531,7 +3554,7 @@ class ProxyResource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -3571,7 +3594,7 @@ class DatabaseMigration(ProxyResource): "properties": {"key": "properties", "type": "DatabaseMigrationProperties"}, } - def __init__(self, *, properties: Optional["_models.DatabaseMigrationProperties"] = None, **kwargs): + def __init__(self, *, properties: Optional["_models.DatabaseMigrationProperties"] = None, **kwargs: Any) -> None: """ :keyword properties: Database Migration Resource properties. :paramtype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationProperties @@ -3602,7 +3625,7 @@ class DatabaseMigrationListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -3696,8 +3719,8 @@ def __init__( migration_operation_id: Optional[str] = None, target_database_collation: Optional[str] = None, provisioning_error: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword scope: Resource Id of the target resource (SQL VM or SQL Managed Instance). :paramtype scope: str @@ -3822,8 +3845,8 @@ def __init__( provisioning_error: Optional[str] = None, target_sql_connection: Optional["_models.SqlConnectionInformation"] = None, table_list: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword scope: Resource Id of the target resource (SQL VM or SQL Managed Instance). :paramtype scope: str @@ -3948,8 +3971,8 @@ def __init__( provisioning_error: Optional[str] = None, backup_configuration: Optional["_models.BackupConfiguration"] = None, offline_configuration: Optional["_models.OfflineConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword scope: Resource Id of the target resource (SQL VM or SQL Managed Instance). :paramtype scope: str @@ -4073,8 +4096,8 @@ def __init__( provisioning_error: Optional[str] = None, backup_configuration: Optional["_models.BackupConfiguration"] = None, offline_configuration: Optional["_models.OfflineConfiguration"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword scope: Resource Id of the target resource (SQL VM or SQL Managed Instance). :paramtype scope: str @@ -4143,7 +4166,9 @@ class DatabaseMigrationSqlDb(ProxyResource): "properties": {"key": "properties", "type": "DatabaseMigrationPropertiesSqlDb"}, } - def __init__(self, *, properties: Optional["_models.DatabaseMigrationPropertiesSqlDb"] = None, **kwargs): + def __init__( + self, *, properties: Optional["_models.DatabaseMigrationPropertiesSqlDb"] = None, **kwargs: Any + ) -> None: """ :keyword properties: Database Migration Resource properties for SQL database. :paramtype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlDb @@ -4185,7 +4210,9 @@ class DatabaseMigrationSqlMi(ProxyResource): "properties": {"key": "properties", "type": "DatabaseMigrationPropertiesSqlMi"}, } - def __init__(self, *, properties: Optional["_models.DatabaseMigrationPropertiesSqlMi"] = None, **kwargs): + def __init__( + self, *, properties: Optional["_models.DatabaseMigrationPropertiesSqlMi"] = None, **kwargs: Any + ) -> None: """ :keyword properties: Database Migration Resource properties for SQL Managed Instance. :paramtype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlMi @@ -4227,7 +4254,9 @@ class DatabaseMigrationSqlVm(ProxyResource): "properties": {"key": "properties", "type": "DatabaseMigrationPropertiesSqlVm"}, } - def __init__(self, *, properties: Optional["_models.DatabaseMigrationPropertiesSqlVm"] = None, **kwargs): + def __init__( + self, *, properties: Optional["_models.DatabaseMigrationPropertiesSqlVm"] = None, **kwargs: Any + ) -> None: """ :keyword properties: Database Migration Resource properties for SQL Virtual Machine. :paramtype properties: ~azure.mgmt.datamigration.models.DatabaseMigrationPropertiesSqlVm @@ -4266,7 +4295,7 @@ class DatabaseObjectName(_serialization.Model): "object_type": {"key": "objectType", "type": "str"}, } - def __init__(self, *, object_type: Optional[Union[str, "_models.ObjectType"]] = None, **kwargs): + def __init__(self, *, object_type: Optional[Union[str, "_models.ObjectType"]] = None, **kwargs: Any) -> None: """ :keyword object_type: Type of the object in the database. Known values are: "StoredProcedures", "Table", "User", "View", and "Function". @@ -4330,7 +4359,7 @@ class DataItemMigrationSummaryResult(_serialization.Model): "result_prefix": {"key": "resultPrefix", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -4399,7 +4428,7 @@ class DatabaseSummaryResult(DataItemMigrationSummaryResult): "size_mb": {"key": "sizeMB", "type": "float"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.size_mb = None @@ -4426,7 +4455,7 @@ class DatabaseTable(_serialization.Model): "name": {"key": "name", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.has_rows = None @@ -4453,8 +4482,8 @@ def __init__( *, failed_objects: Optional[Dict[str, str]] = None, validation_errors: Optional["_models.ValidationError"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword failed_objects: List of failed table names of source and target pair. :paramtype failed_objects: dict[str, str] @@ -4487,7 +4516,7 @@ class DataMigrationError(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, *, type: Optional[Union[str, "_models.ErrorType"]] = None, **kwargs): + def __init__(self, *, type: Optional[Union[str, "_models.ErrorType"]] = None, **kwargs: Any) -> None: """ :keyword type: Error type. Known values are: "Default", "Warning", and "Error". :paramtype type: str or ~azure.mgmt.datamigration.models.ErrorType @@ -4543,7 +4572,7 @@ class DataMigrationProjectMetadata(_serialization.Model): "selected_migration_tables": {"key": "selectedMigrationTables", "type": "[MigrationTableMetadata]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.source_server_name = None @@ -4591,7 +4620,7 @@ class TrackedResource(_serialization.Model): "system_data": {"key": "systemData", "type": "SystemData"}, } - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: :paramtype location: str @@ -4688,8 +4717,8 @@ def __init__( virtual_nic_id: Optional[str] = None, auto_stop_delay: Optional[str] = None, delete_resources_on_stop: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: :paramtype location: str @@ -4743,8 +4772,12 @@ class DataMigrationServiceList(_serialization.Model): } def __init__( - self, *, value: Optional[List["_models.DataMigrationService"]] = None, next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: Optional[List["_models.DataMigrationService"]] = None, + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: List of services. :paramtype value: list[~azure.mgmt.datamigration.models.DataMigrationService] @@ -4789,8 +4822,8 @@ def __init__( status: Optional[str] = None, vm_size: Optional[str] = None, supported_task_types: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword agent_version: The DMS instance agent version. :paramtype agent_version: str @@ -4827,7 +4860,9 @@ class DeleteNode(_serialization.Model): "integration_runtime_name": {"key": "integrationRuntimeName", "type": "str"}, } - def __init__(self, *, node_name: Optional[str] = None, integration_runtime_name: Optional[str] = None, **kwargs): + def __init__( + self, *, node_name: Optional[str] = None, integration_runtime_name: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword node_name: The name of node to delete. :paramtype node_name: str @@ -4860,7 +4895,7 @@ class ErrorInfo(_serialization.Model): "message": {"key": "message", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.code = None @@ -4902,8 +4937,8 @@ def __init__( wait_stats: Optional[Dict[str, "_models.WaitStatistics"]] = None, has_errors: Optional[bool] = None, sql_errors: Optional[List[str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword execution_count: No. of query executions. :paramtype execution_count: int @@ -4943,8 +4978,8 @@ class FileList(_serialization.Model): } def __init__( - self, *, value: Optional[List["_models.ProjectFile"]] = None, next_link: Optional[str] = None, **kwargs - ): + self, *, value: Optional[List["_models.ProjectFile"]] = None, next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: List of files. :paramtype value: list[~azure.mgmt.datamigration.models.ProjectFile] @@ -4979,7 +5014,9 @@ class FileShare(_serialization.Model): "path": {"key": "path", "type": "str"}, } - def __init__(self, *, path: str, user_name: Optional[str] = None, password: Optional[str] = None, **kwargs): + def __init__( + self, *, path: str, user_name: Optional[str] = None, password: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword user_name: User name credential to connect to the share location. :paramtype user_name: str @@ -5008,7 +5045,7 @@ class FileStorageInfo(_serialization.Model): "headers": {"key": "headers", "type": "{str}"}, } - def __init__(self, *, uri: Optional[str] = None, headers: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, uri: Optional[str] = None, headers: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword uri: A URI that can be used to access the file content. :paramtype uri: str @@ -5042,7 +5079,7 @@ class GetProjectDetailsNonSqlTaskInput(_serialization.Model): "project_location": {"key": "projectLocation", "type": "str"}, } - def __init__(self, *, project_name: str, project_location: str, **kwargs): + def __init__(self, *, project_name: str, project_location: str, **kwargs: Any) -> None: """ :keyword project_name: Name of the migration project. Required. :paramtype project_name: str @@ -5088,8 +5125,8 @@ def __init__( connection_info: "_models.SqlConnectionInfo", backup_file_share: "_models.FileShare", selected_certificates: List["_models.SelectedCertificateInput"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword connection_info: Connection information for SQL Server. Required. :paramtype connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -5128,7 +5165,7 @@ class GetTdeCertificatesSqlTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.base64_encoded_certificates = None @@ -5199,8 +5236,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.GetTdeCertificatesSqlTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -5234,7 +5271,9 @@ class GetUserTablesMySqlTaskInput(_serialization.Model): "selected_databases": {"key": "selectedDatabases", "type": "[str]"}, } - def __init__(self, *, connection_info: "_models.MySqlConnectionInfo", selected_databases: List[str], **kwargs): + def __init__( + self, *, connection_info: "_models.MySqlConnectionInfo", selected_databases: List[str], **kwargs: Any + ) -> None: """ :keyword connection_info: Connection information for SQL Server. Required. :paramtype connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo @@ -5271,7 +5310,7 @@ class GetUserTablesMySqlTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -5343,8 +5382,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.GetUserTablesMySqlTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -5358,7 +5397,8 @@ def __init__( class GetUserTablesOracleTaskInput(_serialization.Model): - """Input for the task that gets the list of tables contained within a provided list of Oracle schemas. + """Input for the task that gets the list of tables contained within a provided list of Oracle + schemas. All required parameters must be populated in order to send to Azure. @@ -5378,7 +5418,9 @@ class GetUserTablesOracleTaskInput(_serialization.Model): "selected_schemas": {"key": "selectedSchemas", "type": "[str]"}, } - def __init__(self, *, connection_info: "_models.OracleConnectionInfo", selected_schemas: List[str], **kwargs): + def __init__( + self, *, connection_info: "_models.OracleConnectionInfo", selected_schemas: List[str], **kwargs: Any + ) -> None: """ :keyword connection_info: Information for connecting to Oracle source. Required. :paramtype connection_info: ~azure.mgmt.datamigration.models.OracleConnectionInfo @@ -5391,7 +5433,8 @@ def __init__(self, *, connection_info: "_models.OracleConnectionInfo", selected_ class GetUserTablesOracleTaskOutput(_serialization.Model): - """Output for the task that gets the list of tables contained within a provided list of Oracle schemas. + """Output for the task that gets the list of tables contained within a provided list of Oracle + schemas. Variables are only populated by the server, and will be ignored when sending a request. @@ -5415,7 +5458,7 @@ class GetUserTablesOracleTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.schema_name = None @@ -5487,8 +5530,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.GetUserTablesOracleTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -5522,7 +5565,9 @@ class GetUserTablesPostgreSqlTaskInput(_serialization.Model): "selected_databases": {"key": "selectedDatabases", "type": "[str]"}, } - def __init__(self, *, connection_info: "_models.PostgreSqlConnectionInfo", selected_databases: List[str], **kwargs): + def __init__( + self, *, connection_info: "_models.PostgreSqlConnectionInfo", selected_databases: List[str], **kwargs: Any + ) -> None: """ :keyword connection_info: Information for connecting to PostgreSQL source. Required. :paramtype connection_info: ~azure.mgmt.datamigration.models.PostgreSqlConnectionInfo @@ -5560,7 +5605,7 @@ class GetUserTablesPostgreSqlTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.database_name = None @@ -5632,8 +5677,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.GetUserTablesPostgreSqlTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -5682,8 +5727,8 @@ def __init__( target_connection_info: "_models.SqlConnectionInfo", selected_source_databases: List[str], selected_target_databases: List[str], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Connection information for SQL Server. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -5732,7 +5777,7 @@ class GetUserTablesSqlSyncTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.databases_to_source_tables = None @@ -5805,8 +5850,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.GetUserTablesSqlSyncTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -5849,8 +5894,8 @@ def __init__( connection_info: "_models.SqlConnectionInfo", selected_databases: List[str], encrypted_key_for_secure_fields: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword connection_info: Connection information for SQL Server. Required. :paramtype connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -5890,7 +5935,7 @@ class GetUserTablesSqlTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -5966,8 +6011,8 @@ def __init__( client_data: Optional[Dict[str, str]] = None, input: Optional["_models.GetUserTablesSqlTaskInput"] = None, task_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -5994,7 +6039,7 @@ class InstallOCIDriverTaskInput(_serialization.Model): "driver_package_name": {"key": "driverPackageName", "type": "str"}, } - def __init__(self, *, driver_package_name: Optional[str] = None, **kwargs): + def __init__(self, *, driver_package_name: Optional[str] = None, **kwargs: Any) -> None: """ :keyword driver_package_name: Name of the uploaded driver package to install. :paramtype driver_package_name: str @@ -6020,7 +6065,7 @@ class InstallOCIDriverTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.validation_errors = None @@ -6090,8 +6135,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.InstallOCIDriverTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -6125,7 +6170,7 @@ class IntegrationRuntimeMonitoringData(_serialization.Model): "nodes": {"key": "nodes", "type": "[NodeMonitoringData]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -6149,7 +6194,7 @@ class MigrateMISyncCompleteCommandInput(_serialization.Model): "source_database_name": {"key": "sourceDatabaseName", "type": "str"}, } - def __init__(self, *, source_database_name: str, **kwargs): + def __init__(self, *, source_database_name: str, **kwargs: Any) -> None: """ :keyword source_database_name: Name of managed instance database. Required. :paramtype source_database_name: str @@ -6169,7 +6214,7 @@ class MigrateMISyncCompleteCommandOutput(_serialization.Model): "errors": {"key": "errors", "type": "[ReportableException]"}, } - def __init__(self, *, errors: Optional[List["_models.ReportableException"]] = None, **kwargs): + def __init__(self, *, errors: Optional[List["_models.ReportableException"]] = None, **kwargs: Any) -> None: """ :keyword errors: List of errors that happened during the command execution. :paramtype errors: list[~azure.mgmt.datamigration.models.ReportableException] @@ -6179,7 +6224,8 @@ def __init__(self, *, errors: Optional[List["_models.ReportableException"]] = No class MigrateMISyncCompleteCommandProperties(CommandProperties): - """Properties for the command that completes online migration for an Azure SQL Database Managed Instance. + """Properties for the command that completes online migration for an Azure SQL Database Managed + Instance. Variables are only populated by the server, and will be ignored when sending a request. @@ -6214,7 +6260,7 @@ class MigrateMISyncCompleteCommandProperties(CommandProperties): "output": {"key": "output", "type": "MigrateMISyncCompleteCommandOutput"}, } - def __init__(self, *, input: Optional["_models.MigrateMISyncCompleteCommandInput"] = None, **kwargs): + def __init__(self, *, input: Optional["_models.MigrateMISyncCompleteCommandInput"] = None, **kwargs: Any) -> None: """ :keyword input: Command input. :paramtype input: ~azure.mgmt.datamigration.models.MigrateMISyncCompleteCommandInput @@ -6289,8 +6335,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.MongoDbMigrationSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -6304,7 +6350,8 @@ def __init__( class MigrateMySqlAzureDbForMySqlOfflineDatabaseInput(_serialization.Model): - """Database specific information for offline MySQL to Azure Database for MySQL migration task inputs. + """Database specific information for offline MySQL to Azure Database for MySQL migration task + inputs. :ivar name: Name of the database. :vartype name: str @@ -6327,8 +6374,8 @@ def __init__( name: Optional[str] = None, target_database_name: Optional[str] = None, table_map: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Name of the database. :paramtype name: str @@ -6345,7 +6392,8 @@ def __init__( class MigrateMySqlAzureDbForMySqlOfflineTaskInput(_serialization.Model): - """Input for the task that migrates MySQL databases to Azure Database for MySQL for offline migrations. + """Input for the task that migrates MySQL databases to Azure Database for MySQL for offline + migrations. All required parameters must be populated in order to send to Azure. @@ -6394,8 +6442,8 @@ def __init__( started_on: Optional[datetime.datetime] = None, optional_agent_settings: Optional[Dict[str, str]] = None, encrypted_key_for_secure_fields: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Connection information for source MySQL. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo @@ -6426,7 +6474,8 @@ def __init__( class MigrateMySqlAzureDbForMySqlOfflineTaskOutput(_serialization.Model): - """Output for the task that migrates MySQL databases to Azure Database for MySQL for offline migrations. + """Output for the task that migrates MySQL databases to Azure Database for MySQL for offline + migrations. You probably want to use the sub-classes and not this class directly. Known sub-classes are: MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel, @@ -6463,7 +6512,7 @@ class MigrateMySqlAzureDbForMySqlOfflineTaskOutput(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -6558,7 +6607,7 @@ class MigrateMySqlAzureDbForMySqlOfflineTaskOutputDatabaseLevel( "object_summary": {"key": "objectSummary", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "DatabaseLevelOutput" @@ -6606,7 +6655,7 @@ class MigrateMySqlAzureDbForMySqlOfflineTaskOutputError(MigrateMySqlAzureDbForMy "error": {"key": "error", "type": "ReportableException"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "ErrorOutput" @@ -6704,8 +6753,8 @@ def __init__( *, databases: Optional[str] = None, migration_report_result: Optional["_models.MigrationReportResult"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword databases: Selected databases as a map from database name to database id. :paramtype databases: str @@ -6799,7 +6848,7 @@ class MigrateMySqlAzureDbForMySqlOfflineTaskOutputTableLevel( "last_storage_update": {"key": "lastStorageUpdate", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "TableLevelOutput" @@ -6816,7 +6865,8 @@ def __init__(self, **kwargs): class MigrateMySqlAzureDbForMySqlOfflineTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates MySQL databases to Azure Database for MySQL for offline migrations. + """Properties for the task that migrates MySQL databases to Azure Database for MySQL for offline + migrations. Variables are only populated by the server, and will be ignored when sending a request. @@ -6888,8 +6938,8 @@ def __init__( input: Optional["_models.MigrateMySqlAzureDbForMySqlOfflineTaskInput"] = None, is_cloneable: Optional[bool] = None, task_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -6944,8 +6994,8 @@ def __init__( source_setting: Optional[Dict[str, str]] = None, target_setting: Optional[Dict[str, str]] = None, table_map: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Name of the database. :paramtype name: str @@ -6971,7 +7021,8 @@ def __init__( class MigrateMySqlAzureDbForMySqlSyncTaskInput(_serialization.Model): - """Input for the task that migrates MySQL databases to Azure Database for MySQL for online migrations. + """Input for the task that migrates MySQL databases to Azure Database for MySQL for online + migrations. All required parameters must be populated in order to send to Azure. @@ -7003,8 +7054,8 @@ def __init__( source_connection_info: "_models.MySqlConnectionInfo", target_connection_info: "_models.MySqlConnectionInfo", selected_databases: List["_models.MigrateMySqlAzureDbForMySqlSyncDatabaseInput"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Connection information for source MySQL. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.MySqlConnectionInfo @@ -7022,7 +7073,8 @@ def __init__( class MigrateMySqlAzureDbForMySqlSyncTaskOutput(_serialization.Model): - """Output for the task that migrates MySQL databases to Azure Database for MySQL for online migrations. + """Output for the task that migrates MySQL databases to Azure Database for MySQL for online + migrations. You probably want to use the sub-classes and not this class directly. Known sub-classes are: MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseError, @@ -7061,7 +7113,7 @@ class MigrateMySqlAzureDbForMySqlSyncTaskOutput(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -7102,8 +7154,8 @@ def __init__( *, error_message: Optional[str] = None, events: Optional[List["_models.SyncMigrationDatabaseErrorEvent"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword error_message: Error message. :paramtype error_message: str @@ -7206,7 +7258,7 @@ class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseLevel( "latency": {"key": "latency", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "DatabaseLevelOutput" @@ -7254,7 +7306,7 @@ class MigrateMySqlAzureDbForMySqlSyncTaskOutputError(MigrateMySqlAzureDbForMySql "error": {"key": "error", "type": "ReportableException"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "ErrorOutput" @@ -7308,7 +7360,7 @@ class MigrateMySqlAzureDbForMySqlSyncTaskOutputMigrationLevel(MigrateMySqlAzureD "target_server": {"key": "targetServer", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "MigrationLevelOutput" @@ -7398,7 +7450,7 @@ class MigrateMySqlAzureDbForMySqlSyncTaskOutputTableLevel( "last_modified_time": {"key": "lastModifiedTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "TableLevelOutput" @@ -7418,7 +7470,8 @@ def __init__(self, **kwargs): class MigrateMySqlAzureDbForMySqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates MySQL databases to Azure Database for MySQL for online migrations. + """Properties for the task that migrates MySQL databases to Azure Database for MySQL for online + migrations. Variables are only populated by the server, and will be ignored when sending a request. @@ -7482,8 +7535,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.MigrateMySqlAzureDbForMySqlSyncTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -7497,7 +7550,8 @@ def __init__( class MigrateOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates Oracle to Azure Database for PostgreSQL for online migrations. + """Properties for the task that migrates Oracle to Azure Database for PostgreSQL for online + migrations. Variables are only populated by the server, and will be ignored when sending a request. @@ -7561,8 +7615,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.MigrateOracleAzureDbPostgreSqlSyncTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -7576,7 +7630,8 @@ def __init__( class MigrateOracleAzureDbPostgreSqlSyncDatabaseInput(_serialization.Model): - """Database specific information for Oracle to Azure Database for PostgreSQL migration task inputs. + """Database specific information for Oracle to Azure Database for PostgreSQL migration task + inputs. :ivar case_manipulation: How to handle object name casing: either Preserve or ToLower. :vartype case_manipulation: str @@ -7619,8 +7674,8 @@ def __init__( migration_setting: Optional[Dict[str, str]] = None, source_setting: Optional[Dict[str, str]] = None, target_setting: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword case_manipulation: How to handle object name casing: either Preserve or ToLower. :paramtype case_manipulation: str @@ -7652,7 +7707,8 @@ def __init__( class MigrateOracleAzureDbPostgreSqlSyncTaskInput(_serialization.Model): - """Input for the task that migrates Oracle databases to Azure Database for PostgreSQL for online migrations. + """Input for the task that migrates Oracle databases to Azure Database for PostgreSQL for online + migrations. All required parameters must be populated in order to send to Azure. @@ -7684,8 +7740,8 @@ def __init__( selected_databases: List["_models.MigrateOracleAzureDbPostgreSqlSyncDatabaseInput"], target_connection_info: "_models.PostgreSqlConnectionInfo", source_connection_info: "_models.OracleConnectionInfo", - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword selected_databases: Databases to migrate. Required. :paramtype selected_databases: @@ -7703,7 +7759,8 @@ def __init__( class MigrateOracleAzureDbPostgreSqlSyncTaskOutput(_serialization.Model): - """Output for the task that migrates Oracle databases to Azure Database for PostgreSQL for online migrations. + """Output for the task that migrates Oracle databases to Azure Database for PostgreSQL for online + migrations. You probably want to use the sub-classes and not this class directly. Known sub-classes are: MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseError, @@ -7742,7 +7799,7 @@ class MigrateOracleAzureDbPostgreSqlSyncTaskOutput(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -7783,8 +7840,8 @@ def __init__( *, error_message: Optional[str] = None, events: Optional[List["_models.SyncMigrationDatabaseErrorEvent"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword error_message: Error message. :paramtype error_message: str @@ -7887,7 +7944,7 @@ class MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseLevel( "latency": {"key": "latency", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "DatabaseLevelOutput" @@ -7935,7 +7992,7 @@ class MigrateOracleAzureDbPostgreSqlSyncTaskOutputError(MigrateOracleAzureDbPost "error": {"key": "error", "type": "ReportableException"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "ErrorOutput" @@ -7989,7 +8046,7 @@ class MigrateOracleAzureDbPostgreSqlSyncTaskOutputMigrationLevel(MigrateOracleAz "target_server": {"key": "targetServer", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "MigrationLevelOutput" @@ -8079,7 +8136,7 @@ class MigrateOracleAzureDbPostgreSqlSyncTaskOutputTableLevel( "last_modified_time": {"key": "lastModifiedTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "TableLevelOutput" @@ -8099,7 +8156,8 @@ def __init__(self, **kwargs): class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInput(_serialization.Model): - """Database specific information for PostgreSQL to Azure Database for PostgreSQL migration task inputs. + """Database specific information for PostgreSQL to Azure Database for PostgreSQL migration task + inputs. Variables are only populated by the server, and will be ignored when sending a request. @@ -8147,8 +8205,8 @@ def __init__( source_setting: Optional[Dict[str, str]] = None, target_setting: Optional[Dict[str, str]] = None, selected_tables: Optional[List["_models.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Name of the database. :paramtype name: str @@ -8186,7 +8244,7 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInput(_serialization "name": {"key": "name", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: Name of the table to migrate. :paramtype name: str @@ -8196,7 +8254,8 @@ def __init__(self, *, name: Optional[str] = None, **kwargs): class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInput(_serialization.Model): - """Input for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for online migrations. + """Input for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for + online migrations. Variables are only populated by the server, and will be ignored when sending a request. @@ -8241,8 +8300,8 @@ def __init__( target_connection_info: "_models.PostgreSqlConnectionInfo", source_connection_info: "_models.PostgreSqlConnectionInfo", encrypted_key_for_secure_fields: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword selected_databases: Databases to migrate. Required. :paramtype selected_databases: @@ -8264,7 +8323,8 @@ def __init__( class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput(_serialization.Model): - """Output for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for online migrations. + """Output for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for + online migrations. You probably want to use the sub-classes and not this class directly. Known sub-classes are: MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseError, @@ -8303,7 +8363,7 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutput(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -8346,8 +8406,8 @@ def __init__( *, error_message: Optional[str] = None, events: Optional[List["_models.SyncMigrationDatabaseErrorEvent"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword error_message: Error message. :paramtype error_message: str @@ -8450,7 +8510,7 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevel( "latency": {"key": "latency", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "DatabaseLevelOutput" @@ -8501,7 +8561,9 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputError(MigratePostgreSql "events": {"key": "events", "type": "[SyncMigrationDatabaseErrorEvent]"}, } - def __init__(self, *, events: Optional[List["_models.SyncMigrationDatabaseErrorEvent"]] = None, **kwargs): + def __init__( + self, *, events: Optional[List["_models.SyncMigrationDatabaseErrorEvent"]] = None, **kwargs: Any + ) -> None: """ :keyword events: List of error events. :paramtype events: list[~azure.mgmt.datamigration.models.SyncMigrationDatabaseErrorEvent] @@ -8579,7 +8641,7 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevel( "database_count": {"key": "databaseCount", "type": "float"}, } - def __init__(self, *, database_count: Optional[float] = None, **kwargs): + def __init__(self, *, database_count: Optional[float] = None, **kwargs: Any) -> None: """ :keyword database_count: Number of databases to include. :paramtype database_count: float @@ -8676,7 +8738,7 @@ class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevel( "last_modified_time": {"key": "lastModifiedTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "TableLevelOutput" @@ -8696,7 +8758,8 @@ def __init__(self, **kwargs): class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for online migrations. + """Properties for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for + online migrations. Variables are only populated by the server, and will be ignored when sending a request. @@ -8773,8 +8836,8 @@ def __init__( task_id: Optional[str] = None, created_on: Optional[str] = None, is_cloneable: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -8824,8 +8887,8 @@ def __init__( id: Optional[str] = None, # pylint: disable=redefined-builtin target_database_name: Optional[str] = None, schema_setting: Optional["_models.SchemaMigrationSetting"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Name of source database. :paramtype name: str @@ -8869,8 +8932,8 @@ def __init__( *, source_connection_info: "_models.SqlConnectionInfo", target_connection_info: "_models.SqlConnectionInfo", - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Information for connecting to source. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -8922,8 +8985,8 @@ def __init__( selected_databases: List["_models.MigrateSchemaSqlServerSqlDbDatabaseInput"], encrypted_key_for_secure_fields: Optional[str] = None, started_on: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Information for connecting to source. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -8981,7 +9044,7 @@ class MigrateSchemaSqlServerSqlDbTaskOutput(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -9057,7 +9120,7 @@ class MigrateSchemaSqlServerSqlDbTaskOutputDatabaseLevel( "file_id": {"key": "fileId", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "DatabaseLevelOutput" @@ -9104,7 +9167,7 @@ class MigrateSchemaSqlServerSqlDbTaskOutputError(MigrateSchemaSqlServerSqlDbTask "error_text": {"key": "errorText", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "SchemaErrorOutput" @@ -9164,7 +9227,7 @@ class MigrateSchemaSqlServerSqlDbTaskOutputMigrationLevel(MigrateSchemaSqlServer "target_server_brand_version": {"key": "targetServerBrandVersion", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "MigrationLevelOutput" @@ -9253,8 +9316,8 @@ def __init__( created_on: Optional[str] = None, task_id: Optional[str] = None, is_cloneable: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -9303,7 +9366,7 @@ class MigrateSchemaSqlTaskOutputError(MigrateSchemaSqlServerSqlDbTaskOutput): "error": {"key": "error", "type": "ReportableException"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "ErrorOutput" @@ -9337,8 +9400,8 @@ def __init__( restore_database_name: Optional[str] = None, backup_and_restore_folder: Optional[str] = None, database_files: Optional[List["_models.DatabaseFileInput"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Name of the database. :paramtype name: str @@ -9392,8 +9455,8 @@ def __init__( table_map: Optional[Dict[str, str]] = None, schema_setting: Optional[JSON] = None, id: Optional[str] = None, # pylint: disable=redefined-builtin - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Name of the database. :paramtype name: str @@ -9461,8 +9524,8 @@ def __init__( migration_setting: Optional[Dict[str, str]] = None, source_setting: Optional[Dict[str, str]] = None, target_setting: Optional[Dict[str, str]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Unique identifier for database. :paramtype id: str @@ -9493,7 +9556,8 @@ def __init__( class MigrateSqlServerSqlDbSyncTaskInput(SqlMigrationTaskInput): - """Input for the task that migrates on-prem SQL Server databases to Azure SQL Database for online migrations. + """Input for the task that migrates on-prem SQL Server databases to Azure SQL Database for online + migrations. All required parameters must be populated in order to send to Azure. @@ -9528,8 +9592,8 @@ def __init__( target_connection_info: "_models.SqlConnectionInfo", selected_databases: List["_models.MigrateSqlServerSqlDbSyncDatabaseInput"], validation_options: Optional["_models.MigrationValidationOptions"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Information for connecting to source. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -9549,7 +9613,8 @@ def __init__( class MigrateSqlServerSqlDbSyncTaskOutput(_serialization.Model): - """Output for the task that migrates on-prem SQL Server databases to Azure SQL Database for online migrations. + """Output for the task that migrates on-prem SQL Server databases to Azure SQL Database for online + migrations. You probably want to use the sub-classes and not this class directly. Known sub-classes are: MigrateSqlServerSqlDbSyncTaskOutputDatabaseError, @@ -9587,7 +9652,7 @@ class MigrateSqlServerSqlDbSyncTaskOutput(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -9628,8 +9693,8 @@ def __init__( *, error_message: Optional[str] = None, events: Optional[List["_models.SyncMigrationDatabaseErrorEvent"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword error_message: Error message. :paramtype error_message: str @@ -9732,7 +9797,7 @@ class MigrateSqlServerSqlDbSyncTaskOutputDatabaseLevel( "latency": {"key": "latency", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "DatabaseLevelOutput" @@ -9780,7 +9845,7 @@ class MigrateSqlServerSqlDbSyncTaskOutputError(MigrateSqlServerSqlDbSyncTaskOutp "error": {"key": "error", "type": "ReportableException"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "ErrorOutput" @@ -9838,7 +9903,7 @@ class MigrateSqlServerSqlDbSyncTaskOutputMigrationLevel(MigrateSqlServerSqlDbSyn "database_count": {"key": "databaseCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "MigrationLevelOutput" @@ -9929,7 +9994,7 @@ class MigrateSqlServerSqlDbSyncTaskOutputTableLevel( "last_modified_time": {"key": "lastModifiedTime", "type": "iso-8601"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "TableLevelOutput" @@ -9949,7 +10014,8 @@ def __init__(self, **kwargs): class MigrateSqlServerSqlDbSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that migrates on-prem SQL Server databases to Azure SQL Database for online migrations. + """Properties for the task that migrates on-prem SQL Server databases to Azure SQL Database for + online migrations. Variables are only populated by the server, and will be ignored when sending a request. @@ -10012,8 +10078,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.MigrateSqlServerSqlDbSyncTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -10078,8 +10144,8 @@ def __init__( validation_options: Optional["_models.MigrationValidationOptions"] = None, started_on: Optional[str] = None, encrypted_key_for_secure_fields: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Information for connecting to source. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -10152,7 +10218,7 @@ class MigrateSqlServerSqlDbTaskOutput(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -10243,7 +10309,7 @@ class MigrateSqlServerSqlDbTaskOutputDatabaseLevel( "object_summary": {"key": "objectSummary", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "DatabaseLevelOutput" @@ -10330,7 +10396,7 @@ class MigrationValidationDatabaseLevelResult(_serialization.Model): "status": {"key": "status", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -10420,7 +10486,7 @@ class MigrateSqlServerSqlDbTaskOutputDatabaseLevelValidationResult( "result_type": {"key": "resultType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.migration_id = None @@ -10463,7 +10529,7 @@ class MigrateSqlServerSqlDbTaskOutputError(MigrateSqlServerSqlDbTaskOutput): "error": {"key": "error", "type": "ReportableException"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "ErrorOutput" @@ -10562,8 +10628,8 @@ def __init__( *, migration_validation_result: Optional["_models.MigrationValidationResult"] = None, migration_report_result: Optional["_models.MigrationReportResult"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword migration_validation_result: Migration Validation Results. :paramtype migration_validation_result: @@ -10654,7 +10720,7 @@ class MigrateSqlServerSqlDbTaskOutputTableLevel( "result_prefix": {"key": "resultPrefix", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "TableLevelOutput" @@ -10704,8 +10770,8 @@ def __init__( self, *, summary_results: Optional[Dict[str, "_models.MigrationValidationDatabaseSummaryResult"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword summary_results: Validation summary results for each database. :paramtype summary_results: dict[str, @@ -10759,8 +10825,8 @@ def __init__( self, *, summary_results: Optional[Dict[str, "_models.MigrationValidationDatabaseSummaryResult"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword summary_results: Validation summary results for each database. :paramtype summary_results: dict[str, @@ -10850,8 +10916,8 @@ def __init__( task_id: Optional[str] = None, is_cloneable: Optional[bool] = None, created_on: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -10911,8 +10977,8 @@ def __init__( backup_file_share: Optional["_models.FileShare"] = None, backup_file_paths: Optional[List[str]] = None, id: Optional[str] = None, # pylint: disable=redefined-builtin - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: Name of the database. Required. :paramtype name: str @@ -10934,7 +11000,8 @@ def __init__( class SqlServerSqlMISyncTaskInput(_serialization.Model): - """Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online scenario. + """Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online + scenario. All required parameters must be populated in order to send to Azure. @@ -10981,8 +11048,8 @@ def __init__( target_connection_info: "_models.MiSqlConnectionInfo", azure_app: "_models.AzureActiveDirectoryApp", backup_file_share: Optional["_models.FileShare"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword selected_databases: Databases to migrate. Required. :paramtype selected_databases: @@ -11011,7 +11078,8 @@ def __init__( class MigrateSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): - """Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online scenario. + """Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online + scenario. All required parameters must be populated in order to send to Azure. @@ -11063,8 +11131,8 @@ def __init__( azure_app: "_models.AzureActiveDirectoryApp", backup_file_share: Optional["_models.FileShare"] = None, number_of_parallel_database_migrations: Optional[float] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword selected_databases: Databases to migrate. Required. :paramtype selected_databases: @@ -11099,7 +11167,8 @@ def __init__( class MigrateSqlServerSqlMISyncTaskOutput(_serialization.Model): - """Output for task that migrates SQL Server databases to Azure SQL Database Managed Instance using Log Replay Service. + """Output for task that migrates SQL Server databases to Azure SQL Database Managed Instance using + Log Replay Service. You probably want to use the sub-classes and not this class directly. Known sub-classes are: MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel, MigrateSqlServerSqlMISyncTaskOutputError, @@ -11133,7 +11202,7 @@ class MigrateSqlServerSqlMISyncTaskOutput(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -11214,7 +11283,7 @@ class MigrateSqlServerSqlMISyncTaskOutputDatabaseLevel( "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "DatabaseLevelOutput" @@ -11258,7 +11327,7 @@ class MigrateSqlServerSqlMISyncTaskOutputError(MigrateSqlServerSqlMISyncTaskOutp "error": {"key": "error", "type": "ReportableException"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "ErrorOutput" @@ -11335,7 +11404,7 @@ class MigrateSqlServerSqlMISyncTaskOutputMigrationLevel( "database_error_count": {"key": "databaseErrorCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "MigrationLevelOutput" @@ -11353,7 +11422,8 @@ def __init__(self, **kwargs): class MigrateSqlServerSqlMISyncTaskProperties(ProjectTaskProperties): - """Properties for task that migrates SQL Server databases to Azure SQL Database Managed Instance sync scenario. + """Properties for task that migrates SQL Server databases to Azure SQL Database Managed Instance + sync scenario. Variables are only populated by the server, and will be ignored when sending a request. @@ -11420,8 +11490,8 @@ def __init__( client_data: Optional[Dict[str, str]] = None, input: Optional["_models.MigrateSqlServerSqlMISyncTaskInput"] = None, created_on: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -11507,8 +11577,8 @@ def __init__( backup_mode: Optional[Union[str, "_models.BackupMode"]] = None, aad_domain_name: Optional[str] = None, encrypted_key_for_secure_fields: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Information for connecting to source. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -11591,7 +11661,7 @@ class MigrateSqlServerSqlMITaskOutput(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -11650,7 +11720,7 @@ class MigrateSqlServerSqlMITaskOutputAgentJobLevel(MigrateSqlServerSqlMITaskOutp "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "AgentJobLevelOutput" @@ -11720,7 +11790,7 @@ class MigrateSqlServerSqlMITaskOutputDatabaseLevel(MigrateSqlServerSqlMITaskOutp "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "DatabaseLevelOutput" @@ -11761,7 +11831,7 @@ class MigrateSqlServerSqlMITaskOutputError(MigrateSqlServerSqlMITaskOutput): "error": {"key": "error", "type": "ReportableException"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "ErrorOutput" @@ -11822,7 +11892,7 @@ class MigrateSqlServerSqlMITaskOutputLoginLevel(MigrateSqlServerSqlMITaskOutput) "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "LoginLevelOutput" @@ -11923,7 +11993,7 @@ class MigrateSqlServerSqlMITaskOutputMigrationLevel( "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "MigrationLevelOutput" @@ -12024,8 +12094,8 @@ def __init__( created_on: Optional[str] = None, parent_task_id: Optional[str] = None, is_cloneable: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -12051,7 +12121,8 @@ def __init__( class MigrateSsisTaskInput(SqlMigrationTaskInput): - """Input for task that migrates SSIS packages from SQL Server to Azure SQL Database Managed Instance. + """Input for task that migrates SSIS packages from SQL Server to Azure SQL Database Managed + Instance. All required parameters must be populated in order to send to Azure. @@ -12081,8 +12152,8 @@ def __init__( source_connection_info: "_models.SqlConnectionInfo", target_connection_info: "_models.SqlConnectionInfo", ssis_migration_info: "_models.SsisMigrationInfo", - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Information for connecting to source. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -12098,7 +12169,8 @@ def __init__( class MigrateSsisTaskOutput(_serialization.Model): - """Output for task that migrates SSIS packages from SQL Server to Azure SQL Database Managed Instance. + """Output for task that migrates SSIS packages from SQL Server to Azure SQL Database Managed + Instance. You probably want to use the sub-classes and not this class directly. Known sub-classes are: MigrateSsisTaskOutputMigrationLevel, MigrateSsisTaskOutputProjectLevel @@ -12130,7 +12202,7 @@ class MigrateSsisTaskOutput(_serialization.Model): } } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -12203,7 +12275,7 @@ class MigrateSsisTaskOutputMigrationLevel(MigrateSsisTaskOutput): # pylint: dis "stage": {"key": "stage", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "MigrationLevelOutput" @@ -12276,7 +12348,7 @@ class MigrateSsisTaskOutputProjectLevel(MigrateSsisTaskOutput): "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_type: str = "SsisProjectLevelOutput" @@ -12291,7 +12363,8 @@ def __init__(self, **kwargs): class MigrateSsisTaskProperties(ProjectTaskProperties): - """Properties for task that migrates SSIS packages from SQL Server databases to Azure SQL Database Managed Instance. + """Properties for task that migrates SSIS packages from SQL Server databases to Azure SQL Database + Managed Instance. Variables are only populated by the server, and will be ignored when sending a request. @@ -12354,8 +12427,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.MigrateSsisTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -12388,7 +12461,9 @@ class MigrateSyncCompleteCommandInput(_serialization.Model): "commit_time_stamp": {"key": "commitTimeStamp", "type": "iso-8601"}, } - def __init__(self, *, database_name: str, commit_time_stamp: Optional[datetime.datetime] = None, **kwargs): + def __init__( + self, *, database_name: str, commit_time_stamp: Optional[datetime.datetime] = None, **kwargs: Any + ) -> None: """ :keyword database_name: Name of database. Required. :paramtype database_name: str @@ -12421,7 +12496,7 @@ class MigrateSyncCompleteCommandOutput(_serialization.Model): "errors": {"key": "errors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -12472,8 +12547,8 @@ def __init__( *, input: Optional["_models.MigrateSyncCompleteCommandInput"] = None, command_id: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword input: Command input. :paramtype input: ~azure.mgmt.datamigration.models.MigrateSyncCompleteCommandInput @@ -12508,7 +12583,7 @@ class MigrationEligibilityInfo(_serialization.Model): "validation_messages": {"key": "validationMessages", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.is_eligible_for_migration = None @@ -12526,7 +12601,7 @@ class MigrationOperationInput(_serialization.Model): "migration_operation_id": {"key": "migrationOperationId", "type": "str"}, } - def __init__(self, *, migration_operation_id: Optional[str] = None, **kwargs): + def __init__(self, *, migration_operation_id: Optional[str] = None, **kwargs: Any) -> None: """ :keyword migration_operation_id: ID tracking migration operation. :paramtype migration_operation_id: str @@ -12554,8 +12629,8 @@ def __init__( *, id: Optional[str] = None, # pylint: disable=redefined-builtin report_url: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword id: Migration validation result identifier. :paramtype id: str @@ -12633,7 +12708,7 @@ class MigrationStatusDetails(_serialization.Model): # pylint: disable=too-many- "pending_log_backups_count": {"key": "pendingLogBackupsCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.migration_state = None @@ -12672,7 +12747,7 @@ class MigrationTableMetadata(_serialization.Model): "target_table_name": {"key": "targetTableName", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.source_table_name = None @@ -12722,7 +12797,7 @@ class MigrationValidationDatabaseSummaryResult(_serialization.Model): "status": {"key": "status", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -12762,8 +12837,8 @@ def __init__( enable_schema_validation: Optional[bool] = None, enable_data_integrity_validation: Optional[bool] = None, enable_query_analysis_validation: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword enable_schema_validation: Allows to compare the schema information between source and target. @@ -12817,8 +12892,8 @@ def __init__( managed_instance_resource_id: str, user_name: Optional[str] = None, password: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword user_name: User name. :paramtype user_name: str @@ -12865,7 +12940,7 @@ class MongoDbCancelCommand(CommandProperties): "input": {"key": "input", "type": "MongoDbCommandInput"}, } - def __init__(self, *, input: Optional["_models.MongoDbCommandInput"] = None, **kwargs): + def __init__(self, *, input: Optional["_models.MongoDbCommandInput"] = None, **kwargs: Any) -> None: """ :keyword input: Command input. :paramtype input: ~azure.mgmt.datamigration.models.MongoDbCommandInput @@ -12913,8 +12988,8 @@ def __init__( supports_sharding: bool, type: Union[str, "_models.MongoDbClusterType"], version: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword databases: A list of non-system databases in the cluster. Required. :paramtype databases: list[~azure.mgmt.datamigration.models.MongoDbDatabaseInfo] @@ -12979,8 +13054,8 @@ def __init__( document_count: int, name: str, qualified_name: str, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword average_document_size: The average document size, or -1 if the average size is unknown. Required. @@ -13085,8 +13160,8 @@ def __init__( supports_sharding: bool, shard_key: Optional["_models.MongoDbShardKeyInfo"] = None, view_of: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword average_document_size: The average document size, or -1 if the average size is unknown. Required. @@ -13241,8 +13316,8 @@ def __init__( last_replay_time: Optional[datetime.datetime] = None, name: Optional[str] = None, qualified_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword bytes_copied: The number of document bytes copied during the Copying stage. Required. :paramtype bytes_copied: int @@ -13394,8 +13469,8 @@ def __init__( last_replay_time: Optional[datetime.datetime] = None, name: Optional[str] = None, qualified_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword bytes_copied: The number of document bytes copied during the Copying stage. Required. :paramtype bytes_copied: int @@ -13480,8 +13555,8 @@ def __init__( can_delete: Optional[bool] = None, shard_key: Optional["_models.MongoDbShardKeySetting"] = None, target_r_us: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword can_delete: Whether the migrator is allowed to drop the target collection in the course of performing a migration. The default is true. @@ -13510,7 +13585,7 @@ class MongoDbCommandInput(_serialization.Model): "object_name": {"key": "objectName", "type": "str"}, } - def __init__(self, *, object_name: Optional[str] = None, **kwargs): + def __init__(self, *, object_name: Optional[str] = None, **kwargs: Any) -> None: """ :keyword object_name: The qualified name of a database or collection to act upon, or null to act upon the entire migration. @@ -13596,8 +13671,8 @@ def __init__( port: Optional[int] = None, additional_settings: Optional[str] = None, authentication: Optional[Union[str, "_models.AuthenticationType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword user_name: User name. :paramtype user_name: str @@ -13700,8 +13775,8 @@ def __init__( qualified_name: str, collections: List["_models.MongoDbCollectionInfo"], supports_sharding: bool, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword average_document_size: The average document size, or -1 if the average size is unknown. Required. @@ -13834,8 +13909,8 @@ def __init__( name: Optional[str] = None, qualified_name: Optional[str] = None, collections: Optional[Dict[str, "_models.MongoDbCollectionProgress"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword bytes_copied: The number of document bytes copied during the Copying stage. Required. :paramtype bytes_copied: int @@ -13927,8 +14002,8 @@ def __init__( *, collections: Dict[str, "_models.MongoDbCollectionSettings"], target_r_us: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword collections: The collections on the source database to migrate to the target. The keys are the unqualified names of the collections. Required. @@ -13971,8 +14046,8 @@ def __init__( count: Optional[int] = None, message: Optional[str] = None, type: Optional[Union[str, "_models.MongoDbErrorType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The non-localized, machine-readable code that describes the error or warning. :paramtype code: str @@ -14023,7 +14098,7 @@ class MongoDbFinishCommand(CommandProperties): "input": {"key": "input", "type": "MongoDbFinishCommandInput"}, } - def __init__(self, *, input: Optional["_models.MongoDbFinishCommandInput"] = None, **kwargs): + def __init__(self, *, input: Optional["_models.MongoDbFinishCommandInput"] = None, **kwargs: Any) -> None: """ :keyword input: Command input. :paramtype input: ~azure.mgmt.datamigration.models.MongoDbFinishCommandInput @@ -14056,7 +14131,7 @@ class MongoDbFinishCommandInput(MongoDbCommandInput): "immediate": {"key": "immediate", "type": "bool"}, } - def __init__(self, *, immediate: bool, object_name: Optional[str] = None, **kwargs): + def __init__(self, *, immediate: bool, object_name: Optional[str] = None, **kwargs: Any) -> None: """ :keyword object_name: The qualified name of a database or collection to act upon, or null to act upon the entire migration. @@ -14169,8 +14244,8 @@ def __init__( name: Optional[str] = None, qualified_name: Optional[str] = None, databases: Optional[Dict[str, "_models.MongoDbDatabaseProgress"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword bytes_copied: The number of document bytes copied during the Copying stage. Required. :paramtype bytes_copied: int @@ -14282,8 +14357,8 @@ def __init__( boost_r_us: Optional[int] = None, replication: Optional[Union[str, "_models.MongoDbReplication"]] = None, throttling: Optional["_models.MongoDbThrottlingSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword boost_r_us: The RU limit on a CosmosDB target that collections will be temporarily increased to (if lower) during the initial copy of a migration, from 10,000 to 1,000,000, or 0 @@ -14344,7 +14419,7 @@ class MongoDbRestartCommand(CommandProperties): "input": {"key": "input", "type": "MongoDbCommandInput"}, } - def __init__(self, *, input: Optional["_models.MongoDbCommandInput"] = None, **kwargs): + def __init__(self, *, input: Optional["_models.MongoDbCommandInput"] = None, **kwargs: Any) -> None: """ :keyword input: Command input. :paramtype input: ~azure.mgmt.datamigration.models.MongoDbCommandInput @@ -14376,7 +14451,7 @@ class MongoDbShardKeyField(_serialization.Model): "order": {"key": "order", "type": "str"}, } - def __init__(self, *, name: str, order: Union[str, "_models.MongoDbShardKeyOrder"], **kwargs): + def __init__(self, *, name: str, order: Union[str, "_models.MongoDbShardKeyOrder"], **kwargs: Any) -> None: """ :keyword name: The name of the field. Required. :paramtype name: str @@ -14410,7 +14485,7 @@ class MongoDbShardKeyInfo(_serialization.Model): "is_unique": {"key": "isUnique", "type": "bool"}, } - def __init__(self, *, fields: List["_models.MongoDbShardKeyField"], is_unique: bool, **kwargs): + def __init__(self, *, fields: List["_models.MongoDbShardKeyField"], is_unique: bool, **kwargs: Any) -> None: """ :keyword fields: The fields within the shard key. Required. :paramtype fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField] @@ -14442,7 +14517,9 @@ class MongoDbShardKeySetting(_serialization.Model): "is_unique": {"key": "isUnique", "type": "bool"}, } - def __init__(self, *, fields: List["_models.MongoDbShardKeyField"], is_unique: Optional[bool] = None, **kwargs): + def __init__( + self, *, fields: List["_models.MongoDbShardKeyField"], is_unique: Optional[bool] = None, **kwargs: Any + ) -> None: """ :keyword fields: The fields within the shard key. Required. :paramtype fields: list[~azure.mgmt.datamigration.models.MongoDbShardKeyField] @@ -14480,8 +14557,8 @@ def __init__( min_free_cpu: Optional[int] = None, min_free_memory_mb: Optional[int] = None, max_parallelism: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword min_free_cpu: The percentage of CPU time that the migrator will try to avoid using, from 0 to 100. @@ -14555,8 +14632,8 @@ def __init__( encrypt_connection: bool = True, authentication: Optional[Union[str, "_models.AuthenticationType"]] = None, additional_settings: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword user_name: User name. :paramtype user_name: str @@ -14601,7 +14678,7 @@ class NameAvailabilityRequest(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, type: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, type: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: The proposed resource name. :paramtype name: str @@ -14638,8 +14715,8 @@ def __init__( name_available: Optional[bool] = None, reason: Optional[Union[str, "_models.NameCheckFailureReason"]] = None, message: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name_available: If true, the name is valid and available. If false, 'reason' describes why not. @@ -14708,7 +14785,7 @@ class NodeMonitoringData(_serialization.Model): "received_bytes": {"key": "receivedBytes", "type": "float"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.additional_properties = None @@ -14733,7 +14810,7 @@ class NonSqlDataMigrationTable(_serialization.Model): "source_name": {"key": "sourceName", "type": "str"}, } - def __init__(self, *, source_name: Optional[str] = None, **kwargs): + def __init__(self, *, source_name: Optional[str] = None, **kwargs: Any) -> None: """ :keyword source_name: Source table name. :paramtype source_name: str @@ -14785,7 +14862,7 @@ class NonSqlDataMigrationTableResult(_serialization.Model): "errors": {"key": "errors", "type": "[DataMigrationError]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.result_code = None @@ -14839,8 +14916,8 @@ def __init__( project_name: str, project_location: str, selected_tables: List["_models.NonSqlDataMigrationTable"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword target_connection_info: Information for connecting to target. Required. :paramtype target_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -14910,7 +14987,7 @@ class NonSqlMigrationTaskOutput(_serialization.Model): "target_server_name": {"key": "targetServerName", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -14947,8 +15024,8 @@ def __init__( code: Optional[str] = None, message: Optional[str] = None, details: Optional[List["_models.ODataError"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword code: The machine-readable description of the error, such as 'InvalidRequest' or 'InternalServerError'. @@ -14980,7 +15057,9 @@ class OfflineConfiguration(_serialization.Model): "last_backup_name": {"key": "lastBackupName", "type": "str"}, } - def __init__(self, *, offline: Optional[bool] = None, last_backup_name: Optional[str] = None, **kwargs): + def __init__( + self, *, offline: Optional[bool] = None, last_backup_name: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword offline: Offline migration. :paramtype offline: bool @@ -15015,7 +15094,7 @@ class OperationListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -15054,7 +15133,7 @@ class OperationsDefinition(_serialization.Model): "properties": {"key": "properties", "type": "{object}"}, } - def __init__(self, *, is_data_action: Optional[bool] = None, **kwargs): + def __init__(self, *, is_data_action: Optional[bool] = None, **kwargs: Any) -> None: """ :keyword is_data_action: Indicates whether the operation is a data action. :paramtype is_data_action: bool @@ -15096,7 +15175,7 @@ class OperationsDisplayDefinition(_serialization.Model): "description": {"key": "description", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.provider = None @@ -15156,8 +15235,8 @@ def __init__( server_version: Optional[str] = None, port: Optional[int] = None, authentication: Optional[Union[str, "_models.AuthenticationType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword user_name: User name. :paramtype user_name: str @@ -15223,7 +15302,7 @@ class OracleOCIDriverInfo(_serialization.Model): "supported_oracle_versions": {"key": "supportedOracleVersions", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.driver_name = None @@ -15248,7 +15327,7 @@ class OrphanedUserInfo(_serialization.Model): "database_name": {"key": "databaseName", "type": "str"}, } - def __init__(self, *, name: Optional[str] = None, database_name: Optional[str] = None, **kwargs): + def __init__(self, *, name: Optional[str] = None, database_name: Optional[str] = None, **kwargs: Any) -> None: """ :keyword name: Name of the orphaned user. :paramtype name: str @@ -15332,8 +15411,8 @@ def __init__( additional_settings: Optional[str] = None, server_brand_version: Optional[str] = None, authentication: Optional[Union[str, "_models.AuthenticationType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword user_name: User name. :paramtype user_name: str @@ -15456,8 +15535,8 @@ def __init__( source_connection_info: Optional["_models.ConnectionInfo"] = None, target_connection_info: Optional["_models.ConnectionInfo"] = None, databases_info: Optional[List["_models.DatabaseInfo"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword location: :paramtype location: str @@ -15518,7 +15597,7 @@ class Resource(_serialization.Model): "type": {"key": "type", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -15562,8 +15641,8 @@ class ProjectFile(Resource): } def __init__( - self, *, etag: Optional[str] = None, properties: Optional["_models.ProjectFileProperties"] = None, **kwargs - ): + self, *, etag: Optional[str] = None, properties: Optional["_models.ProjectFileProperties"] = None, **kwargs: Any + ) -> None: """ :keyword etag: HTTP strong entity tag value. This is ignored if submitted. :paramtype etag: str @@ -15615,8 +15694,8 @@ def __init__( extension: Optional[str] = None, file_path: Optional[str] = None, media_type: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword extension: Optional File extension. If submitted it should not have a leading period and must match the extension from filePath. @@ -15650,7 +15729,9 @@ class ProjectList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: Optional[List["_models.Project"]] = None, next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: Optional[List["_models.Project"]] = None, next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: List of projects. :paramtype value: list[~azure.mgmt.datamigration.models.Project] @@ -15698,8 +15779,8 @@ class ProjectTask(Resource): } def __init__( - self, *, etag: Optional[str] = None, properties: Optional["_models.ProjectTaskProperties"] = None, **kwargs - ): + self, *, etag: Optional[str] = None, properties: Optional["_models.ProjectTaskProperties"] = None, **kwargs: Any + ) -> None: """ :keyword etag: HTTP strong entity tag value. This is ignored if submitted. :paramtype etag: str @@ -15731,8 +15812,8 @@ def __init__( *, query_results: Optional["_models.QueryExecutionResult"] = None, validation_errors: Optional["_models.ValidationError"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword query_results: List of queries executed and it's execution results in source and target. @@ -15772,8 +15853,8 @@ def __init__( statements_in_batch: Optional[int] = None, source_result: Optional["_models.ExecutionStatistics"] = None, target_result: Optional["_models.ExecutionStatistics"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword query_text: Query text retrieved from the source server. :paramtype query_text: str @@ -15824,8 +15905,8 @@ def __init__( limit: Optional[float] = None, name: Optional["_models.QuotaName"] = None, unit: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword current_value: The current value of the quota. If null or missing, the current value cannot be determined in the context of the request. @@ -15863,7 +15944,9 @@ class QuotaList(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: Optional[List["_models.Quota"]] = None, next_link: Optional[str] = None, **kwargs): + def __init__( + self, *, value: Optional[List["_models.Quota"]] = None, next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: List of quotas. :paramtype value: list[~azure.mgmt.datamigration.models.Quota] @@ -15890,7 +15973,7 @@ class QuotaName(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, *, localized_value: Optional[str] = None, value: Optional[str] = None, **kwargs): + def __init__(self, *, localized_value: Optional[str] = None, value: Optional[str] = None, **kwargs: Any) -> None: """ :keyword localized_value: The localized name of the quota. :paramtype localized_value: str @@ -15925,8 +16008,8 @@ def __init__( key_name: Optional[str] = None, auth_key1: Optional[str] = None, auth_key2: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword key_name: The name of authentication key to generate. :paramtype key_name: str @@ -15976,8 +16059,8 @@ def __init__( line_number: Optional[str] = None, h_result: Optional[int] = None, stack_trace: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword message: Error message. :paramtype message: str @@ -16063,7 +16146,7 @@ class ResourceSku(_serialization.Model): # pylint: disable=too-many-instance-at "restrictions": {"key": "restrictions", "type": "[ResourceSkuRestrictions]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.resource_type = None @@ -16101,7 +16184,7 @@ class ResourceSkuCapabilities(_serialization.Model): "value": {"key": "value", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -16138,7 +16221,7 @@ class ResourceSkuCapacity(_serialization.Model): "scale_type": {"key": "scaleType", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.minimum = None @@ -16172,7 +16255,7 @@ class ResourceSkuCosts(_serialization.Model): "extended_unit": {"key": "extendedUnit", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.meter_id = None @@ -16207,7 +16290,7 @@ class ResourceSkuRestrictions(_serialization.Model): "reason_code": {"key": "reasonCode", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.type = None @@ -16236,7 +16319,7 @@ class ResourceSkusResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, *, value: List["_models.ResourceSku"], next_link: Optional[str] = None, **kwargs): + def __init__(self, *, value: List["_models.ResourceSku"], next_link: Optional[str] = None, **kwargs: Any) -> None: """ :keyword value: The list of SKUs available for the subscription. Required. :paramtype value: list[~azure.mgmt.datamigration.models.ResourceSku] @@ -16278,8 +16361,8 @@ def __init__( validation_errors: Optional["_models.ValidationError"] = None, source_database_object_count: Optional[Dict[str, int]] = None, target_database_object_count: Optional[Dict[str, int]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema_differences: List of schema differences between the source and target databases. @@ -16326,8 +16409,8 @@ def __init__( object_name: Optional[str] = None, object_type: Optional[Union[str, "_models.ObjectType"]] = None, update_action: Optional[Union[str, "_models.UpdateActionType"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword object_name: Name of the object that has the difference. :paramtype object_name: str @@ -16369,8 +16452,8 @@ def __init__( schema_option: Optional[Union[str, "_models.SchemaMigrationOption"]] = None, file_id: Optional[str] = None, file_name: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword schema_option: Option on how to migrate the schema. Known values are: "None", "ExtractFromSource", and "UseStorageFile". @@ -16407,7 +16490,7 @@ class SelectedCertificateInput(_serialization.Model): "password": {"key": "password", "type": "str"}, } - def __init__(self, *, certificate_name: str, password: str, **kwargs): + def __init__(self, *, certificate_name: str, password: str, **kwargs: Any) -> None: """ :keyword certificate_name: Name of certificate to be exported. Required. :paramtype certificate_name: str @@ -16456,7 +16539,7 @@ class ServerProperties(_serialization.Model): "server_database_count": {"key": "serverDatabaseCount", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.server_platform = None @@ -16482,8 +16565,8 @@ class ServiceOperation(_serialization.Model): } def __init__( - self, *, name: Optional[str] = None, display: Optional["_models.ServiceOperationDisplay"] = None, **kwargs - ): + self, *, name: Optional[str] = None, display: Optional["_models.ServiceOperationDisplay"] = None, **kwargs: Any + ) -> None: """ :keyword name: The fully qualified action name, e.g. Microsoft.DataMigration/services/read. :paramtype name: str @@ -16522,8 +16605,8 @@ def __init__( resource: Optional[str] = None, operation: Optional[str] = None, description: Optional[str] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword provider: The localized resource provider name. :paramtype provider: str @@ -16556,8 +16639,12 @@ class ServiceOperationList(_serialization.Model): } def __init__( - self, *, value: Optional[List["_models.ServiceOperation"]] = None, next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: Optional[List["_models.ServiceOperation"]] = None, + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: List of actions. :paramtype value: list[~azure.mgmt.datamigration.models.ServiceOperation] @@ -16602,8 +16689,8 @@ def __init__( family: Optional[str] = None, size: Optional[str] = None, capacity: Optional[int] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword name: The unique name of the SKU, such as 'P3'. :paramtype name: str @@ -16641,8 +16728,12 @@ class ServiceSkuList(_serialization.Model): } def __init__( - self, *, value: Optional[List["_models.AvailableServiceSku"]] = None, next_link: Optional[str] = None, **kwargs - ): + self, + *, + value: Optional[List["_models.AvailableServiceSku"]] = None, + next_link: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword value: List of service SKUs. :paramtype value: list[~azure.mgmt.datamigration.models.AvailableServiceSku] @@ -16682,8 +16773,8 @@ def __init__( *, file_share: Optional["_models.SqlFileShare"] = None, azure_blob: Optional["_models.AzureBlob"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword file_share: Source File share. :paramtype file_share: ~azure.mgmt.datamigration.models.SqlFileShare @@ -16742,7 +16833,7 @@ class SqlBackupFileInfo(_serialization.Model): "family_sequence_number": {"key": "familySequenceNumber", "type": "int"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.file_name = None @@ -16812,7 +16903,7 @@ class SqlBackupSetInfo(_serialization.Model): # pylint: disable=too-many-instan "ignore_reasons": {"key": "ignoreReasons", "type": "[str]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.backup_set_id = None @@ -16905,8 +16996,8 @@ def __init__( additional_settings: Optional[str] = None, trust_server_certificate: bool = False, platform: Optional[Union[str, "_models.SqlSourcePlatform"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword user_name: User name. :paramtype user_name: str @@ -16989,8 +17080,8 @@ def __init__( password: Optional[str] = None, encrypt_connection: Optional[bool] = None, trust_server_certificate: Optional[bool] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword data_source: Data source. :paramtype data_source: str @@ -17040,7 +17131,7 @@ class SqlDbMigrationStatusDetails(_serialization.Model): "list_of_copy_progress_details": {"key": "listOfCopyProgressDetails", "type": "[CopyProgressDetails]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.migration_state = None @@ -17065,7 +17156,7 @@ class SqlDbOfflineConfiguration(_serialization.Model): "offline": {"key": "offline", "type": "bool"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.offline = None @@ -17089,8 +17180,13 @@ class SqlFileShare(_serialization.Model): } def __init__( - self, *, path: Optional[str] = None, username: Optional[str] = None, password: Optional[str] = None, **kwargs - ): + self, + *, + path: Optional[str] = None, + username: Optional[str] = None, + password: Optional[str] = None, + **kwargs: Any + ) -> None: """ :keyword path: Location as SMB share or local drive where backups are placed. :paramtype path: str @@ -17126,7 +17222,7 @@ class SqlMigrationListResult(_serialization.Model): "next_link": {"key": "nextLink", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.value = None @@ -17176,7 +17272,7 @@ class SqlMigrationService(TrackedResource): "integration_runtime_state": {"key": "properties.integrationRuntimeState", "type": "str"}, } - def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, location: Optional[str] = None, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword location: :paramtype location: str @@ -17199,7 +17295,7 @@ class SqlMigrationServiceUpdate(_serialization.Model): "tags": {"key": "tags", "type": "{str}"}, } - def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs): + def __init__(self, *, tags: Optional[Dict[str, str]] = None, **kwargs: Any) -> None: """ :keyword tags: Dictionary of :code:``. :paramtype tags: dict[str, str] @@ -17236,8 +17332,8 @@ def __init__( ssis_store_type: Optional[Union[str, "_models.SsisStoreType"]] = None, project_overwrite_option: Optional[Union[str, "_models.SsisMigrationOverwriteOption"]] = None, environment_overwrite_option: Optional[Union[str, "_models.SsisMigrationOverwriteOption"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword ssis_store_type: The SSIS store type of source, only SSIS catalog is supported now in DMS. "SsisCatalog" @@ -17283,7 +17379,7 @@ class StartMigrationScenarioServerRoleResult(_serialization.Model): "exceptions_and_warnings": {"key": "exceptionsAndWarnings", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.name = None @@ -17316,7 +17412,7 @@ class SyncMigrationDatabaseErrorEvent(_serialization.Model): "event_text": {"key": "eventText", "type": "str"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.timestamp_string = None @@ -17360,8 +17456,8 @@ def __init__( last_modified_by: Optional[str] = None, last_modified_by_type: Optional[Union[str, "_models.CreatedByType"]] = None, last_modified_at: Optional[datetime.datetime] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword created_by: :paramtype created_by: str @@ -17402,8 +17498,8 @@ class TargetLocation(_serialization.Model): } def __init__( - self, *, storage_account_resource_id: Optional[str] = None, account_key: Optional[str] = None, **kwargs - ): + self, *, storage_account_resource_id: Optional[str] = None, account_key: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword storage_account_resource_id: Resource Id of the storage account copying backups. :paramtype storage_account_resource_id: str @@ -17430,8 +17526,8 @@ class TaskList(_serialization.Model): } def __init__( - self, *, value: Optional[List["_models.ProjectTask"]] = None, next_link: Optional[str] = None, **kwargs - ): + self, *, value: Optional[List["_models.ProjectTask"]] = None, next_link: Optional[str] = None, **kwargs: Any + ) -> None: """ :keyword value: List of tasks. :paramtype value: list[~azure.mgmt.datamigration.models.ProjectTask] @@ -17454,7 +17550,7 @@ class UploadOCIDriverTaskInput(_serialization.Model): "driver_share": {"key": "driverShare", "type": "FileShare"}, } - def __init__(self, *, driver_share: Optional["_models.FileShare"] = None, **kwargs): + def __init__(self, *, driver_share: Optional["_models.FileShare"] = None, **kwargs: Any) -> None: """ :keyword driver_share: File share information for the OCI driver archive. :paramtype driver_share: ~azure.mgmt.datamigration.models.FileShare @@ -17484,7 +17580,7 @@ class UploadOCIDriverTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.driver_package_name = None @@ -17555,8 +17651,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.UploadOCIDriverTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -17634,8 +17730,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ValidateSyncMigrationInputSqlServerTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -17649,7 +17745,8 @@ def __init__( class ValidateMigrationInputSqlServerSqlMISyncTaskInput(SqlServerSqlMISyncTaskInput): - """Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online scenario. + """Input for task that migrates SQL Server databases to Azure SQL Database Managed Instance online + scenario. All required parameters must be populated in order to send to Azure. @@ -17696,8 +17793,8 @@ def __init__( target_connection_info: "_models.MiSqlConnectionInfo", azure_app: "_models.AzureActiveDirectoryApp", backup_file_share: Optional["_models.FileShare"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword selected_databases: Databases to migrate. Required. :paramtype selected_databases: @@ -17728,7 +17825,8 @@ def __init__( class ValidateMigrationInputSqlServerSqlMISyncTaskOutput(_serialization.Model): - """Output for task that validates migration input for Azure SQL Database Managed Instance online migration. + """Output for task that validates migration input for Azure SQL Database Managed Instance online + migration. Variables are only populated by the server, and will be ignored when sending a request. @@ -17752,7 +17850,7 @@ class ValidateMigrationInputSqlServerSqlMISyncTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -17761,7 +17859,8 @@ def __init__(self, **kwargs): class ValidateMigrationInputSqlServerSqlMISyncTaskProperties(ProjectTaskProperties): - """Properties for task that validates migration input for SQL to Azure SQL Database Managed Instance sync scenario. + """Properties for task that validates migration input for SQL to Azure SQL Database Managed + Instance sync scenario. Variables are only populated by the server, and will be ignored when sending a request. @@ -17826,8 +17925,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ValidateMigrationInputSqlServerSqlMISyncTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -17892,8 +17991,8 @@ def __init__( selected_logins: Optional[List[str]] = None, backup_file_share: Optional["_models.FileShare"] = None, backup_mode: Optional[Union[str, "_models.BackupMode"]] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Information for connecting to source. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -17924,7 +18023,8 @@ def __init__( class ValidateMigrationInputSqlServerSqlMITaskOutput(_serialization.Model): - """Output for task that validates migration input for SQL to Azure SQL Managed Instance migrations. + """Output for task that validates migration input for SQL to Azure SQL Managed Instance + migrations. Variables are only populated by the server, and will be ignored when sending a request. @@ -17971,7 +18071,7 @@ class ValidateMigrationInputSqlServerSqlMITaskOutput(_serialization.Model): "database_backup_info": {"key": "databaseBackupInfo", "type": "DatabaseBackupInfo"}, } - def __init__(self, *, database_backup_info: Optional["_models.DatabaseBackupInfo"] = None, **kwargs): + def __init__(self, *, database_backup_info: Optional["_models.DatabaseBackupInfo"] = None, **kwargs: Any) -> None: """ :keyword database_backup_info: Information about backup files when existing backup mode is used. @@ -17989,7 +18089,8 @@ def __init__(self, *, database_backup_info: Optional["_models.DatabaseBackupInfo class ValidateMigrationInputSqlServerSqlMITaskProperties(ProjectTaskProperties): - """Properties for task that validates migration input for SQL to Azure SQL Database Managed Instance. + """Properties for task that validates migration input for SQL to Azure SQL Database Managed + Instance. Variables are only populated by the server, and will be ignored when sending a request. @@ -18053,8 +18154,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.ValidateMigrationInputSqlServerSqlMITaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -18132,8 +18233,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.MongoDbMigrationSettings"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -18147,7 +18248,8 @@ def __init__( class ValidateOracleAzureDbForPostgreSqlSyncTaskProperties(ProjectTaskProperties): - """Properties for the task that validates a migration for Oracle to Azure Database for PostgreSQL for online migrations. + """Properties for the task that validates a migration for Oracle to Azure Database for PostgreSQL + for online migrations. Variables are only populated by the server, and will be ignored when sending a request. @@ -18212,8 +18314,8 @@ def __init__( *, client_data: Optional[Dict[str, str]] = None, input: Optional["_models.MigrateOracleAzureDbPostgreSqlSyncTaskInput"] = None, - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword client_data: Key value pairs of client data to attach meta data information to task. :paramtype client_data: dict[str, str] @@ -18228,7 +18330,8 @@ def __init__( class ValidateOracleAzureDbPostgreSqlSyncTaskOutput(_serialization.Model): - """Output for task that validates migration input for Oracle to Azure Database for PostgreSQL for online migrations. + """Output for task that validates migration input for Oracle to Azure Database for PostgreSQL for + online migrations. Variables are only populated by the server, and will be ignored when sending a request. @@ -18244,7 +18347,7 @@ class ValidateOracleAzureDbPostgreSqlSyncTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.validation_errors = None @@ -18282,8 +18385,8 @@ def __init__( source_connection_info: "_models.SqlConnectionInfo", target_connection_info: "_models.SqlConnectionInfo", selected_databases: List["_models.MigrateSqlServerSqlDbSyncDatabaseInput"], - **kwargs - ): + **kwargs: Any + ) -> None: """ :keyword source_connection_info: Information for connecting to source SQL server. Required. :paramtype source_connection_info: ~azure.mgmt.datamigration.models.SqlConnectionInfo @@ -18324,7 +18427,7 @@ class ValidateSyncMigrationInputSqlServerTaskOutput(_serialization.Model): "validation_errors": {"key": "validationErrors", "type": "[ReportableException]"}, } - def __init__(self, **kwargs): + def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.id = None @@ -18347,8 +18450,8 @@ class ValidationError(_serialization.Model): } def __init__( - self, *, text: Optional[str] = None, severity: Optional[Union[str, "_models.Severity"]] = None, **kwargs - ): + self, *, text: Optional[str] = None, severity: Optional[Union[str, "_models.Severity"]] = None, **kwargs: Any + ) -> None: """ :keyword text: Error Text. :paramtype text: str @@ -18378,8 +18481,13 @@ class WaitStatistics(_serialization.Model): } def __init__( - self, *, wait_type: Optional[str] = None, wait_time_ms: float = 0, wait_count: Optional[int] = None, **kwargs - ): + self, + *, + wait_type: Optional[str] = None, + wait_time_ms: float = 0, + wait_count: Optional[int] = None, + **kwargs: Any + ) -> None: """ :keyword wait_type: Type of the Wait. :paramtype wait_type: str